Read the statement by Michael Teeuw here.
MMM-Todoist
-
Hello everyone
Unfortunately, I’ve been trying to get the Todoist module to work for weeks. When I edit the config, Magicmirror no longer starts, only the Rasperrypi desktop appears. What am I doing wrong here?
I have also insert the other Modules to show that the other modules works only MMM-Todoist not working and when i delete the Module Magic Mirror works perfect…
{ module: 'clock', position: 'top_left', }, { module: 'MMM-Todoist', position: 'bottom_right', // This can be any of the regions. Best results in left or right regions. header: 'Todoist', // This is optional config: { // See 'Configuration options' for more information. hideWhenEmpty: false, accessToken: '5b1608*****************************53e', maximumEntries: 60, updateInterval: 10*60*1000, // Update every 10 minutes fade: false, // projects and/or labels is mandatory: projects: [2326180937], labels: [ "MagicMirror", "Important" ] // Tasks for any projects with these labels will be shown. } }, { module: 'MMM-MonthCalendar', position: "top_left", header: "", config: { updateDelay: 5, showAdjacentMonths: true } },
Todoist APP API:
Todoist APP Project ID:
Thank You so much!
-
@Syosse said in MMM-Todoist:
[05.01.2024 14:32.28.049] [ERROR] (node:2061) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
Require stack:- /home/Admin/MagicMirror/modules/MMM-Todoist/node_helper.js
yep, missing library…
do this…
cd ~/MagicMirror/modules/MMM-Todoist npm install request
note that there are 6 - 8 missing libraries. as we clean up MM from using old dead stuff to newer supported code, some of the older modules didn’t know they were using libs from our packaging… which are no longer there…
-
@Syosse can you show the errors from where you start mm
where npm start is done -
Thanks for reply
i have run the npm run config:check:
npm run config:check magicmirror@2.25.0 config:check node js/check_config.js [05.01.2024 14:11.43.042] [INFO] Checking file... /home/Admin/MagicMirror/config/config.js [05.01.2024 14:11.43.116] [INFO] Your configuration file doesn't contain syntax errors :)
-
@sdetweil Thanks for the replay
i have run the command: npm run config:check
npm run config:check > magicmirror@2.25.0 config:check > node js/check_config.js [05.01.2024 14:11.43.042] [INFO] Checking file... /home/Admin/MagicMirror/conf ig/config.js [05.01.2024 14:11.43.116] [INFO] Your configuration file doesn't contain syntax errors :)
-
@Syosse ok, that means its not a syntax error
show me the output of npm start
if you use pm2 to auto start, do this
pm2 stop all cd ~/MagicMirror npm start
when done with tests
pm2 status
and use the number of the line(usually 0)
pm2 start 0
-
@sdetweil said in MMM-Todoist:
ok, that means its not a syntax error
show me the output of npm start
if you use pm2 to auto start, do this
pm2 stop all
cd ~/MagicMirror
npm startwhen done with tests
pm2 statusand use the number of the line(usually 0)
pm2 start 0Thanks for the Reply:
i have run this command:
pm2 stop all
cd ~/MagicMirror
npm start> magicmirror@2.25.0 start > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js [05.01.2024 14:32.28.026] [LOG] Starting MagicMirror: v2.25.0 [05.01.2024 14:32.28.032] [LOG] Loading config ... [05.01.2024 14:32.28.035] [DEBUG] config template file not exists, no envsubst [05.01.2024 14:32.28.039] [LOG] Loading module helpers ... [05.01.2024 14:32.28.040] [LOG] No helper found for module: MMM-SimpleLogo. [05.01.2024 14:32.28.041] [LOG] No helper found for module: compliments. [05.01.2024 14:32.28.042] [LOG] No helper found for module: MMM-Globe. [05.01.2024 14:32.28.043] [LOG] No helper found for module: clock. [05.01.2024 14:32.28.049] [ERROR] (node:2061) UnhandledPromiseRejectionWarning: Error: Cannot find module 'request' Require stack: - /home/Admin/MagicMirror/modules/MMM-Todoist/node_helper.js - /home/Admin/MagicMirror/js/app.js - /home/Admin/MagicMirror/js/electron.js - /home/Admin/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js - at node:internal/modules/cjs/loader:1084:15 at Function.<anonymous> (node:electron/js2c/browser_init:2:117576) at Module._resolveFilename (/home/Admin/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.<anonymous> (/home/Admin/MagicMirror/modules/MMM-Todoist/node_helper.js:12:17) 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/Admin/MagicMirror/js/app.js:180:19) (Use `electron --trace-warnings ...` to show where the warning was created) [05.01.2024 14:32.28.051] [ERROR] (node:2061) 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) [2093:0105/143229.076293:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.076702:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.077074:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.077350:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.077710:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.078018:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.078314:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.080174:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.080490:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.080861:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.081179:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.081474:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.081781:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2) [2093:0105/143229.082085:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
Then this command: pm2 status and finally this command: pm2 start 0
-
@Syosse said in MMM-Todoist:
[05.01.2024 14:32.28.049] [ERROR] (node:2061) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘request’
Require stack:- /home/Admin/MagicMirror/modules/MMM-Todoist/node_helper.js
yep, missing library…
do this…
cd ~/MagicMirror/modules/MMM-Todoist npm install request
note that there are 6 - 8 missing libraries. as we clean up MM from using old dead stuff to newer supported code, some of the older modules didn’t know they were using libs from our packaging… which are no longer there…
-
@sdetweil said in MMM-Todoist:
yep, missing library…
do this…
cd ~/MagicMirror/modules/MMM-Todoist
npm install requestnote that there are 6 - 8 missing libraries. as we clean up MM from using old dead stuff to newer supported code, some of the older modules didn’t know they were using libs from our packaging… which are no longer there…
Perfect it works!! Thanks man
Last thing how can i hidde the Projectname ?
I have added showProject: false
{ module: 'MMM-Todoist', position: 'bottom_right', // This can be any of the regions. Best results in left or right regions. header: 'Todoist', // This is optional config: { // See 'Configuration options' for more information. hideWhenEmpty: false, accessToken: '5b1608a7747cccccc0162a553e', maximumEntries: 60, updateInterval: 10*60*1000, // Update every 10 minutes fade: false, showProject: false, // projects and/or labels is mandatory: projects: [2326180937], } }
-
@Syosse I do not know…
the code only displays the project name when showProject is set to true (the default)