-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use habitica-todo #8
Comments
Hi, I have exactly the same problem. It would be nice if you could describe (shortly) how to get this running. Best regards, |
Likewise. I'm not quite python savvy enough to get this working just from sorting through the source code, but this seems to have several advantages over the NodeJS solution so I'd like to get it working if I can. Even a few pointers in the right direction would be helpful. |
Oof! Just saw this. Right now, actually, what you need to do to install it is.... well, honestly, you could probably just download and unzip the repository here and run the python program oneWaySync from the folder. I keep meaning to make this a pip folder but haven't actually devoted a lot of time to working through it. If you folks would like to work through bits with me, I'd love the help. Is there anything I could comment better to make it more clear? I have GOT to update the readme documentation and actually put this thing into a pip install package. I'm so sorry, I didn't actually realize folks were trying to use this till now! |
I'm having the same issues. Habitica looks amazing due to the way it can handle long term goals, challenges and habit-mapping, but Todoist is vastly superior at task-managing (at least if you like me have used that every day for the past 2 years). Can't even understand how I'm supposed to get this to work. I have no coding skills what so ever, I just want to get them todoist and Habitica to talk to each other and have no idea how to do it. My question is also whether or not I can get this to run automatically through my browser or if I need to have an active machine that does the sync? Because I'm less interested if I have to have a machine running at all hours of the day just to act like a bridge. |
@eringiglio If (as the docstring suggests) oneWaySync.py is meant to replicate the one way todoist->habitica sync of todoist-habitrpg, which file manages the other direction? I was trying to run basicSync.py and running into an error - I can put more detail in its own github issue if that's unexpected behavior, but perhaps basicSync.py is not meant to be run directly after all? Happy to help work through bits as time permits. |
@NonSparkly Currently, as I'm running this, it can be run from any machine and should not require you to keep a particular machine running it full-time. I don't, however, think you can run it on a browser--like habitrpg-todo, it will require running on a command line in Mac or Linux. (It should work fine in Cygwin if you use that on Windows.) I don't have the coding skills or experience right now to host a browser-based version, but if that's something you really really want I would be happy to help you figure out how to do it. Now, it's not set up to automatically run, and you currently don't need to keep your history file on hand for it to work--it just makes things a little faster. I typically run it by basically telling the program to run in my command line every few hours manually, but you could have it automatically run by using a crontab command in a command line from a particular machine if you wanted to. Does that help at all? I can explain in more detail about those terms if you're not familiar with them--not sure what your experience level is. |
@dkassler Oh man, I'd love the help! One problem I think you're running into with this is that as I kind of forgot that other people might like to play with this code or use it too, I also stopped using best practices for naming files as I switched things up and refigured things. I really need to comment this code a little bit better, but I think I've done some helpful reorganizations with this latest commit that should make things a little less.... uh, ridiculous. More on each script in a minute; I'm going to write out a few additional comments with that. |
For the perplexed, a guide to what is in the various python scripts! I'm erring on the side of exhaustive mostly so that this should be understandable to anyone no matter what their experience level, so I apologize if any of this comes off as condescending; it's not meant to! I am entirely self-taught as a coder, so I know how frustrating it is to run into things that are not well explained as a novice. (It's also totally possible I am missing things in my python knowledge about how one might play with or use this script, incidentally; if you think of better ways to do things by all means please tell me!) Okay. Here are the functional scripts now hanging out in the habiticaTodo folder: Here's the scripts I have gone in and removed as, effectively, obsolete. They're now living in the OldCode folder: |
@eringiglio Perfect, thank you very much. I probably have time on the weekend to look into this again. |
When I tried running 'python oneWaySync.py' I got the following error:
I got no clue about Python at all, what am I missing? I downloaded and unzipped the file normally, but can't seem to find the requests module... |
@rachteo You need to install the requests python library, either with your package manager or with "pip install requests" |
Hiya, trying to get this to work. Tried running oneWaySync from powershell as well and also ran into an error in 'main.py' on line 100 (tod_login, tod_user = todoist.TodoistAPI(rv) ):
I tried changing 'todoist' to 'pytodoist' but that would not help. Maybe the attribute is named differently these days? If so, what is it called? |
@Thalvarian I had the same error. Seems like a problem with todoist-python under Python 2.7 (at least in my case). When I tried following the instructions on their README I got the same error as when running if self.__task_dict['date_string'] == None: I changed this to if self.__task_dict.get('date_string', None) == None: and syncing works. As far as I can tell, anyway; I didn't run a full sync because I have too many tasks in Todoist (enough that it would make Habitica really hard to navigate). Going to look into changing it to sync only today next. |
@jenmei Could you specify which specific Python version you're having success with? I've tried 2.7.0 and 2.7.16 and 3.7.3 with no luck. I'm stuck on the EDIT: I ran |
@jenmei thanks for sharing, I was also able to fix with your edit. I also wanted to sync only tasks due today, so I changed some lines in oneWaySync.py from:
to
|
Hi,
I read the readme and all it says is to install pip install habitica and pip install pytodoist. Is that all I have to do to get this running? I assume not. But I can't seem to get it working.
Thanks
The text was updated successfully, but these errors were encountered: