A simple project that fetches your tasks from Wunderlist and inserts them into TaskWarrior. Can be run by the operating system to keep Taskwarrior up-to-date.
Wunderlist lists starting with '!' are never fetched for synchronization.
All communication is done via HTTPS.
All the configuration and persistent data resides in the program directory.
$HOME/.wunderlist-to-taskwarrior/
You must get an API key from Wunderlist before using this for your own stuff.
Create the tokens.json
file in the program directory with the following contents:
{
"clientId": "....................",
"clientSecret": "............................................................",
"accessToken": "............................................................"
}
You must obtain these values for yourself, the dots are just there to give you an idea of how long each field is.
# Build and install the executable.
stack install
# Run the executable.
wunderlist-to-taskwarrior
# Add the executable to your crontab.
# Make sure to use the path for the executable in your machine.
(crontab -l; echo "* * * * * /home/mg/.local/bin/wunderlist-to-taskwarrior") | crontab
In practice, the program finishes in less than two seconds.
If you have hundreds of lists or many new tasks it may take longer.