Giter VIP home page Giter VIP logo

mmm-microsofttodo's People

Contributors

dependabot[bot] avatar eddy-dunton avatar ftenkley avatar jaydubya avatar lgtm-migrator avatar snyk-bot avatar spyder007 avatar thobach avatar vernade avatar williamg97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

mmm-microsofttodo's Issues

[Bug] Checkbox

Not on me to report (as i don´t use it) but, i can see the checkbox on the mirror but if i "tick" it or mark it as "completed" or whatever word it for it it "in the phone application" as an example it still show as unmarked or disappear i don´t remember on the mirror.

My point whit this is that as the feature works today its 100% pointless....

Getting invalid_grant

So I went through the configuration steps in your documentation, and got to the end and all I have displaying is "Error occurred: invalid_grant. Check logs" and I'm looking for a way to debug this. Are their logs or anything I can use to debug? Or is this related to API changes?

Refresh Token Issue: Resolved

First off, I really think you've done a great job with this module and I got it working on my smart mirror without too much trouble. I thought I would mention one issue that tripped me up for a little while though, and hopefully might save others some time as well.

The issue I ran into was during the "Refresh Token Generation" part ( https://github.com/thobach/MMM-MicrosoftToDo#refresh-token-generation-refresh-token ) and while running the command, I was getting the following error:

"
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - The revocation function was unable to check revocation for the certificate.
"

After some research I tried a shot in the dark and disabled my anti-virus software, ran the command once more, and I was able to receive my "Refresh Token".

So, like I said, hopefully posting this issue will save others some time and, again, great work on this module!

invalid grant. check logs

Hi,
I am getting the below:

Error occurred: invalid_grant. Check logs.

Tried re-doing incase i missed anything, but no luck - how can i check logs please?

Stuck on Authorization Code Generation

After adjusting the link ...
https://login.microsoftonline.com/common/oauth2/v2.0/authorize?response_type=code&client_id=4ef19f40-4892-4905-b999-76041e991f53&scope=offline_access%20user.read%20tasks.readwrite%20tasks.read&redirect_uri=https://localhost:1234&response_mode=query&state=12345
... to include my client ID and hitting enter I end up getting the following message:

This site can’t be reached
localhost refused to connect.
Try:

Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED

Do you have any thought on what might be blocking?

I have double checked the redirect URI. It is correct.

localhost

hi, I don't understand what am I suppose to enter as a localhost....
tks for your help
Seby

Microsoft

hello
i have a problem with the refresh tocken
i copied with my codes but it just prompt me and do nothing in the terminal
image

Depreciated parameter: listId - needs to be changed to listName

I get the following output in the Log-File. It seems that the Command for the API is depreciated and should be changed.

[2020-09-09 19:27:15.379] [WARN] MMM-MicrosoftToDo - Warning, configuration parameter listId is deprecated, please use listName instead, otherwise the module will not work anymore in the future.

There should be a change from listId to listName.

No show on my mirror

Followed the instructions step by step.

Added module in config.js yet the todo list is now showing for me.

Where could I look to find out what was wrong?

Device authorization grant viable improvement?

Hello,

during setup I made a mistake in the azure configuration (by not reading correctly) which caused an error.
While googling for this error I stumbled upon this site where Microsoft describes how to authorize devices with limited input options.

This way the user just has to visit the page https://microsoft.com/devicelogin and enter a code in the browser to grant the permissions without extracting any codes, IDs and secrets from some URIs and build new ones with that.
On the client side it would need two new types of requests to be sent to the Microsoft server, instruct the user to visit the website and enter the code and then and wait until the user consented and save the refresh-token for later use.
I guess the user still has to create a new app because they still need a client id.

Not sure if this would works like I imagine because I know nothing about Azure and how your module works but if its possible I think installing would be way easier and comfortable than it is now.

Feature Request: Due Date

I have looked around the documentation so I am guess it's not available, but it would be great to be able to show the due date for the task.

Module don‘t show up

Hi,

I followed the guide step by step an added the config but the module don‘t show up. It‘s not even loading a title or something else.

Here‘s the config. I hope someone can help.

{
module: 'MMM-MicrosoftToDo',
position: 'top_bar', // This can be any of the regions. Best results in left or right regions.
header: 'Shopping List', // This is optional
config: {
oauth2ClientSecret: 'deleted',
oauth2RefreshToken: 'deleted',
oauth2ClientId: 'deleted',
listId: 'deleted', // optional parameter: default value is the "Tasks" list
showCheckbox: true, // optional parameter: default value is true and will show a checkbox before each todo list item
hideIfEmpty: false, // optional parameter: default value is false and will show the module also when the todo list is empty
maxWidth: 450, // optional parameter: max width in pixel, default value is 450
itemLimit: 200, // optional parameter: limit on the number of items to show from the list, default value is 200
orderBy: 'subject', // optional parameter: 'subject' - order results by subject/name, 'dueDate' - order results by due date, default value is unordered
}
},

Couldn't get this module to show up on my Magic Mirror

Below is the module I have
Followed the instruction pretty well I suppose. How do I debug?
Other module shows up just fine even with other newly added ones
{
module: 'MMM-MicrosoftToDo',
position: 'bottom_left', // This can be any of the regions. Best results in left or right regions.
header: 'ToDo List', // This is optional
config: {
oauth2ClientSecret: 'xxxxxxxxxxxxxxxxxxx',
oauth2RefreshToken: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
oauth2ClientId: 'xxxxxxxxxxxxxxxxxx',
listName: 'Personal', // optional parameter: if not specified displays tasks from default "Tasks" list, if specified will look for a task list with the specified name (exact spelling)
showCheckbox: true, // optional parameter: default value is true and will show a checkbox before each todo list item
showDueDate: true, // optional parameter: default value is false and will show the todo list items due date if it exists on the todo list item
dateFormat: 'ddd MMM Do [ - ]', //optional parameter: uses moment date format and the default value is 'ddd MMM Do [ - ]'
hideIfEmpty: false, // optional parameter: default value is false and will show the module also when the todo list is empty
maxWidth: 450, // optional parameter: max width in pixel, default value is 450
itemLimit: 200, // optional parameter: limit on the number of items to show from the list, default value is 200
orderBy: 'subject', // optional parameter: 'subject' - order results by subject/name, 'dueDate' - order results by due date, default value is unordered
completeOnClick: true, // optional parameter: default value is false, when set to true complete task when clicking on it
refreshSeconds: 60, // optional parameter: every how many seconds should the list be updated from the remote service, default value is 60
fade: true, //optional parameter: default value is false. True will fade the list towards the bottom from the point set in the fadePoint parameter
fadePoint: 0.5 //optional parameter: decimal value between 0 and 1 sets the point where the fade effect will start
}
},

maxEntries and repeated tasks

is it possible next to the wrong marking on repeated tasks to add a maxEntries value to display e.g. just the next 3 entries?

How to get the ToDo List ID

Hey ,
my current problem is that i dont know how to get the List Id for my privat ToDo List for work its the default and it works like it shoud but at home nothing happens
guys can you help me out

best grades Artur Blobel from Berlin

Cant get Refresh token?

HI i tried this but it didnt work:
curl -X POST https://login.microsoftonline.com/common/oauth2/v2.0/token -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=authorization_code&client_id=60cdab3f-1376-4b1f-9070-3f082284cff8&scope=offline_access%20user.read%20tasks.readwrite%20tasks.read&code=M30cd0dff-af91-d061-8755-ffb3b328aa03&redirect_uri=https%3A%2F%2Flocalhost%3A1234&client_secret=231da39b-cfc0-465e-8417-69c25f3f829b"

It gave me this error:

{"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: d599dd19-fdef-4a4c-a9fb-65fc6e230b00\r\nCorrelation ID: 3320ab88-ddfb-4b67-8d5b-3029ab8643a2\r\nTimestamp: 2021-03-03 09:31:29Z","error_codes":[7000215],"timestamp":"2021-03-03 09:31:29Z","trace_id":"d599dd19-fdef-4a4c-a9fb-65fc6e230b00","correlation_id":"3320ab88-ddfb-4b67-8d5b-3029ab8643a2","error_uri":"https://login.microsoftonline.com/error?code=7000215"}pi@raspberrypi:~ $ M.R3_BAY.33e97601-d42e-1ef5-5ab8-f7a31d3a699e

What did i do wrong?

Wrong due date shown

Hi,
first off all thank you for this module. Running the mirror on a Rasperry Pi 3. Istallled the module moths ago and up until now no problems.
Switched to the parameter "listName" and included a task list with due dates. The list is shown but the due dates are wrong. In ToDo the due date is set to the 24.08.2020 but the mirror shows the task due on the 23.08.2020. This happens with all tasks. I am located in Germany and already checked if there is a time zone issue with the microsoft account but the dates match and time zone is set to (UTC+01:00) Amsterdam, Berlin, Bern, Rom, Stockholm, Wien.
Maybe someone else is experiencing the same issue or can help!

config: { oauth2ClientSecret: 'XXXXXXXXXXXXXX', oauth2RefreshToken: 'XXXXXXXXXXXXXX', oauth2ClientId: 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', listName: 'Essensplan', showCheckbox: true, showDueDate: true, dateFormat: 'ddd MMM Do [ - ]', hideIfEmpty: false, maxWidth: 450, itemLimit: 200, orderBy: 'dueDate', }

MailboxNotEnabledForRESTAPI - Tasks not loading

Hi there,

I started this issue description in another issue already, but after some research I could not find an immediate solution.
The problem for me is that the plugin gives me this error message:

{
"error": {
"code": "MailboxNotEnabledForRESTAPI",
"message": "REST API is not yet supported for this mailbox.",
"innerError": {
"request-id": "9d016848-179e-4d1f-99d2-4f04796bf037",
"date": "2020-04-22T07:36:30"
}
}
}

I followed the exact procedure, and I also tested the REST API via the Graph Explorer - here it works just fine. So I guess something inbetween goes wrong, but I have no idea what.

Any ideas?

[Feature] Update

First of all, thanks for a great application!

Is it possible to get a parameter where you can set how often it will update? Its a bit enjoying when the list blinks every minute, i don´t see any reason why it would need to do this every single minute..

Two list and sort

Hi,

Is it possible to add two lists ?
and how can you sort a list ?

Visual formatting of display fields

Is there a way to visually format the fields displayed? I'm trying to make it look like the calendar module, just for the sake of consistency but I can't find how.

Currently it's like this: https://i.imgur.com/vlFNlCo.jpg

I would like to format the dates like the calendar one on the bottom. Justified to the right, etc.

Mirror not loading

hello,

i'm very basic user and trying to set this up for my display. I've followed everything in the instructions and am sure the code etc is all correct. However once i have placed the module info into the config file the mirror fails to load and stays on a black screen. It is relating to TO DO module as once i remove the module its fine again.

Appreciate any help for a newby!

This module cannot be installed if you dont have wunderlist already. (microsoft takeover)

In many attempt of getting my Alexa-based shopping list on my mirror. I found this great module.
As some of you might know, as per May 2020 wunderlist is gone and it will b microsoft to-do. If you have wunderlist already setting up this module is pretty straightforward. My compliments to the developer. However, I didnt have wunderlist, nor microsoft to do nor a microsoft account on the email adres my alexa(smart home devices) is registered. I went about installing the module.

I got the module to work. Any items I add from the microsft to do dash are updated on the mirror. Great Suc6! However, when I add items through Alexa to my shopping list... I get a pop up in microsoft to do to start importing wunderlist items.

Ha you might think , its working. And it probably is however when I start import im prompted to sign in to wunderlist. My account is not known. Ok....lets try opening a wunderlist account so things can start to b imported (trough the enabled alexa skill as mentioned in the readme).
:( when signing up you get a great: we are moving announcement and all new sign ups are automatically microsoft to do. I even tried the wunderlist app on the phone to see if I can sneak in with creating an old wunderlist account. No suc6.

Does anybody know how to work around this ? My conclusion at this point is that as of now, the module is not suitable for users who do not have wunderlist already.
Secondly, im kinda curious to see what happens in May 2020 when wunderlist shuts down..

If anybody has an idea on how to get an alexa controlled shopping list displayed on my mirror... please let me know.

The parameter "listName" is not always working

Hi this MagicMirror module is really nice and working, but I have a little issue with the parameter "listName".

The most of my "Task-Lists" are not working. The following error occurs:
Error occurred: "" task folder not found. Check..
The smart lists also not working.

Do you have any idea why this happens?
Thanks for any help or reply.

Getting list ids for "My Day", "Tasks" etc

Hi,

I've got this working well for normal lists but do you know how I can get it working for "My Day" or the "Tasks" list. There is no hashed "list id" that I can grab from the URL so I'm not sure how to get it as per the instructions. I tried using inbox or myday and it doesnt work.

Everything else is working great so thanks for the implementation!

more than 1 tasklist

Is there a possibility to add more than one task list?
I tried but it did not work.
I don't know javascript to make changes in the code.

I just tried to add another list like below:
listName = ['taks1', 'task2'], (also without parenthesis but did not work).

Last Item keeps being displayed even list ist is empty and hideIfEmpty=true

I have a shared list as main list which I share with my wife. The list keeps updating correctly and all items are displayed. I have selected the hideIfEmpty = true in the configuration and when I (or my wife) delete(s) the last item active on the list. It keeps being displayed on the module. The module itself is still visible with the last active item on. I would have expected it to be invisible when no item is active in the shared list.

My Configuration with IDs deleted:

	  {
module: 'MMM-MicrosoftToDo',
position: 'top_left',	// This can be any of the regions. Best results in left or right regions.
header: 'To-Do-Liste', // This is optional
config: {
  oauth2ClientSecret: 'deleted',
  oauth2RefreshToken: 'deleted',
  oauth2ClientId: 'deleted',
  listId: 'deleted', // optional parameter: default value is the "Tasks" list
  showCheckbox: false, // optional parameter: default value is true and will show a checkbox before each todo list item
  hideIfEmpty: true, // optional parameter: default value is false and will show the module also when the todo list is empty
  maxWidth: 450, // optional parameter: max width in pixel, default value is 450
  itemLimit: 200 // optional parameter: limit on the number of items to show from the list, default value is 200
}

},

[Feature] Empty list

Is there really a reason why you do display a list if its nothing in it?

If its an option you like, maybe it should be optional if you will show it or not if its empty?

[Bug] possibly css bug?

Sorry for the bad view, but as you see it does mess up the other modules when it are in the "top_right" whit them.

I don´t know if it is how it actually works, or if it is a bug but i think it was worth to show

Image

No Response from curl for Refresh Token

Hi,

I copied the command and changed it according to my values.
When I run the command in the terminal, I get no response...

Am I missing something essential here?

Any help is much appreciated.

List sort

Hi! Excellent module and great and clear readme instructions by the way thank you!

Not sure if this is an issue, maybe more a query/requets, is it possible to sort the lists? The sorting applied at source (microsoft-todo) doesnt carry through to this list.

Thanks!

due date support for repeated tasks

When marked as done, the repeated task will be marked undone and have the due date updated.
As a result, the repeated tasks will always be on the list, but without any further information.
So I am wondering if the due date can be displayed for the repeated tasks so that I can know whether the repeated tasks were finished in this wave.

Error while trying to get token

Every time I put:

curl -X POST https://login.microsoftonline.com/common/oauth2/v2.0/token -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=authorization_code&client_id=My-client-id&scope=offline_access%20user.read%20tasks.readwrite%20tasks.read&code=My-code&redirect_uri=https%3A%2F%2Flocalhost%3A1234&client_secret=My-client-secret.["

I get this back:

{"error":"invalid_client","error_description":"AADSTS7000215: Invalid client secret is provided.\r\nTrace ID: 60c018fb-32af-45ed-94d1-921ff3b68600\r\nCorrelation ID: 512eafbc-bbd6-4892-aba7-464449ce8993\r\nTimestamp: 2020-07-03 10:55:12Z","error_codes":[7000215],"timestamp":"2020-07-03 10:55:12Z","trace_id":"60c018fb-32af-45ed-94d1-921ff3b68600","correlation_id":"512eafbc-bbd6-4892-aba7-464449ce8993","error_uri":"https://login.microsoftonline.com/error?code=7000215"}

I have tried it multiple times and have done a fresh client secret as well yet it still won't work, don't know what I'm doing wrong, Im very new to this so no doubt user error.

Any help would be greatly appreciated.

Offset in due date

Hi there,

unfortunately all due dates are listed with an offset of 1day.
For instance an entry is due on july 4th, it is shown as due on july 3rd.

Thanks for your help!

Problem in Terminal

Hi,
Can someone please check out what I am doing wrong. Have I missed something?
I only get error message. I have paste in Client ID, Code and Secret code.

curl -X POST https://login.microsoftonline.com/common/oauth2/v2.0/token -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=authorization_code&client_id=My client id&scope=offline_access%20user.read%20tasks.read&code=My code&redirect_uri=https%3A%2F%2Flocalhost%3A1234&client_secret=My secret cod=ytP.["

Nothing appear

I made all like in instruction, but nothin appear on mirror..

Any ideas to check? Pay attention that I use the module from a remote server in cloud.

[Feature] Checkbox

Maybe do this optional as well if will see it or not, as in my case i don´t use it....

Screenshots

Please add screenshots of the module to help people considering the module.

Login error for Refresh Token Generation

I get this error when generating a refresh token. What's my issue?

Command:
curl -X POST https://login.microsoftonline.com/common/oauth2/v2.0/token -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=authorization_code&client_id=fd0fb737-7b15-48db-a74c-5393ea142966&scope=offline_access%20user.read%20tasks.read&code=M346cc9b1-d99c-1f32-d025-545198a06b45&redirect_uri=https%3A%2F%2Flocalhost%3A1234&client_secret=i2DY610.bJR_2v82.aZg_X6lUcmL-J.4m~"

Error:
{"error":"invalid_request","error_description":"AADSTS9002331: Application 'fd0fb737-7b15-48db-a74c-5393ea142966'(Magic Mirror) is configured for use by Microsoft Account users only. Please use the /consumers endpoint to serve this request.\r\nTrace ID: d7322401-f093-4670-acfe-d28fb1989700\r\nCorrelation ID: 726a39e9-1968-4a5d-a701-7b0da3539943\r\nTimestamp: 2020-05-26 19:36:20Z","error_codes":[9002331],"timestamp":"2020-05-26 19:36:20Z","trace_id":"d7322401-f093-4670-acfe-d28fb1989700","correlation_id":"726a39e9-1968-4a5d-a701-7b0da3539943"}

invalid_grant error: Caused by incorrect prep guide URLs?

Following the prep guide left me with a invalid_grant error

Adding tasks.read to the permissions in the prep guide URLs seemed to fix this

Seems odd that tasks.readwrite does not superseed tasks.read, however, I did also disable the checkboxes so maybe that caused it?

Font Size

What is the easiest way to adjust the font size of the list and also add some padding to the left side. Still semi new to this. Thank you!

Color and update speed

I was wondering if there was a way to add color to the header and text of the to-do list?

I was also wondering I i could make the to-do list update every few seconds instead of 1 minute?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.