• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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-RTSPStream broke after update 2.17.1

Scheduled Pinned Locked Moved Troubleshooting
19 Posts 4 Posters 3.3k Views 3 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.
  • J Offline
    JerryP
    last edited by JerryP Oct 17, 2021, 7:16 PM Oct 17, 2021, 7:14 PM

    After a clean and fresh install mirror crasht whit a black screen.

    pm2 log output

    0|MagicMir |     at require (internal/modules/cjs/helpers.js:88:18)
    0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:11:15)
    0|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:1078:30)
    0|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
    0|MagicMir |   code: 'MODULE_NOT_FOUND',
    0|MagicMir |   requireStack: [
    0|MagicMir |     '/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js',
    0|MagicMir |     '/home/pi/MagicMirror/js/app.js',
    0|MagicMir |     '/home/pi/MagicMirror/js/electron.js',
    0|MagicMir |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
    0|MagicMir |     undefined
    0|MagicMir |   ]
    0|MagicMir | }
    0|MagicMir | [17.10.2021 21:04.27.536] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 
    

    Help please.
    This is the config part

    module: "MMM-RTSPStream",
    disabled: false, //false, true
    position: "upper_third",  // "middle_center" "upper_third"
    zoom: -0.6,
    		config: {
    			autoStart: true,
    			rotateStreams: false,
    			rotateStreamTimeout: 20,
    			moduleWidth: 720,
    			moduleHeight: 320,
    			localPlayer: "omxplayer", // "omxplayer" or "ffmpeg", or "vlc"
    			remotePlayer: 'none',
    			showSnapWhenPaused: false,
    			remoteSnaps: false,
    			  stream1: {
    			  name: 'Garage Botter Acker',
    			  url: 'rtsp://User:Pass***@192.168.**.**:554/cam/realmonitor?channel=1&subtype=1',
    			  protocol: "tcp",
    			  frameRate: 25,
    			  muted: true,
    			},
    			}},
    

    Pm2 -v
    5.1.2
    nam -v
    6.14.15
    node -v
    v14.18.1

    S 1 Reply Last reply Oct 17, 2021, 9:14 PM Reply Quote 0
    • S Away
      sdetweil @JerryP
      last edited by Oct 17, 2021, 9:14 PM

      @jerryp a little farther up the log says what module was not found, probably request

      in the module folder, do

      npm install request
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • J Offline
        JerryP
        last edited by Oct 18, 2021, 6:06 AM

        Thanks but this is not working
        This is the log

        pi@raspberrypi:~/MagicMirror/modules/MMM-RTSPStream 
        $ npm install request
        npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
        npm WARN deprecated har-validator@5.1.5: this library is no longer supported
        + request@2.88.2
        added 43 packages from 50 contributors and audited 244 packages in 26.473s
        
        11 packages are looking for funding
          run `npm fund` for details
        
        found 0 vulnerabilities
        
        
        
        S 1 Reply Last reply Oct 18, 2021, 11:03 AM Reply Quote 0
        • J Offline
          JerryP
          last edited by Oct 18, 2021, 6:07 AM

          pi@raspberrypi:~/MagicMirror/modules/MMM-RTSPStream
          $ npm fund
          mmm-rtspstream@2.0.2-dev
          ├─┬ https://github.com/sponsors/ljharb
          │ └── resolve@1.20.0, is-core-module@2.8.0
          ├─┬ https://github.com/sponsors/RubenVerborgh
          │ └── follow-redirects@1.14.4
          ├─┬ https://github.com/chalk/ansi-styles?sponsor=1
          │ └── ansi-styles@4.3.0
          ├─┬ https://github.com/sponsors/jonschlinkert
          │ └── picomatch@2.3.0
          ├─┬ https://github.com/sponsors/feross
          │ └── safe-buffer@5.2.1, run-series@1.1.9
          ├─┬ https://www.patreon.com/feross
          │ └── safe-buffer@5.2.1, run-series@1.1.9
          ├─┬ https://feross.org/support
          │ └── safe-buffer@5.2.1, run-series@1.1.9
          ├─┬ https://github.com/sponsors/sindresorhus
          │ └── escape-string-regexp@4.0.0
          ├─┬ https://www.buymeacoffee.com/systeminfo
          │ └── systeminformation@5.9.7
          ├─┬ https://github.com/sponsors/isaacs
          │ └── glob@7.2.0
          └─┬ https://github.com/sponsors/epoberezkin
          └── ajv@6.12.6

          1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @JerryP
            last edited by Oct 18, 2021, 11:03 AM

            @jerryp and the mm start msgs?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            J 1 Reply Last reply Oct 18, 2021, 3:25 PM Reply Quote 0
            • J Offline
              JerryP @sdetweil
              last edited by Oct 18, 2021, 3:25 PM

              @sdetweil

              sorry

              0|MagicMirror  | Launching application.
              0|MagicMirror  | [18.10.2021 17:14.57.392] [ERROR] 
              0|MagicMirror  | Whoops! There was an uncaught exception...
              0|MagicMirror  | [18.10.2021 17:14.57.412] [ERROR] 
              0|MagicMirror  | TypeError: Cannot convert undefined or null to object
              0|MagicMirror  |     at Function.keys (<anonymous>)
              0|MagicMirror  |     at stopProcs (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:469:32)
              0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:498:17
              0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2/lib/API.js:627:19
              0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon-rpc/lib/client.js:45:10
              0|MagicMirror  |     at Parser.<anonymous> (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon/lib/sockets/req.js:67:8)
              0|MagicMirror  |     at Parser.emit (events.js:315:20)
              0|MagicMirror  |     at Parser._write (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/amp/lib/stream.js:91:16)
              0|MagicMirror  |     at writeOrBuffer (internal/streams/writable.js:358:12)
              0|MagicMirror  |     at Parser.Writable.write (internal/streams/writable.js:303:10)
              0|MagicMirror  | [18.10.2021 17:14.57.414] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
              0|MagicMirror  | [18.10.2021 17:14.57.416] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
              
              

              But the mirror is running. on a PI3B and now I’m out off RAM so lets order a 4B8GB hihihi

              S 1 Reply Last reply Oct 18, 2021, 3:41 PM Reply Quote 0
              • S Away
                sdetweil @JerryP
                last edited by Oct 18, 2021, 3:41 PM

                @jerryp so there was an error and the module didn’t handle it.

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                S 1 Reply Last reply Oct 18, 2021, 4:12 PM Reply Quote 0
                • S Offline
                  swvalenti Project Sponsor @sdetweil
                  last edited by Oct 18, 2021, 4:12 PM

                  pm2 start omx_stream1
                  
                  S 1 Reply Last reply Oct 18, 2021, 5:06 PM Reply Quote 0
                  • S Away
                    sdetweil @swvalenti
                    last edited by Oct 18, 2021, 5:06 PM

                    @swvalenti then

                    pm2 save
                    

                    so it will restart on next boot

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    S 1 Reply Last reply Oct 18, 2021, 5:08 PM Reply Quote 0
                    • S Offline
                      swvalenti Project Sponsor @sdetweil
                      last edited by Oct 18, 2021, 5:08 PM

                      @sdetweil my guess is the omx stream was not started by pm2 after the update

                      J 1 Reply Last reply Oct 18, 2021, 6:54 PM Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      1 / 2
                      • First post
                        3/19
                        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