MMM-GoogleTasks
MMM-GoogleTasks copied to clipboard
Authentication issues and recommended solution (changes to README.md and authenticate.js)
I was unable to get authenticate.js to work. Browser would hang on redirect to localhost (ERR_CONNECTION_REFUSED). Attempted many things: changing firewall settings, localhost page settings, editing authenticate.js. After two days of attempting to learn how to code this myself, I realized Google provided an example on the page you linked, so I tried it and it worked in lieu of autheticate.js.
Consider rewording the authenticate directions as follows and direct users to use the Google index.js (or replicate herein).
Authenticate and retrieve Google Task List IDs
Go here: https://developers.google.com/tasks/quickstart/nodejs and perform everything on the page:
- setup
- enable Google Task API
- config OAuth2.0 consent screen (a formality in this case)
-
make OAuth2.0 client ID for desktop app
- After creating the OAuth2.0 Client ID, click the download button to the FAR right of the list item in the OAuth2.0 Client ID table here: https://console.cloud.google.com/apis/credentials, and save as MagicMirror/modules/MMM-GoogleTasks/credentials.js. Google's directions imply the file has been downloaded by the process of creating the Client ID (it hasn't).
- install Google API local auth
- setup and run Google's index.js to get your Google Task list IDs
- paste Google Task list IDs from script output into config.js
Thanks for this! I was able to get the task list IDs using this method!
Yo this was so frustrating! Can confirm these instructions worked perfectly!
how do I add multiple lists?