kusold / todoist-habitrpg

One way sync from Todoist -> HabitRPG
120 stars 14 forks source link

"Sync completed successfully" but nothing on Habitica changes #61

Open cartere6 opened 7 years ago

cartere6 commented 7 years ago

I am trying to set up the sync between Todoist and Habitica, I am able to install and run everything correctly, but despite getting the message "Sync completed successfully" every time I run the program nothing is ever updated on Habitica. I edited the Habitica API url as suggested in #58 but that didn't seem to help.

todoist-habitrpg.json.txt

chae9214 commented 7 years ago

try deleting .todoist-habitrpg.json then running todoist-habitrpg command again. todoist api provides incremental sync (only add newly made changes), so nothing will get added if you try running the command repeatedly.

llinfeng commented 7 years ago

@chae9214 I am having the same problem. My .todoist-habitrpg.json is populated with well formulated contents. However, none of these legitimate contents are "pushed" to the tasks (or, any other places that I looked up) on https://habitica.com/. Could you confirm that the code is no longer working at this point?

The clauses that I have used goes along the following format:

todoist-habitrpg -u habitRpgUserId -t habitRpgApiToken -a todoistApiToken -f ~/temp/Habitica_Todoist

And, it is in the ~/temp/Habitica_Todoist directory that I found the .todoist-habitrpg.json file.

Hope you could help setup the synchronization: a friend of mine brought me on board, but it is really a pain in the ass to add all the tasks manually from Todoist to Habitica.

All the best,

-Linfeng

ricitron commented 6 years ago

The code no longer works for me too, as of Sept. 7th.

XuanLi-Leong commented 6 years ago

Same - it says "Sync completed successfully." but I do not see changes on Habitica.

ricitron commented 6 years ago

I think it may have to do with habitica's recent site design update. Any solutions yet?

rickstaa commented 6 years ago

Same problem.

XuanLi-Leong commented 6 years ago

Is anyone aware of what changed in the recent update, or any direction about what could be causing the problem?

ricitron commented 6 years ago

There's an alternative code that works: https://github.com/eringiglio/Habitica-todo

Run by updating the auth.cfg file with your respective keys, and then running 'python oneWaySync.py'. Note that you have to delete all habits and tasks in habitica first, otherwise you will get an error.

I found the way that oneWaySync treats dailies was annoying, and prefer to manage dailies only in habitica, so in main.py, below line 218, I added an additional 'pass' for item.category == 'daily'.