Read the statement by Michael Teeuw here.
Microsoft To-Do (wunderlist replacement?)
-
@Jan You’re welcome. Have you tried adding the module multiple times in the config file with different
listIdvalues? -
@binderth Did the tips from @ThaliaFromPrussia (https://forum.magicmirror.builders/post/68615) work for you to see what error you are getting on the magic mirror front-end?
-
@thobach Thx for your reply. Your solution has not exactly the effect what i want, but it works fine for me ;-)
-
curl -X POST https://login.microsoftonline.com/common/oauth2/v2.0/token
Length RequiredLength Required
HTTP Error 411. The request must be chunked or have a content length.
I am sure curl is installed since other modules with OAuth are working as well.
-
Hi
Managed to get the default task list to show but cannot get any other list to show. It just States Loading Tasks but never changes. Selected the list from ToDo but the ‘ID’ is a lot shorter than the example given.
Is there something I’m missing here?
It seems like this should work but just having trouble getting it to link. Not overly impressed with ToDo yet but need a shared environment and this was the simple choice having previously used Wunderlist.
Cheers
G -
i followed the README.MD on github step by step and now i got it running :) i tried a few weeks ago several times without success and was pretty close to give up.
thanks an kind regards!
-
@geoffroff
Hi,
I had the same problem and I also had a shorter ID than the example. And of course, the status stay on “Loading tasks” for ever.
Finally, to solve this and get the full length link, I’ve done the following :- create a share link from the list and open it
- click on “Sign in to join list”
- on next windows, click on “open”
I finally have an error “List not found” but in the url is the correct ID which is working as ListID, e.g :
https://to-do.live.com/tasks/AQMkADAwATMwNAItYmQyZS0wNnYxLTAwAi0wMAoALgAAAwyBXwAxHLZDhD1s2yT7wLoBAIZRCieiy1tMpuO70ZBr_R8AA3lr_WoAAAA=
Hope it helps,
Cheers, -
HI on the refresh token I have this error
curl: (6) Could not resolve host:
{“error”:“invalid_request”,“error_description”:“AADSTS900144: The request body must contain the following parameter: ‘grant_type’.\r\nTrace ID: c89030f5-7596-4716-b56b-baafdc670100\r\nCorrelation ID: 3c6c0d5a-8928-47f9-8916-30fb1a369a8e\r\nTimestamp: 2020-04-24 23:29:45Z”,“error_codes”:[900144],“timestamp”:“2020-04-24 23:29:45Z”,“trace_id”:“c89030f5-7596-4716-b56b-baafdc670100”,“correlation_id”:“3c6c0d5a-8928-47f9-8916-30fb1a369a8e”,“error_uri”:“https://login.microsoftonline.com/error?code=900144”}curl: (6) Could not resolve host:
curl: (6) Could not resolve host: application
curl: (6) Could not resolve host:
‘client_id’ is not recognized as an internal or external command,
operable program or batch file.
‘scope’ is not recognized as an internal or external command,
operable program or batch file.
‘redirect_uri’ is not recognized as an internal or external command,
operable program or batch file.
‘client_secret’ is not recognized as an internal or external command,
operable program or batch file. -
@wazzu Excellent worked a treat… ToDo didn’t like the link (List not Found) but when it returned to screen the list had the long ID. I amended the config file and worked like a charm… Thanks G
-
@andyyy The call seems to be missing some parameters, please check the full command line from https://github.com/thobach/MMM-MicrosoftToDo/blob/master/README.MD, thanks!
-
@zolabus It seems you faced the same issue as in https://github.com/thobach/MMM-MicrosoftToDo/issues/18. I updated the instructions in https://github.com/thobach/MMM-MicrosoftToDo/blob/master/README.MD#refresh-token-generation-refresh-token to be more Windows friendly, e.g. all in a single line and using double quotes. Could you please try it again with the updated instructions? Thanks!
-
@thobach: Do you have recommendations to get the due date to show? I have tried to add
element.dueDateTime.dateTimein the MMM-MicrosoftToDo.js like I have in the past, but now the module won’t show with that that. And no matter how I try to format it withmomentit still doesn’t like it. I tried it with the simpleelement.idto see if that would show and it does show the todo ID. Thoughts? I know I am missing something simple. Thanks! -
@smoysauce if your element does not have a dueDateTime (null) this could lead to an error (cannot get property of undefined).
Maybe something like this?
if (element.dueDateTime) { var dueDate = moment(element.dueDateTime.dateTime).format("LL"); } -
@lavolp3 Oh good call-out! I tried your example as well as a few other tweaks but it doesn’t seem to like it when I add that snippet in. I don’t know why it’s being so weird. I’ll keep toying around with it, but any other thoughts would be appreciated!
-
@lavolp3 said in Microsoft To-Do (wunderlist replacement?):
if (element.dueDateTime) {
var dueDate = moment(element.dueDateTime.dateTime).format(“LL”);
}So after some tinkering, I figured out that the node.js was not pulling in the due date so I removed the ‘select’ filter so the call URL has
'/tasks?$top='After that, I was able to add
moment(new Date(element.dueDateTime.dateTime)).format("ddd MMM DD")to the output string and got the date to show. But for the life of me, I cannot get thevarorifstatements to work. If I try to use either the module doesn’t load. I have tried them in all different spots and it just doesn’t like it. -
@smoysauce
First,moment(new Date(element.dueDateTime.dateTime)).format("ddd MMM DD")is redundant. You don’t need thenew Datepart.
moment(element.dueDateTime.dateTime).format("ddd MMM DD")should be enough.Second, where have you put it?
I had my own problems with the code, that’s why I’m working on an own version including due dates, but it’s not finished.Here’s how I would try to include it.
if (this.list.length !== 0) { this.list.forEach(element => (listItemsText += '<li style="list-style-position:inside; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">' + checkbox + element.subject + ((element.dueDate) ? moment(element.dueDateTime.dateTime).format("ddd MMM DD") : '') + '</li>')) } else { // otherwise indicate that there are no list entries listItemsText += '<li style="list-style-position:inside; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">' + this.translate('NO_ENTRIES') + '</li>' } -
@lavolp3 said in Microsoft To-Do (wunderlist replacement?):
if (this.list.length !== 0) {
this.list.forEach(element => (listItemsText += ‘- ’ + checkbox + element.subject + ((element.dueDate) ? moment(element.dueDateTime.dateTime).format(“ddd MMM DD”) : ‘’) + ‘
’))
} else {
// otherwise indicate that there are no list entries
listItemsText += ‘- ’ + this.translate(‘NO_ENTRIES’) + ‘
’
}Thanks for pointing that out, I am still figuring things out and piecing things together and if they work I just stick with it! That snippet worked, I had to change the section
element.dueDatetoelement.dueDateTimebut other than that seems to be doing the trick. I’ll probably toy around with it a bit more to see if I can learn formatting it with CSS to left align the subject and right align the date. Thanks for the help and tips! -
@thobach thanks for your effort. Just got this up and running from your instructions in the README. Very pleased. :thumbs_up:
-
@thobach said in Microsoft To-Do (wunderlist replacement?):
I don’t plan to implement a fade-option, sorry, it would require quite some effort given the current implementation.
I have been able to add a fade-option by looking at how this option has been implemented in the MMM-nstreinen module by @qistoph. Since I am not familiair with JS coding I don’t know wether it has been coded as it should.
My addition takes two parameters from config.js: ‘fade’, which can be true or false and ‘fadePoint’, which takes a decimal value between 0 and 1 and marks the point where the fade starts.
I added the code after the listItem styling.
// needed for the fade effect itemCounter += 1 // Create fade effect. if (self.config.fade && self.config.fadePoint < 1) { if (self.config.fadePoint < 0) { self.config.fadePoint = 0; } var startingPoint = self.config.itemLimit * self.config.fadePoint; var steps = self.config.itemLimit - startingPoint; if (itemCounter >= startingPoint) { var currentStep = itemCounter - startingPoint; listItem.style.opacity = 1 - (1 / steps * currentStep); } } -
@Mighty-Mouseq Nice! Do you want to create a pull request? I could then merge it into the main branch for everyone.
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