MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    MMM-Todoist

    Scheduled Pinned Locked Moved Solved Troubleshooting
    9 Posts 2 Posters 807 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      sdetweil @Syosse
      last edited by

      @Syosse can you show the errors from where you start mm
      where npm start is done

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 2 Replies Last reply Reply Quote 0
      • S Offline
        Syosse @sdetweil
        last edited by

        @sdetweil

        Thanks for reply

        i have run the npm run config:check:

        d47f4c33-0ab6-479a-a759-d6d4f230c539-grafik.png

        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 :)
        
        
        1 Reply Last reply Reply Quote 0
        • S Offline
          Syosse @sdetweil
          last edited by

          @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 :)
          

          5fe2cf51-8112-4efc-8391-426f8ed06b45-grafik.png

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            sdetweil @Syosse
            last edited by

            @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
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              Syosse @sdetweil
              last edited by

              @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 start

              when done with tests
              pm2 status

              and use the number of the line(usually 0)
              pm2 start 0

              Thanks for the Reply:

              i have run this command:

              pm2 stop all
              cd ~/MagicMirror
              npm start

              0e3566fd-d9bc-45de-88e4-7a9ec5a5c3ef-grafik.png

              > 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

              563d2d8c-9492-4d85-abec-6219f373565d-grafik.png

              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @Syosse
                last edited by

                @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…

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  Syosse @sdetweil
                  last edited by sdetweil

                  @sdetweil said in MMM-Todoist:

                  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…

                  Perfect it works!! Thanks man

                  Last thing how can i hidde the Projectname ?

                  0f8b7e04-f767-45ac-aa26-80b685a43fee-grafik.png

                  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], 
                  			
                        }
                  	}
                  
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Offline
                    sdetweil @Syosse
                    last edited by

                    @Syosse I do not know…
                    the code only displays the project name when showProject is set to true (the default)

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    Enjoying MagicMirror? Please consider a donation!
                    MagicMirror created by Michael Teeuw.
                    Forum managed by Sam, technical setup by Karsten.
                    This forum is using NodeBB as its core | Contributors
                    Contact | Privacy Policy