You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-8Lines changed: 18 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
-
# Habitica+Todoist
2
-
3
-
## __:warning: Alpha script!__
1
+
# Project Hype-Berry
4
2
3
+
### __:warning: Alpha script!__
4
+
⚠️ Only one way syncing is working right now.
5
+
##
5
6
This is intended to be a two-way sync of Habitica and Todoist. Any tasks that can't be found in both services should appear on the others, with the same status. If you complete a task on one service, it should appear as completed on another. Tasks that are created on Habitica should be sent to the 'Inbox' project on Todoist.
6
7
7
-
AS A NOTE: in order to have two way syncing, you MUST have a paid copy of Todoist. It's not possible for me to port complete tasks from Todoist otherwise. If you do not have a paid copy of Todoist, the following will happen:
8
+
AS A NOTE: in order to have two way syncing, you MUST have a paid copy of Todoist. It's not possible to sync complete tasks from Todoist otherwise. If you do not have a paid copy of Todoist, the following will happen:
8
9
9
10
1. Completed tasks will not sync between the services.
10
11
2. Tasks that you begin and complete from one service to the other will not transfer between the two.
@@ -13,15 +14,22 @@ That means that if you create a task in Todoist and then check it off, right now
13
14
14
15
## INSTALLATION
15
16
16
-
There are a number dependencies you'll need to install, and the commands to install them are as follows:
Finally, you need to add your API tokens to the `Project_Hype-Berry/source/auth.cfg.example` file. You can find your Habitica API User ID and API key by visiting https://habitica.com/user/settings/api while logged in, and your Todoist API token can be found by visiting https://todoist.com/prefs/integrations while logged in. Once you've added these tokens, you should rename the file to `Project_Hype-Berry/source/auth.cfg` (remove the '.example' at the end).
22
+
2. Get the source code [here](https://github.com/programmerPhysicist/Project_Hype-Berry/tags)
23
+
3. You need to add your API tokens to the **Project_Hype-Berry/source/auth.cfg.example** file
24
+
* To get the _Habitica API User ID_ and _API key_ goto <https://habitica.com/user/settings/api> while logged in
25
+
* To get the _Todoist API token_ goto <https://todoist.com/prefs/integrations> while logged in.
26
+
4. Rename the file to **Project_Hype-Berry/source/auth.cfg** (remove the '.example' at the end).
27
+
5. Add the folder oneWaySync to $XDG_STATE_HOME: `mkdir $XDG_STATE_HOME/oneWaySync`
28
+
6. Add the **oneWaySync.sh** script to Crontab
21
29
22
30
## TASK DIFFICULTY
23
31
24
-
I originally felt that it would be good if task difficulty translated between tasks created on Todoist and Habitica. Therefore, task difficulty should sync with the following code by default, as laid out in `main.py`
32
+
I originally felt that it would be good if task difficulty translated between tasks created on Todoist and Habitica. Therefore, task difficulty should sync with the following code by default, as laid out in **main.py**
25
33
26
34
Todoist priority | Habitica difficulty
27
35
---------------- | -------------------
@@ -30,12 +38,14 @@ p2 | Medium
30
38
p3 | Easy
31
39
p4 | Easy
32
40
33
-
If you'd like to change how the sync interprets difficulty or priority, please edit `main.py`. For example, my personal setup actually includes translating Todoist p4 to Easy, rather than Trivial, because I find that Trivial yields so few rewards they aren't worth it to me.
41
+
If you'd like to change how the sync interprets difficulty or priority, please edit **main.py**. For example, my personal setup actually includes translating Todoist p4 to Easy, rather than Trivial, because I find that Trivial yields so few rewards they aren't worth it to me.
34
42
35
43
## USAGE
36
44
37
45
Try running `python one_way_sync.py` in your terminal. (You have to run the command from the same directory that auth.cfg exists in).
38
46
47
+
Or you can try the provided shell script **oneWaySync.sh** under **Project_Hype-Berry/scripts/**
48
+
39
49
## Credit
40
50
41
51
This program is a hard fork of [Habitica-Todo](https://github.com/eringiglio/Habitica-todo), with some fixes added. Habitica-Todo has been abandoned by its original author.
0 commit comments