Read the statement by Michael Teeuw here.
MMM-GoogleKeep config.js
-
Hello everyone,
I wanted to install the following module on my MM2, but I can’t get it into config.js[https://github.com/taxilof/MMM-GoogleKeep]
Yes, I’m a beginner but I thought I finally understood the logic of config.js.
I have entered the module as follows{ module: "MMM-GoogleKeep", position: "top_right", header: "Google Keep", config: { username: "MeineMailAdresse@gmail.com", password: "MeinSicheresPasswort", noteId: "1VgB6XhzmCrCpCwUFXr42YIvMiduDVNw_iweGb3xxxxxxxxxxxxxxxxxxx", updateInterval: 60, maxLines: 10, width: 400, unchecked_only: true, } },
My question is, where is my error and why does the MM2 not start or is it the module itself? I have read that some people have problems with the module?
Please let me know how I can get the module to work, what I have to enter in which file or if you know an alternative to retrieve data from Google Keep.Thanks and greetings
Sven -
-
@svenpisa said:
Do I understand correctly that I may only have to wait until the module works or do I have to make additional settings?
I haven’t looked at the code in detail, but that could be possible, yes. Of course, it may still be the case that something needs to be adjusted in gkeepapi and/or MMM-GoogleKeep.
The best thing would probably be to look at alternatives.
Can I see the status somewhere when it should work again?
If a gpsoauth version newer than 1.0.4 appears here, we can try again. You can also follow this discussion: https://github.com/kiwiz/gkeepapi/issues/81.
-
I don’t use this module, but my first guess is that you have two-factor authentication on your Google account (which is definitely recommended) . In this case I suppose you have to create an app password to use the module.
This would also fit in with gkeepapi’s documentation, which says the following: " Enabling TwoFactor and logging in via an app password is recommended."
Have you already created an app password for it or have you used your normal Google password?
-
Hey Kristjan, thank you very much for your feedback. I had previously tried it with my Google password. After your message, I have now created an APP password, but it doesn’t work there either. And I keep thinking about what the problem could be. I have tested the 16-digit (4x4) password with spaces and without spaces, but every time I insert the module into the config.js and save it, only the Raspberry OS desktop is displayed and no longer the MM.
I have just had a quick look at the documentation https://gkeepapi.readthedocs.io/en/latest/#logging-in, but I can’t make any sense of it. I simply don’t yet have the knowledge of how to implement this documentation or where I may have to make which entries… :-( I’m just too much of a beginner for that.
so if you have any other tips or could explain to me how I should use these instructions, I would be very happy!!! :-)
-
@svenpisa please check the messages where u do npm start
if you use pm2 then do pm2 logs --lines=50
or
pm2 stop all cd ~/MagicMirror npm start
if you are running on the same screen as mm, then press ctrl-q, look at the messages
-
Hi Sam,
Here is the error excerpt. The error definitely occurs with KEEP but no idea what to do…
magicmirror@2.25.0 start
DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js[25.01.2024 19:42.13.949] [LOG] Starting MagicMirror: v2.25.0
[25.01.2024 19:42.13.959] [LOG] Loading config …
[25.01.2024 19:42.13.964] [DEBUG] config template file not exists, no envsubst
[25.01.2024 19:42.13.972] [LOG] Loading module helpers …
[25.01.2024 19:42.13.975] [LOG] No helper found for module: alert.
[25.01.2024 19:42.14.621] [LOG] Initializing new module helper …
[25.01.2024 19:42.14.622] [LOG] Module helper loaded: MMM-Wallpaper
[25.01.2024 19:42.14.624] [LOG] No helper found for module: clock.
[25.01.2024 19:42.15.040] [LOG] Module helper loaded: MMM-Sonos
[25.01.2024 19:42.15.042] [LOG] No helper found for module: weather.
[25.01.2024 19:42.15.044] [LOG] No helper found for module: MMM-CalendarExt3.
[25.01.2024 19:42.15.046] [LOG] No helper found for module: MMM-CalendarExt3Agenda.
[25.01.2024 19:42.15.408] [LOG] Initializing new module helper …
[25.01.2024 19:42.15.409] [LOG] Module helper loaded: calendar
[25.01.2024 19:42.15.411] [LOG] No helper found for module: compliments.
[25.01.2024 19:42.15.518] [LOG] Initializing new module helper …
[25.01.2024 19:42.15.519] [LOG] Module helper loaded: MMM-AccuWeatherForecastDeluxe
[25.01.2024 19:42.15.527] [ERROR] (node:3930) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘python-shell’
Require stack:- /home/sven/MagicMirror/modules/MMM-GoogleKeep/node_helper.js
- /home/sven/MagicMirror/js/app.js
- /home/sven/MagicMirror/js/electron.js
- /home/sven/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
- at node:internal/modules/cjs/loader:1084:15
at Function. (node:electron/js2c/browser_init:2:117576)
at Module._resolveFilename (/home/sven/MagicMirror/node_modules/module-alias/index.js:49:29)
at node:internal/modules/cjs/loader:929:27
at Function._load (node:electron/js2c/asar_bundle:2:13327)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object. (/home/sven/MagicMirror/modules/MMM-GoogleKeep/node_helper.js:10:23)
at Module._compile (node:internal/modules/cjs/loader:1271:14)
at Object…js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at node:internal/modules/cjs/loader:967:12
at Function._load (node:electron/js2c/asar_bundle:2:13327)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:110:18)
at loadModule (/home/sven/MagicMirror/js/app.js:180:19)
(Useelectron --trace-warnings ...
to show where the warning was created)
[25.01.2024 19:42.15.528] [ERROR] (node:3930) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
[3930:0125/194216.046643:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to retrieve device information
^C/home/sven/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT
-
@svenpisa yes, the instruction leave out an important step
after step 2
then change to the module foldercd MMM-GoogleKeep
THEN
npm install
you can do that step now, in the module folder
-
@sdetweil i did it…
I went directly to ~/MagicMirror/modules/MMM-GoogleKeep $ and started npm install but then only got error messagesnpm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: MMM-GoogleKeep@1.0.0
npm ERR! Found: stylelint@15.11.0
npm ERR! node_modules/stylelint
npm ERR! peer stylelint@“15.x” from grunt-stylelint@0.19.0
npm ERR! node_modules/grunt-stylelint
npm ERR! dev grunt-stylelint@“latest” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev stylelint-config-standard@“latest” from the root project
npm ERR!
npm ERR! Conflicting peer dependency: stylelint@16.2.0
npm ERR! node_modules/stylelint
npm ERR! peer stylelint@“^16.1.0” from stylelint-config-standard@36.0.0
npm ERR! node_modules/stylelint-config-standard
npm ERR! dev stylelint-config-standard@“latest” from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/sven/.npm/_logs/2024-01-25T19_14_43_524Z-eresolve-report.txtnpm ERR! A complete log of this run can be found in: /home/sven/.npm/_logs/2024-01-25T19_14_43_524Z-debug-0.log
-
@svenpisa gr… the developer junk
edit package.json and change
"devDependencies"
to
"devDependencies1"
then do the
npm install
again -
@sdetweil You’re great… Thank you very much
Partly good news.
It could now be installed and entered in config.js. MM also starts cleanly and is also displayed cleanly, but the KEEP module is unfortunately not displayed on the MM.
Now I need to get the list displayed somehow.
I have tried it with the APP password 16 digits as well as 4x4 digits and also with the Google password but unfortunately it is not displayed.
Any more ideas? -
@svenpisa sorry, don’t know the internals of the module