MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. velkrosmaak
    3. Topics
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    V
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Groups 0

    Topics

    • V

      MMM-GooglePhotos Unhandled promise rejection

      Watching Ignoring Scheduled Pinned Locked Moved Troubleshooting
      9
      0 Votes
      9 Posts
      2k Views
      V
      @sdetweil I’ve added ‘debug: true,’ inside the config block but I don’t seem to get any other errors regarding the MMM-GooglePhotos module (or any other errors at all in fact) apart from this one below. This is after restarting MM using pm2: pm2 restart mm && pm2 logs --lines=100 I’ve also tried it without limiting the lines and I just get this same 429 error over and over. 0|mm | [23.04.2021 00:07.26.515] [ERROR] 0|mm | (node:14901) UnhandledPromiseRejectionWarning: Error: Request failed with status code 429 0|mm | at createError (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/createError.js:16:15) 0|mm | at settle (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/core/settle.js:17:12) 0|mm | at IncomingMessage.handleStreamEnd (/home/pi/MagicMirror/modules/MMM-GooglePhotos/node_modules/axios/lib/adapters/http.js:236:11) 0|mm | at IncomingMessage.emit (events.js:327:22) 0|mm | at endReadableNT (_stream_readable.js:1220:12) 0|mm | at processTicksAndRejections (internal/process/task_queues.js:84:21) 0|mm | [23.04.2021 00:07.26.518] [ERROR] 0|mm | (node:14901) 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: 2) 0|mm | [23.04.2021 00:07.26.521] [ERROR] (node:14901) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Thanks so much for the help by the way!
    • V

      Trigger showing IP camera stream (iFrame?) via API call

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      551 Views
      B
      @velkrosmaak I also use motion to detect and then stream the video via to the MM via MMM_SmartWebDisplay In the motion config file (/etc/motion) search for ’ # Command to be executed when an event starts. (default: none) '# An event starts at first motion detected after a period of no motion defined by event_gap '# on_event_start value '# Show iFrame in MagicMirror on_event_start /etc/motion/notifyOn_MM.sh '# Command to be executed when an event ends after a period of no motion '# (default: none). The period of no motion is defined by option event_gap. '# on_event_end value '# Hide iFrame on MagicMirror on_event_end /etc/motion/notifyOff_MM.sh and the scripts could look like: '# Show SmartWebDisplay in MagicMirror (iFrame no longer supported in MM 2.7.1) curl --no-verbose http://:8080/remote?action=SHOW"&"module=module_10_MMM-SmartWebDisplay Peter
    • 1 / 1