Read the statement by Michael Teeuw here.
MMM-Todoist - Your todoist tasks on your mirror
-
Hi psm9… I’m fairly new to MagicMirror but I’ve been digging into the Todoist module to sort the list by due date. Did anyone ever answer your question? I didn’t see any responses to your sort question so I started digging into it and added code to the fetcher.js for MMM-Todoist.
I’ve got it working on my mirror and when I add something that is due today… it will put it in the proper sequence on the next refresh. My JS skills are limited so the code may be made more efficient but it works. I’ll contact the Todoist author to see if I can add it to the module.P.S. I tried adding the code to this message but it did not take all 50 lines or so.
-
Hey guys,
Very sorry that I have been MIA. I’ve been really busy with work and haven’t been able to give this any attention. I see a number of bugs and improvements in the thread. If you could submit your improvements and changes as Pull Request to the github repo, I’ll merge them in and everyone can have them. If not, I’ll try to add them in soon.
https://github.com/cbrooker/MMM-Todoist
Thanks,
Chris -
Is this module working for people? I’ve tried this one, MMM-Wunderlist and MMM-Wunderlist-Enhanced. They all behave similar. Some times they load the list, sometimes they don’t. When I add an item on my PC, it doesn’t show up in MM until reboot. I see reports of issues like this across all three modules. Since they are based on MMM-Wunderlist, maybe there is a problem in the base code?
Here’s the log
Create new todo fetcher for list: 2153843199 - Interval: 60000
0|mm | Whoops! There was an uncaught exception…
0|mm | TypeError: Cannot read property ‘substring’ of null
0|mm | at Request._callback (/home/pi/MagicMirror/modules/MMM-Todoist/fetcher.js:69:35)
0|mm | at Request.self.callback (/home/pi/MagicMirror/modules/MMM-Todoist/node_modules/request/request.js:188:22)
0|mm | at emitTwo (events.js:106:13)
0|mm | at Request.emit (events.js:191:7)
0|mm | at Request. (/home/pi/MagicMirror/modules/MMM-Todoist/node_modules/request/request.js:1171:10)
0|mm | at emitOne (events.js:96:13)
0|mm | at Request.emit (events.js:188:7)
0|mm | at IncomingMessage. (/home/pi/MagicMirror/modules/MMM-Todoist/node_modules/request/request.js:1091:12)
0|mm | at Object.onceWrapper (events.js:290:19)
0|mm | at emitNone (events.js:91:20)
0|mm | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
0|mm | If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues -
Been testing a lot and figured out if you have entries in your list that have no due date assigned, then it crashes the module. If all entries in the list have dates then it behaves well. Gonna dig into the code to see where the bug is.
-
So I have to be one of those… I am having the same problem guys but you guessed it, my list is showing blank.
I have confirmed the node_modules is in the MMM-todoist folder and I updated the list number in MMM-Todoist.js. i have confirmed my access token is correct and my lists numbers are correct
My MMM-Todoist.js is:
Module.register("MMM-Todoist", { defaults: { maximumEntries: 10, lists: ["my list number here"], interval: 60, fade: false, fade point: 0.25 },My config.js is:
{ module: 'MMM-Todoist', position: 'bottom_left', header: 'Todoist' config: { // See 'Configuration options' for more information. accessToken: 'my access token here', // lists: ["edit in MMM-Todoist.js"], maximumEntries: 60, interval: 60, fade: false } },If anyone has any thoughts i would be really appreciative. Been tearing out my 4 remaining hairs.
-
@Sunburned What worked for me is if when adding TODOs on the app or website if you give them a due date they will then show up on the mirror, in the order that they are due from soonest to latest.
-
Just a tip, todoist now integrates natively with google calendar, then the “official” calendar plugin works just fine.
(even before todoist integrated with google, i used todoist iCal link with official calendar plugin, set manual refresh and it just works great). -
Thanks for the suggestion, saw that earlier in the thread and tried it out. No luck
-
Just a tip, todoist now integrates natively with google calendar, then the “official” calendar plugin works just fine.
(even before todoist integrated with google, i used todoist iCal link with official calendar plugin, set manual refresh and it just works great).Is that only available to premium users?
-
yeah, looks like it, didn’t think of that to be honest :(
-
General question then. Do you need a premium todoist account for this module to function? I don’t see why you would but i cant think of another explanation.
-
@Sunburned No you do not need the premium Todoist account for the module to work.
-
@MasonT3 I wrote a fix to the ‘no due date tasks’ so they will sort to the end. I think Chris Booker hasn’t had time to implement but the fix is available at my MMM-Todoist fork at: https://github.com/tkotz8105/MMM-Todoist
-
@Sunburned I wrote a fix to the ‘no due date tasks’ so they will sort to the end. I think Chris Booker hasn’t had time to implement but the fix is available at my MMM-Todoist fork at: https://github.com/tkotz8105/MMM-Todoist
-
So i have tried:
- Updating the fetcher from https://github.com/tkotz8105/MMM-Todoist
- Putting my list number in the MMM-Todoist.js file rather than the config file (my list number is 10 digits btw, not an issue but i thought it was odd as all the samples had 9.)
- Changing the Access token
- Deleting and recreating the module
- Deleting my todoist account and recreating it
I am currently at a loss.
-
So the plot thickens. I have a cron job that restarts my mirror at 2am every day. I get home from work today and my mirror shows the 2 test entries I made when setting up my new todoist account, but they will not update. So those entries will not be removed and new entries will not be added, even when restarting the mirror.
-
Do those two entries have due dates associated? Mine did some weird things until I assigned due dates to each entry… and subsequently added tkotz8105’s fetcher fix.
-
@Sunburned I find that sometimes happens as well… some changes I make (deletions, additions, mods) don’t make it to the mirror. I do not know why that is happening and have not looked in any detail on it. When you say that you restart the Mirror at 2 am… is it a system reboot? I do the same and when it all starts back up… the tasks are there and properly sorted.
-
Thanks for the responses everyone.
Chiumanfu
Yep the entries all had due dates, and I also did the fetcher fix.tkotz8621
2am is a full system reboot of the raspberry pie that then restarts the mirror. -
This post is deleted!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login