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
This is a squash of 4 commits: Update README.md. Remove imports that aren't used and cause
problems. Partially fix sync. Todoist -> Habitica sync appears to kind of work.
Update README.md. Add more dependencies that are needed for installation. Fix path to be
more accurate.
Fix bug. Clean-up comments and remove some debugging code.
Update README.md
Save work on refactor. Begin to integrate replacement library. Fix some lines of code. Uncomment
most lines of code.
Remove some dead code. Further integrate api.
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,10 +13,14 @@ That means that if you create a task in Todoist and then check it off, right now
13
13
14
14
## INSTALLATION
15
15
16
-
There are two dependencies you'll need to install, and the commands to install them are as follows:
16
+
There are a number dependencies you'll need to install, and the commands to install them are as follows:
17
17
```
18
18
pip install todoist-python
19
19
pip install requests
20
+
pip install scriptabit
21
+
pip install tzlocal
22
+
pip install iso8601
23
+
pip install python-dateutil
20
24
```
21
25
Finally, you need to add your API tokens to the `Habitica-Plus-Todoist/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 `Habitica-Plus-Todoist/source/auth.cfg` (remove the '.example' at the end).
22
26
@@ -35,7 +39,7 @@ If you'd like to change how the sync interprets difficulty or priority, please e
35
39
36
40
## USAGE
37
41
38
-
Try running `python source/oneWaySync.py` in your terminal.
42
+
Try running `python oneWaySync.py` in your terminal. (You have to run the command from the same directory that auth.cfg exists in).
#Todoist tasks are, I think, classes. Let's make Habitica tasks classes, too.
7
+
url='https://habitica.com/api/v3/tasks/user/'
8
+
response=requests.get(url,headers=auth)
9
+
hab_raw=response.json()
10
+
hab_tasklist=hab_raw['data'] #FINALLY getting something I can work with... this will be a list of dicts I want to turn into a list of objects with class hab_tasks. Hrm. Weeeelll, if I make a class elsewhere....
11
+
12
+
#keeping records of all our tasks
13
+
hab_tasks= []
14
+
15
+
#No habits right now, I'm afraid, in hab_tasks--Todoist gets upset. So we're going to make a list of dailies and todos instead...
0 commit comments