Compare commits

...

3 Commits
dev ... master

Author SHA1 Message Date
earnest ma 9949984269
Add systemd service file 2022-05-19 21:25:26 -04:00
earnest ma 13eb8ad46a
Add script to run 2022-05-19 15:02:43 -04:00
Hoffelhas 67935a5b0c
Update README.md 2021-08-24 14:53:59 +02:00
3 changed files with 32 additions and 1 deletions

View File

@ -108,7 +108,7 @@ By setting an alternative time for the end-of-day you can now finish your work a
Todoist allows the asterisk symbol `* ` to be used to ensure tasks can't be checked by turning them into headers. Now you are able to do this en masse!
Simply add `** ` or `!* ` in front of a project, section, or top item, to automatically turn all the items that it includes into respectively headers or checkable tasks.
Simply add `** ` or `!* ` in front of a project, section, or top item, to automatically turn all the items that it includes into respectively headers or checkable tasks. Note: when used in a project title or section title, Todoist will replace an exclamation mark with an underscore; this functionality should nevertheless still work.
# Executing Autodoist

17
autodoist.service Normal file
View File

@ -0,0 +1,17 @@
[Unit]
Description=Autodoist
After=syslog.target
After=network.target
[Service]
RestartSec=5s
Type=simple
User=earne
Group=earne
WorkingDirectory=/home/earne/autodoist
ExecStart=/home/earne/autodoist/run.sh
Restart=always
# Environment=
[Install]
WantedBy=multi-user.target

14
run.sh Executable file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
if [ ! -d venv ]; then
echo "Creating virtualenv and installing requirements"
python3 -m venv venv
venv/bin/pip3 install -r requirements.txt
fi
venv/bin/python3 autodoist.py \
-a $(cat .api-token) \
-l Next \
-r 2 \
-e 1 \
--delay 7