MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. mlm198
    3. Posts
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by mlm198

    • RE: MMM-GoogleSheets Not loading

      I couldn’t work out how to run the script in full for the fix blacl screen.

      I got up to "npm install ??? " but then I don’t have a module to install.

      Can you point me in the right direction of authenticating the API and downloading credentials. Also where do I put that?

      THanks for your help.

      Matthew

      posted in Troubleshooting
      M
      mlm198
    • MMM-GoogleSheets Not loading

      Hi,

      I am having issues with getting the module working. I have followed the instructions as per https://github.com/ryan-d-williams/MMM-GoogleSheets.

      However when loading all it says is “loading…”.

      Looking in the log it says:
      28.02.2022 21:37.41.094] [LOG] Connecting socket for: MMM-GoogleSheets
      [28.02.2022 21:37.41.096] [LOG] ====================== Starting node_helper for module [MMM-GoogleSheets]
      [28.02.2022 21:37.41.097] [LOG] Sockets connected & modules started …
      [28.02.2022 21:37.41.617] [LOG] Launching application.
      [28.02.2022 21:37.44.794] [ERROR] Whoops! There was an uncaught exception…
      [28.02.2022 21:37.44.810] [ERROR] SyntaxError: Unexpected token < in JSON at position 1
      at JSON.parse ()
      at Request._callback (/home/pi/MagicMirror/modules/MMM-GoogleSheets/node_helper.js:47:27)
      at Request.self.callback (/home/pi/MagicMirror/node_modules/request/request.js:185:22)
      at Request.emit (events.js:315:20)
      at Request. (/home/pi/MagicMirror/node_modules/request/request.js:1154:10)
      at Request.emit (events.js:315:20)
      at IncomingMessage. (/home/pi/MagicMirror/node_modules/request/request.js:1076:12)
      at Object.onceWrapper (events.js:421:28)
      at IncomingMessage.emit (events.js:327:22)
      at endReadableNT (_stream_readable.js:1220:12)
      [28.02.2022 21:37.44.815] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [28.02.2022 21:37.44.817] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues

      Any help would be appreciated.

      Best wishes

      Matthew

      posted in Troubleshooting
      M
      mlm198
    • RE: Help with MMM-ModuleSchedule to turn off monitor

      @sdetweil thanks for the response and forgive my lack of knowledge but which of the folders listed?

      Matthew

      posted in Troubleshooting
      M
      mlm198
    • Help with MMM-ModuleSchedule to turn off monitor

      Hi All,

      I want to use MMM-ModuleSchedule and MMM-Remote switch off the monitor. I know remote is working as I can connect to it using my phone but when I get an error message when I start to use the schedule which is just a cut and paste job. Not sure what I am doing wrong but below is the code for the two modules along with the error message when starting MM.

      Thanks for any help.

      Matthew

      {
              module: 'MMM-ModuleScheduler',
              config: {
                  notification_schedule: [
                      // TURN THE MONITOR/SCREEN ON AT 07:30 EVERY DAY
                      {notification: 'REMOTE_ACTION', schedule: '30 6 * * *', payload: {action: "MONITORON"}},
                      // TURN THE MONITOR/SCREEN OFF AT 22:30 EVERY DAY
                      {notification: 'REMOTE_ACTION', schedule: '30 8 * * *', payload: {action: "MONITOROFF"}},
                      {notification: 'REMOTE_ACTION', schedule: '00 16 * * *', payload: {action: "MONITORON"}},
      				{notification: 'REMOTE_ACTION', schedule: '00 21 * * *', payload: {action: "MONITOROFF"}},
                      
                      // RESTART THE MAGICMIRROR PROCESS AT 2am EVERY SUNDAY
                      {notification: 'REMOTE_ACTION', schedule: '0 2 * * SUN', payload: {action: "RESTART"}}
                  ]
              }
          },
      
      {
              module: 'MMM-Remote-Control',
              // uncomment the following line to show the URL of the remote control on the mirror
              // position: 'top_right',
              // you can hide this module afterwards from the remote control itself
              config: {
                  apiKey: ''
              }
          },
      

      This is the error message:
      16:43:32.896] [ERROR] { Error: Cannot find module ‘cron’
      at Module._resolveFilename (internal/modules/cjs/loader.js:602:15)
      at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12)
      at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
      at Function.Module._load (internal/modules/cjs/loader.js:528:25)
      at Module.require (internal/modules/cjs/loader.js:658:17)
      at require (internal/modules/cjs/helpers.js:20:18)
      at Object. (/home/pi/MagicMirror/modules/MMM-ModuleScheduler/node_helper.js:11:15)
      at Object. (/home/pi/MagicMirror/modules/MMM-ModuleScheduler/node_helper.js:327:3)
      at Module._compile (internal/modules/cjs/loader.js:711:30)
      at Object.Module._extensions…js (internal/modules/cjs/loader.js:722:10) code: ‘MODULE_NOT_FOUND’ }

      posted in Troubleshooting
      M
      mlm198
    • RE: pm2 auto boot not working

      Thanks that worked.

      posted in Troubleshooting
      M
      mlm198
    • pm2 auto boot not working

      Hi

      I tried to install pm2 but it doesn’t appear to be working as it gives me the error message “file ecosystem.config.js not found” and when I run pm2 list it is empty. Any ideas? I don’t really want to do a clean install.

      Best Wishes

      Matthew

      posted in Troubleshooting
      M
      mlm198
    • 1 / 1