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] - Video Streaming from Live Feeds & Security Cameras

    Scheduled Pinned Locked Moved Utilities
    602 Posts 67 Posters 2.1m Views 68 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.
    • N Offline
      Number_5
      last edited by

      Hello i have a similar problem,

      I can’t see my ip- camera stream on the mirror. The stream can be seen by entering the IP in the VLC player but not in MagicMirror. In the MagicMirror i can only see a white frame.

      The recommendation
      rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov
      implement in config.js i followeld.
      After a restart I could see the film in the mirror, but unfortunately only once, I swear I don’t have anything in the config. changed. Now I have only a white frame on the Mirror.

      I had to adjust the script from the configurator by a comma, otherwise the file config.js could not be found.

      My entry in the config.js for IP.camera:
      {
      module: “MMM-RTSPStream”,
      position: “middle_center”,
      header: “test1”,
      config: {
      autoStart: true,
      rotateStreams: true,
      rotateStreamTimeout: 10,
      moduleWidth: 354,
      moduleHeight: 240,
      localPlayer: ‘vlc’,
      remotePlayer: ‘none’,
      showSnapWhenPaused: true,
      remoteSnaps: true,
      shutdownDelay: 12,
      stream1: {
      name: ‘HaustÃr’,
      url: ‘rtsp://XXXX:XXXXX@192.XXX.2.108:80/cam/realmonitor?channel=2&subtype=0’,
      frameRate: ‘undefined’,
      snapshotType: ‘url’,
      snapshotRefresh: 10,
      width: undefined,
      height: undefined,
      },
      }
      },

      My entry in the config.js for Testvideo:

      {
      module: “MMM-RTSPStream”,
      position: “middle_center”,
      header: “MMM-RTSPStream Test”,
      config: {
      autoStart: true,
      rotateStreams: false,
      rotateStreamTimeout: 10,
      moduleWidth: 640,
      moduleHeight: 360,
      localPlayer: ‘omxplayer’,
      remotePlayer: ‘none’,
      showSnapWhenPaused: true,
      remoteSnaps: true,
      stream1: {
      name: ‘Buck Bunny’,
      url: ‘rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov’,
      frameRate: ‘undefined’,
      snapshotType: ‘url’,
      snapshotRefresh: 10,
      width: 640,
      height: 360,
      },
      }
      },

      step 7) pm2 flush

      pi@raspberrypi:~ $ pm2 flush
      [PM2] Flushing /home/pi/.pm2/pm2.log
      [PM2] Flushing:
      [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
      [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
      [PM2] Flushing:
      [PM2] /dev/null
      [PM2] /home/pi/.pm2/logs/omx-stream1-error.log
      [PM2] Logs flushed
      pi@raspberrypi:~ $

      step 8) restart MM

      pi@raspberrypi:~ $ pm2 restart MagicMirror
      Use --update-env to update environment variables
      [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
      [PM2] MagicMirror ✓
      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8828 │ 0s │ 1 │ online │ 0% │ 2.5mb │ pi │ disabled │
      │ 1 │ omx_stream1 │ default │ N/A │ fork │ 8774 │ 4s │ 226 │ online │ 0% │ 2.5mb │ pi │ disabled │
      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      pi@raspberrypi:~ $

      step 9) check the logs

      pi@raspberrypi:~ $ pm2 logs --lines 200
      [TAILING] Tailing last 200 lines for [all] processes (change the value with --lines option)
      /home/pi/.pm2/pm2.log last 200 lines:
      PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:03:54: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:00: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:05: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:11: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:16: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:22: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:28: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:33: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:39: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:45: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:50: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:04:56: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:00: PM2 log: Stopping app:MagicMirror id:0
      PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
      PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
      PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
      PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=failed to kill - retrying in 100ms
      PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:00: PM2 log: pid=863 msg=process killed
      PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] starting in -fork mode-
      PM2 | 2020-02-01T16:05:00: PM2 log: App [MagicMirror:0] online
      PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:02: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:08: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:09: PM2 log: Stopping app:omx_stream1 id:1
      PM2 | 2020-02-01T16:05:09: PM2 log: App [omx_stream1:1] exited with code [0] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:09: PM2 log: pid=8949 msg=process killed
      PM2 | 2020-02-01T16:05:13: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:13: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:19: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:25: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:30: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:36: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:41: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:47: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:53: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:05:58: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:06:04: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:06:09: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:06:15: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:06:20: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:06:26: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:06:31: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:06:37: PM2 log: App [omx_stream1:1] online
      PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] starting in -fork mode-
      PM2 | 2020-02-01T16:06:43: PM2 log: App [omx_stream1:1] online

      /home/pi/.pm2/logs/MagicMirror-error.log last 200 lines:
      /home/pi/.pm2/logs/omx-stream1-error.log last 200 lines:
      /home/pi/.pm2/logs/MagicMirror-out.log last 200 lines:
      0|MagicMir | [16:05:00.464] [LOG] Shutting down server…
      0|MagicMir | [16:05:00.465] [LOG] Stopping module helper: updatenotification
      0|MagicMir | [16:05:00.466] [LOG] Shutting down MMM-RTSPStream streams that were using vlc
      0|MagicMir | [16:05:00.467] [LOG] Killing DevilsPie2…
      0|MagicMir | [16:05:00.471] [LOG] Killing All VLC Streams…
      0|MagicMir | [16:05:00.472] [LOG] Stopping module helper: MMM-PublicTransportHafas
      0|MagicMir | [16:05:00.472] [LOG] Stopping module helper: calendar
      0|MagicMir | [16:05:00.473] [LOG] Stopping module helper: newsfeed
      0|MagicMir |
      0|MagicMir | > magicmirror@2.10.0 start /home/pi/MagicMirror
      0|MagicMir | > ./run-start.sh
      0|MagicMir |
      0|MagicMir | [16:05:07.112] [LOG] Starting MagicMirror: v2.10.0
      0|MagicMir | [16:05:07.122] [LOG] Loading config …
      0|MagicMir | [16:05:07.129] [LOG] Loading module helpers …
      0|MagicMir | [16:05:07.131] [LOG] No helper found for module: alert.
      0|MagicMir | [16:05:07.187] [LOG] Initializing new module helper …
      0|MagicMir | [16:05:07.189] [LOG] Module helper loaded: updatenotification
      0|MagicMir | [16:05:08.315] [LOG] Initializing new module helper …
      0|MagicMir | [16:05:08.315] [LOG] Module helper loaded: MMM-RTSPStream
      0|MagicMir | [16:05:08.628] [LOG] Initializing new module helper …
      0|MagicMir | [16:05:08.629] [LOG] Module helper loaded: MMM-PublicTransportHafas
      0|MagicMir | [16:05:08.630] [LOG] No helper found for module: clock.
      0|MagicMir | [16:05:08.631] [LOG] No helper found for module: currentweather.
      0|MagicMir | [16:05:08.632] [LOG] No helper found for module: weatherforecast.
      0|MagicMir | [16:05:08.706] [LOG] Initializing new module helper …
      0|MagicMir | [16:05:08.706] [LOG] Module helper loaded: calendar
      0|MagicMir | [16:05:08.740] [LOG] Initializing new module helper …
      0|MagicMir | [16:05:08.741] [LOG] Module helper loaded: newsfeed
      0|MagicMir | [16:05:08.741] [LOG] All module helpers loaded.
      0|MagicMir | [16:05:08.743] [LOG] Starting server on port 8080 …
      0|MagicMir | [16:05:08.758] [LOG] Server started …
      0|MagicMir | [16:05:08.760] [LOG] Connecting socket for: updatenotification
      0|MagicMir | [16:05:08.761] [LOG] Connecting socket for: MMM-RTSPStream
      0|MagicMir | [16:05:08.762] [LOG] PM2: Stopping all OMXPlayer Streams…
      0|MagicMir | [16:05:08.765] [LOG] Connecting socket for: MMM-PublicTransportHafas
      0|MagicMir | [16:05:08.766] [LOG] Connecting socket for: calendar
      0|MagicMir | [16:05:08.767] [LOG] Starting node helper for: calendar
      0|MagicMir | [16:05:08.768] [LOG] Connecting socket for: newsfeed
      0|MagicMir | [16:05:08.769] [LOG] Starting module: newsfeed
      0|MagicMir | [16:05:08.770] [LOG] Sockets connected & modules started …
      0|MagicMir | [16:05:08.999] [LOG] Launching application.
      0|MagicMir | [16:05:09.244] [LOG] PM2: Checking if omx_stream1 is running…
      0|MagicMir | [16:05:09.245] [LOG] PM2: Stopping omx_stream1…
      0|MagicMir | [16:05:11.221] [LOG] Transportation fetcher for station with id ‘xxx’ created.
      0|MagicMir | [16:05:11.394] [LOG] Transportation fetcher for station with id ‘xxx’ created.
      0|MagicMir | [16:05:11.398] [LOG] Create new calendar fetcher for url: https://calendar.gxxx- Interval: 300000
      0|MagicMir | [16:05:11.409] [LOG] Create new news fetcher for url: https://www.swr.de/~rss/swraktuell/swraktuell-bw-100.xml - Interval: 300000
      0|MagicMir | [16:05:13.214] [LOG] Starting stream stream1 using: omxplayer --avdict rtsp_transport:tcp --win 6xxx,874 --live --video_queue 4 --fps 30 --no-osd rtsp://xxx:xxx@xxx.xxx.2.108:80/cam/realmonitor?channel=2&subtype=0
      0|MagicMir | [16:05:13.241] [LOG] Starting PM2 for omx_stream1
      0|MagicMir | [16:05:13.401] [LOG] PM2 started for omx_stream1
      0|MagicMir | [16:05:13.411] [LOG] Starting stream stream1 using VLC with args --width 352 --height 242 -I dummy --video-on-top --no-video-deco --no-embedded-video --video-title=stream1 rtsp://XXX@xxx.xxx.2.108:80/cam/realmonitor?channel=2&subtype=0…
      0|MagicMir | [16:05:13.445] [INFO] DP2: Running window resizers…
      0|MagicMir | [16:05:20.485] [INFO] DP2: Running window resizers…

      1|omx_stream1 | have a nice day ;)
      PM2 | App [omx_stream1:1] exited with code [1] via signal [SIGINT]
      PM2 | App [omx_stream1:1] starting in -fork mode-
      PM2 | App [omx_stream1:1] online

      Can someone help me, to see the ip-camera on the magic-mirror ?
      thanks,

      1 Reply Last reply Reply Quote 0
      • BKeyportB Offline
        BKeyport Module Developer
        last edited by

        Try the other stream types. VLC don’t work within the magic mirror. I had to edit the string to get it to even launch using the arguments supplied by the module author, and then launching it under MM’s system didn’t ever work right, would produce a blank window. change the local player to omxplayer or ffmpeg.

        The "E" in "Javascript" stands for "Easy"

        1 Reply Last reply Reply Quote 0
        • N Offline
          Number_5
          last edited by

          Hello BKeyport,
          thanks a lot for for the quick response. . Excuse me please,
          I don’t speak English very well. did I understand you correctly. My syntax in the config.js is correct?
          Now I have changed the player ( omxplayer or ffmpeg) in the config.js but nothing happened. i have only two white frames. i will show you below .
          Here the moduls in the config.js
          {
          module: “MMM-RTSPStream”,
          position: “middle_center”,
          header: “test1”,
          config: {
          autoStart: true,
          rotateStreams: true,
          rotateStreamTimeout: 10,
          moduleWidth: 354,
          moduleHeight: 240,
          localPlayer: ‘ffmpeg’,
          remotePlayer: ‘none’,
          showSnapWhenPaused: true,
          remoteSnaps: true,
          shutdownDelay: 12,
          stream1: {
          name: ‘HaustÃr’,
          url: ‘rtsp://XXX:XXX@XXX.XXX.2.108:80/cam/realmonitor?channel=2&subtype=0’,
          frameRate: ‘undefined’,
          snapshotType: ‘url’,
          snapshotRefresh: 10,
          width: undefined,
          height: undefined,
          },
          }
          },

          {
          module: “MMM-RTSPStream”,
          position: “middle_center”,
          header: “MMM-RTSPStream Test”,
          config: {
          autoStart: true,
          rotateStreams: false,
          rotateStreamTimeout: 10,
          moduleWidth: 640,
          moduleHeight: 360,
          localPlayer: ‘omxplayer’,
          remotePlayer: ‘none’,
          showSnapWhenPaused: true,
          remoteSnaps: true,
          stream1: {
          name: ‘Buck Bunny’,
          url: ‘rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov’,
          frameRate: ‘undefined’,
          snapshotType: ‘url’,
          snapshotRefresh: 10,
          width: 640,
          height: 360,
          },
          }
          },

          actuell screen: can not insert maximum filesize exceeded

          step 7 pm2 flush

          pi@raspberrypi:~/MagicMirror/config $ pm2 flush
          [PM2] Flushing /home/pi/.pm2/pm2.log
          [PM2] Flushing:
          [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
          [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
          [PM2] Flushing:
          [PM2] /dev/null
          [PM2] /home/pi/.pm2/logs/omx-stream1-error.log
          [PM2] Logs flushed
          pi@raspberrypi:~/MagicMirror/config $

          step 8 restart MM

          pi@raspberrypi:~/MagicMirror $ pm2 restart MagicMirror
          Use --update-env to update environment variables
          [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
          [PM2] MagicMirror ✓
          ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
          │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
          ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
          │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 20066 │ 0s │ 1 │ online │ 0% │ 2.6mb │ pi │ disabled │
          │ 1 │ omx_stream1 │ default │ N/A │ fork │ 20024 │ 6s │ 487 │ online │ 0% │ 2.5mb │ pi │ disabled │
          └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
          pi@raspberrypi:~/MagicMirror $

          step 9) check the logs

          ──┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
          pi@raspberrypi:~/MagicMirror $ pm2 logs --lines 200
          [TAILING] Tailing last 200 lines for [all] processes (change the value with --lines option)
          /home/pi/.pm2/pm2.log last 200 lines:
          PM2 | 2020-02-01T20:40:28: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:40:28: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:40:28: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:40:33: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:40:33: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:40:33: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:40:39: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:40:39: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:40:39: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:40:44: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:40:44: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:40:44: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:40:50: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:40:50: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:40:50: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:40:55: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:40:55: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:40:55: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:01: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:01: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:01: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:07: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:07: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:07: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:12: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:12: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:12: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:18: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:18: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:18: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:23: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:23: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:23: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:29: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:29: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:29: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:34: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:34: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:34: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:40: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:40: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:40: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:45: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:45: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:45: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:51: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:51: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:51: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:41:57: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:41:57: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:41:57: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:02: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:02: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:02: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:08: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:08: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:08: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:13: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:13: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:13: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:19: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:19: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:19: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:24: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:24: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:24: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:30: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:30: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:30: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:35: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:35: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:35: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:41: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:41: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:41: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:47: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:47: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:47: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:52: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:52: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:52: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:42:58: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:42:58: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:42:58: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:03: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:03: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:03: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:09: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:09: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:09: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:14: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:14: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:14: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:20: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:20: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:20: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:25: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:25: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:25: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:31: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:31: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:31: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:36: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:36: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:36: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:42: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:42: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:42: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:48: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:48: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:48: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:53: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:53: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:53: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:43:59: PM2 log: Stopping app:MagicMirror id:0
          PM2 | 2020-02-01T20:43:59: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:59: PM2 log: pid=17271 msg=process killed
          PM2 | 2020-02-01T20:43:59: PM2 log: App [MagicMirror:0] starting in -fork mode-
          PM2 | 2020-02-01T20:43:59: PM2 log: App [MagicMirror:0] online
          PM2 | 2020-02-01T20:43:59: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:43:59: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:43:59: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:05: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:05: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:05: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:07: PM2 log: Stopping app:omx_stream1 id:1
          PM2 | 2020-02-01T20:44:07: PM2 log: App [omx_stream1:1] exited with code [0] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:07: PM2 log: pid=20164 msg=process killed
          PM2 | 2020-02-01T20:44:11: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:11: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:17: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:17: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:17: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:23: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:23: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:23: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:28: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:28: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:28: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:34: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:34: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:34: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:39: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:39: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:39: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:45: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:45: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:45: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:50: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:50: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:50: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:44:56: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:44:56: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:44:56: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:45:02: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:45:02: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:45:02: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:45:07: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:45:07: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:45:07: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:45:13: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:45:13: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:45:13: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:45:18: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:45:18: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:45:18: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:45:24: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:45:24: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:45:24: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:45:29: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:45:29: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:45:29: PM2 log: App [omx_stream1:1] online
          PM2 | 2020-02-01T20:45:35: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | 2020-02-01T20:45:35: PM2 log: App [omx_stream1:1] starting in -fork mode-
          PM2 | 2020-02-01T20:45:35: PM2 log: App [omx_stream1:1] online

          /home/pi/.pm2/logs/omx-stream1-error.log last 200 lines:
          /home/pi/.pm2/logs/MagicMirror-error.log last 200 lines:
          0|MagicMir | [20:44:09.697] [ERROR] TypeError: port or a server must be provided
          0|MagicMir | at new WebSocketServer (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/node-rtsp-stream-es6/node_modules/ws/lib/WebSocketServer.js:44:11)
          0|MagicMir | at VideoStream.stream2Socket (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/node-rtsp-stream-es6/src/videoStream.js:32:23)
          0|MagicMir | at new VideoStream (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/node-rtsp-stream-es6/src/videoStream.js:27:14)
          0|MagicMir | at Class.startListener (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:74:40)
          0|MagicMir | at streams.forEach (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:524:22)
          0|MagicMir | at Array.forEach ()
          0|MagicMir | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:523:21)
          0|MagicMir | at Socket. (/home/pi/MagicMirror/js/node_helper.js:113:11)
          0|MagicMir | at Socket.emit (events.js:182:13)
          0|MagicMir | at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12

          /home/pi/.pm2/logs/MagicMirror-out.log last 200 lines:
          0|MagicMir |
          0|MagicMir | > magicmirror@2.10.0 start /home/pi/MagicMirror
          0|MagicMir | > ./run-start.sh
          0|MagicMir |
          0|MagicMir | [20:44:05.677] [LOG] Starting MagicMirror: v2.10.0
          0|MagicMir | [20:44:05.687] [LOG] Loading config …
          0|MagicMir | [20:44:05.694] [LOG] Loading module helpers …
          0|MagicMir | [20:44:05.696] [LOG] No helper found for module: alert.
          0|MagicMir | [20:44:05.752] [LOG] Initializing new module helper …
          0|MagicMir | [20:44:05.753] [LOG] Module helper loaded: updatenotification
          0|MagicMir | [20:44:06.890] [LOG] Initializing new module helper …
          0|MagicMir | [20:44:06.891] [LOG] Module helper loaded: MMM-RTSPStream
          0|MagicMir | [20:44:07.197] [LOG] Initializing new module helper …
          0|MagicMir | [20:44:07.198] [LOG] Module helper loaded: MMM-PublicTransportHafas
          0|MagicMir | [20:44:07.199] [LOG] No helper found for module: currentweather.
          0|MagicMir | [20:44:07.199] [LOG] No helper found for module: weatherforecast.
          0|MagicMir | [20:44:07.272] [LOG] Initializing new module helper …
          0|MagicMir | [20:44:07.273] [LOG] Module helper loaded: calendar
          0|MagicMir | [20:44:07.307] [LOG] Initializing new module helper …
          0|MagicMir | [20:44:07.307] [LOG] Module helper loaded: newsfeed
          0|MagicMir | [20:44:07.308] [LOG] All module helpers loaded.
          0|MagicMir | [20:44:07.309] [LOG] Starting server on port 8080 …
          0|MagicMir | [20:44:07.325] [LOG] Server started …
          0|MagicMir | [20:44:07.327] [LOG] Connecting socket for: updatenotification
          0|MagicMir | [20:44:07.328] [LOG] Connecting socket for: MMM-RTSPStream
          0|MagicMir | [20:44:07.329] [LOG] PM2: Stopping all OMXPlayer Streams…
          0|MagicMir | [20:44:07.332] [LOG] Connecting socket for: MMM-PublicTransportHafas
          0|MagicMir | [20:44:07.333] [LOG] Connecting socket for: calendar
          0|MagicMir | [20:44:07.334] [LOG] Starting node helper for: calendar
          0|MagicMir | [20:44:07.335] [LOG] Connecting socket for: newsfeed
          0|MagicMir | [20:44:07.336] [LOG] Starting module: newsfeed
          0|MagicMir | [20:44:07.336] [LOG] Sockets connected & modules started …
          0|MagicMir | [20:44:07.548] [LOG] Launching application.
          0|MagicMir | [20:44:07.769] [LOG] PM2: Checking if omx_stream1 is running…
          0|MagicMir | [20:44:07.770] [LOG] PM2: Stopping omx_stream1…
          0|MagicMir | [20:44:09.660] [LOG] Transportation fetcher for station with id ‘xxx’ created.
          0|MagicMir | [20:44:09.685] [LOG] Starting WebSocket server on port undefined. Waiting for connections…
          0|MagicMir | [20:44:09.694] [LOG] Whoops! There was an uncaught exception…
          0|MagicMir | [20:44:09.702] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
          0|MagicMir | [20:44:09.705] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
          0|MagicMir | [20:44:09.846] [LOG] Transportation fetcher for station with id ‘xxx’ created.
          0|MagicMir | [20:44:09.866] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/xxxgroup.calendar.google.com/private-xxx/basic.ics - Interval: 300000
          0|MagicMir | [20:44:09.877] [LOG] Create new news fetcher for url: https://www.swr.de/~rss/swraktuell/swraktuell-bw-100.xml - Interval: 300000
          0|MagicMir | [20:44:11.651] [LOG] Starting stream stream1 using: omxplayer --avdict rtsp_transport:tcp --win 643,514,1283,874 --live --video_queue 4 --fps 30 --no-osd rtsp://xxx:xxx@xxx.xxx.2.108:80/cam/realmonitor?channel=2&subtype=0
          0|MagicMir | [20:44:11.673] [LOG] Starting PM2 for omx_stream1
          0|MagicMir | [20:44:11.826] [LOG] PM2 started for omx_stream1

          1|omx_stream1 | have a nice day ;)
          PM2 | App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | App [omx_stream1:1] starting in -fork mode-
          PM2 | App [omx_stream1:1] online
          1|omx_stream1 | have a nice day ;)
          PM2 | App [omx_stream1:1] exited with code [1] via signal [SIGINT]
          PM2 | App [omx_stream1:1] starting in -fork mode-
          PM2 | App [omx_stream1:1] online

          do you have a other idea ?

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

            @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

            0|MagicMir | [20:44:09.697] [ERROR] TypeError: port or a server must be provided
            0|MagicMir | at new WebSocketServer (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/node-rtsp-stream-es6/node_modules/ws/lib/WebSocketServer.js:44:11)

            Starting WebSocket server on port undefined. Waiting for connections…

            looks like a config error for the rtspstream server

            0|MagicMir | [20:44:07.307] [LOG] Initializing new module helper …
            0|MagicMir | [20:44:07.307] [LOG] Module helper loaded: newsfeed
            0|MagicMir | [20:44:07.308] [LOG] All module helpers loaded.
            0|MagicMir | [20:44:07.309] [LOG] Starting server on port 8080 …
            0|MagicMir | [20:44:07.325] [LOG] Server started

            magicmirror’s server and port working

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • N Offline
              Number_5
              last edited by

              Hello Sam,
              during the implementation I kept to the instruction in:

              https://github.com/shbatm/MMM-RTSPStream

              I was denied access to http://your-mirror-ip:8080/MMM-RTSPStream/config.html. After weeks i found a post with the adress
              http://127.0.0.1:8080/MMM-RTSPStream/config.html.With this adress it was possible to use the tool to generate the config details.

              do I have to change the address elsewhere?

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

                @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

                I was denied access to http://your-mirror-ip:8080/

                this is because the mirror defaults to listening on localhost and ipWhiteList[] only allows localhost to connect (on same machine as mirror app)

                change address: “locathost”
                to
                address: “0.0.0.0”

                and ipWhitelist: […]
                to
                ipWhiteList: []

                I don’t know anything about the rtspstream stuff… only reporting what is in the log u posted.

                do I have to change the address elsewhere?

                looks like it might be the port… note mirror is on 8080
                that server also might be trying 8080, both can’t have it at the same time

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • N Offline
                  Number_5
                  last edited by

                  Hello Sam,
                  thanks also for the quick response.

                  I have changed the address ,but now my mirror shows only a black screen, ;-(

                  after correction:
                  var config = {
                  address: “0.0.0.0”, // Address to listen on, can be:
                  // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
                  // - another specific IPv4/6 to listen on a specific interface
                  // - “”, “0.0.0.0”, “::” to listen on any interface
                  // Default, when address config is left out, is “localhost”
                  port: 8080,
                  ipWhitelist: [“”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
                  // or add a specific IPv4 of 192.168.1.5 :
                  // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
                  // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                  // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],


                  before correction :
                  var config = {
                  address: “localhost”, // Address to listen on, can be:
                  // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
                  // - another specific IPv4/6 to listen on a specific interface
                  // - “”, “0.0.0.0”, “::” to listen on any interface
                  // Default, when address config is left out, is “localhost”
                  port: 8080,
                  ipWhitelist: [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”], // Set [] to allow all IP addresses
                  // or add a specific IPv4 of 192.168.1.5 :
                  // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.1.5”],
                  // or IPv4 range of 192.168.3.0 --> 192.168.3.15 use CIDR format :
                  // [“127.0.0.1”, “::ffff:127.0.0.1”, “::1”, “::ffff:192.168.3.0/28”],


                  step 7 pm2 flush

                  pi@raspberrypi:~/MagicMirror $ pm2 flush
                  [PM2] Flushing /home/pi/.pm2/pm2.log
                  [PM2] Flushing:
                  [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
                  [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
                  [PM2] Flushing:
                  [PM2] /dev/null
                  [PM2] /home/pi/.pm2/logs/omx-stream1-error.log
                  [PM2] Logs flushed
                  pi@raspberrypi:~/MagicMirror $

                  step 8 restart MM

                  pi@raspberrypi:~/MagicMirror $ pm2 restart MagicMirror
                  Use --update-env to update environment variables
                  [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
                  [PM2] MagicMirror ✓
                  ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                  │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
                  ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                  │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 15909 │ 0s │ 2 │ online │ 0% │ 2.4mb │ pi │ disabled │
                  │ 1 │ omx_stream1 │ default │ N/A │ fork │ 0 │ 0 │ 1189 │ stopped │ 0% │ 0b │ pi │ disabled │
                  └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

                  step 9) check the logs

                  pi@raspberrypi:~/MagicMirror $ pm2 logs --lines 200
                  [TAILING] Tailing last 200 lines for [all] processes (change the value with --lines option)
                  /home/pi/.pm2/pm2.log last 200 lines:
                  PM2 | 2020-02-01T21:52:06: PM2 log: Stopping app:MagicMirror id:0
                  PM2 | 2020-02-01T21:52:07: PM2 log: pid=15652 msg=failed to kill - retrying in 100ms
                  PM2 | 2020-02-01T21:52:07: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                  PM2 | 2020-02-01T21:52:07: PM2 log: pid=15652 msg=process killed
                  PM2 | 2020-02-01T21:52:07: PM2 log: App [MagicMirror:0] starting in -fork mode-
                  PM2 | 2020-02-01T21:52:07: PM2 log: App [MagicMirror:0] online

                  /home/pi/.pm2/logs/MagicMirror-error.log last 200 lines:
                  /home/pi/.pm2/logs/omx-stream1-error.log last 200 lines:
                  /home/pi/.pm2/logs/MagicMirror-out.log last 200 lines:
                  0|MagicMir | [21:52:07.028] [LOG] Shutting down server…
                  0|MagicMir | [21:52:07.030] [LOG] Stopping module helper: updatenotification
                  0|MagicMir | [21:52:07.031] [LOG] Shutting down MMM-RTSPStream streams that were using undefined
                  0|MagicMir | [21:52:07.031] [LOG] Stopping module helper: MMM-PublicTransportHafas
                  0|MagicMir | [21:52:07.032] [LOG] Stopping module helper: calendar
                  0|MagicMir | [21:52:07.032] [LOG] Stopping module helper: newsfeed
                  0|MagicMir |
                  0|MagicMir | > magicmirror@2.10.0 start /home/pi/MagicMirror
                  0|MagicMir | > ./run-start.sh
                  0|MagicMir |
                  0|MagicMir | [21:52:12.731] [LOG] Starting MagicMirror: v2.10.0
                  0|MagicMir | [21:52:12.739] [LOG] Loading config …
                  0|MagicMir | [21:52:12.745] [LOG] Loading module helpers …
                  0|MagicMir | [21:52:12.746] [LOG] No helper found for module: alert.
                  0|MagicMir | [21:52:12.793] [LOG] Initializing new module helper …
                  0|MagicMir | [21:52:12.794] [LOG] Module helper loaded: updatenotification
                  0|MagicMir | [21:52:13.749] [LOG] Initializing new module helper …
                  0|MagicMir | [21:52:13.749] [LOG] Module helper loaded: MMM-RTSPStream
                  0|MagicMir | [21:52:14.002] [LOG] Initializing new module helper …
                  0|MagicMir | [21:52:14.003] [LOG] Module helper loaded: MMM-PublicTransportHafas
                  0|MagicMir | [21:52:14.003] [LOG] No helper found for module: currentweather.
                  0|MagicMir | [21:52:14.004] [LOG] No helper found for module: weatherforecast.
                  0|MagicMir | [21:52:14.071] [LOG] Initializing new module helper …
                  0|MagicMir | [21:52:14.071] [LOG] Module helper loaded: calendar
                  0|MagicMir | [21:52:14.101] [LOG] Initializing new module helper …
                  0|MagicMir | [21:52:14.102] [LOG] Module helper loaded: newsfeed
                  0|MagicMir | [21:52:14.102] [LOG] All module helpers loaded.
                  0|MagicMir | [21:52:14.103] [LOG] Starting server on port 8080 …
                  0|MagicMir | [21:52:14.116] [LOG] Server started …
                  0|MagicMir | [21:52:14.117] [LOG] Connecting socket for: updatenotification
                  0|MagicMir | [21:52:14.118] [LOG] Connecting socket for: MMM-RTSPStream
                  0|MagicMir | [21:52:14.119] [LOG] PM2: Stopping all OMXPlayer Streams…
                  0|MagicMir | [21:52:14.121] [LOG] Connecting socket for: MMM-PublicTransportHafas
                  0|MagicMir | [21:52:14.122] [LOG] Connecting socket for: calendar
                  0|MagicMir | [21:52:14.123] [LOG] Starting node helper for: calendar
                  0|MagicMir | [21:52:14.123] [LOG] Connecting socket for: newsfeed
                  0|MagicMir | [21:52:14.124] [LOG] Starting module: newsfeed
                  0|MagicMir | [21:52:14.124] [LOG] Sockets connected & modules started …
                  0|MagicMir | [21:52:14.285] [LOG] Launching application.
                  0|MagicMir | [21:52:14.407] [LOG] Access denied to IP address: 127.0.0.1
                  0|MagicMir | [21:52:14.441] [LOG] PM2: Checking if omx_stream1 is running…

                  I changed the address as described above, but in the logfile there is still the same adress.
                  Access denied to IP address: 127.0.0.1

                  Did i change the address in the wrong place?

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

                    @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

                    Access denied to IP address: 127.0.0.1

                    No, you didn’t change ipWhitelist to [] as I documented above

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    1 Reply Last reply Reply Quote 0
                    • N Offline
                      Number_5
                      last edited by

                      Hallo Sam,

                      sorry i have fixed it now.


                      after:

                      var config = {
                      address: “0.0.0.0”, // Address to listen on, can be:
                      // - “localhost”, “127.0.0.1”, “::1” to listen on loopback interface
                      // - another specific IPv4/6 to listen on a specific interface
                      // - “”, “0.0.0.0”, “::” to listen on any interface
                      // Default, when address config is left out, is “localhost”
                      port: 8080,
                      ipWhitelist: [], // Set [] to allow all IP addresses


                      After newstart I can see the white frame again. Inside the frame the title “Buck Bunny” and “Aussentür”
                      as well as the symbol “play” can be seen. But not the stream.

                      step 7 pm2 flush

                      pi@raspberrypi:~/MagicMirror/config $ pm2 flush
                      [PM2] Flushing /home/pi/.pm2/pm2.log
                      [PM2] Flushing:
                      [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
                      [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
                      [PM2] Flushing:
                      [PM2] /dev/null
                      [PM2] /home/pi/.pm2/logs/omx-stream1-error.log
                      [PM2] Logs flushed
                      pi@raspberrypi:~/MagicMirror/config $

                      step 8 restart MM

                      pi@raspberrypi:~/MagicMirror/config $ pm2 restart MagicMirror
                      Use --update-env to update environment variables
                      [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
                      [PM2] MagicMirror ✓
                      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
                      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                      │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 3001 │ 0s │ 1 │ online │ 0% │ 2.4mb │ pi │ disabled │
                      │ 1 │ omx_stream1 │ default │ N/A │ fork │ 0 │ 0 │ 57 │ stopped │ 0% │ 0b │ pi │ disabled │
                      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                      pi@raspberrypi:~/MagicMirror/config $

                      step 9) check the logs

                      pi@raspberrypi:~/MagicMirror/config $ pm2 logs --lines 200
                      [TAILING] Tailing last 200 lines for [all] processes (change the value with --lines option)
                      /home/pi/.pm2/pm2.log last 200 lines:
                      PM2 | 2020-02-02T16:57:52: PM2 log: Stopping app:MagicMirror id:0
                      PM2 | 2020-02-02T16:57:52: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                      PM2 | 2020-02-02T16:57:52: PM2 log: pid=2049 msg=process killed
                      PM2 | 2020-02-02T16:57:52: PM2 log: App [MagicMirror:0] starting in -fork mode-
                      PM2 | 2020-02-02T16:57:52: PM2 log: App [MagicMirror:0] online
                      PM2 | 2020-02-02T16:58:03: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:03: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:09: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:09: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:09: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:15: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:15: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:15: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:20: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:20: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:20: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:26: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:26: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:26: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:31: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:31: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:31: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:37: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:37: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:37: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:43: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:43: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:43: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:48: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:48: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:48: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:54: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:54: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:54: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:58:59: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:58:59: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:58:59: PM2 log: App [omx_stream1:1] online
                      PM2 | 2020-02-02T16:59:05: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | 2020-02-02T16:59:05: PM2 log: App [omx_stream1:1] starting in -fork mode-
                      PM2 | 2020-02-02T16:59:05: PM2 log: App [omx_stream1:1] online

                      /home/pi/.pm2/logs/omx-stream1-error.log last 200 lines:
                      /home/pi/.pm2/logs/MagicMirror-error.log last 200 lines:
                      0|MagicMir | [16:58:01.715] [ERROR] TypeError: port or a server must be provided
                      0|MagicMir | at new WebSocketServer (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/node-rtsp-stream-es6/node_modules/ws/lib/WebSocketServer.js:44:11)
                      0|MagicMir | at VideoStream.stream2Socket (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/node-rtsp-stream-es6/src/videoStream.js:32:23)
                      0|MagicMir | at new VideoStream (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/node-rtsp-stream-es6/src/videoStream.js:27:14)
                      0|MagicMir | at Class.startListener (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:74:40)
                      0|MagicMir | at streams.forEach (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:524:22)
                      0|MagicMir | at Array.forEach ()
                      0|MagicMir | at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:523:21)
                      0|MagicMir | at Socket. (/home/pi/MagicMirror/js/node_helper.js:113:11)
                      0|MagicMir | at Socket.emit (events.js:182:13)
                      0|MagicMir | at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:528:12

                      /home/pi/.pm2/logs/MagicMirror-out.log last 200 lines:
                      0|MagicMir |
                      0|MagicMir | > magicmirror@2.10.0 start /home/pi/MagicMirror
                      0|MagicMir | > ./run-start.sh
                      0|MagicMir |
                      0|MagicMir | [16:57:58.071] [LOG] Starting MagicMirror: v2.10.0
                      0|MagicMir | [16:57:58.080] [LOG] Loading config …
                      0|MagicMir | [16:57:58.086] [LOG] Loading module helpers …
                      0|MagicMir | [16:57:58.087] [LOG] No helper found for module: alert.
                      0|MagicMir | [16:57:58.134] [LOG] Initializing new module helper …
                      0|MagicMir | [16:57:58.135] [LOG] Module helper loaded: updatenotification
                      0|MagicMir | [16:57:59.093] [LOG] Initializing new module helper …
                      0|MagicMir | [16:57:59.093] [LOG] Module helper loaded: MMM-RTSPStream
                      0|MagicMir | [16:57:59.348] [LOG] Initializing new module helper …
                      0|MagicMir | [16:57:59.348] [LOG] Module helper loaded: MMM-PublicTransportHafas
                      0|MagicMir | [16:57:59.349] [LOG] No helper found for module: currentweather.
                      0|MagicMir | [16:57:59.350] [LOG] No helper found for module: weatherforecast.
                      0|MagicMir | [16:57:59.417] [LOG] Initializing new module helper …
                      0|MagicMir | [16:57:59.417] [LOG] Module helper loaded: calendar
                      0|MagicMir | [16:57:59.447] [LOG] Initializing new module helper …
                      0|MagicMir | [16:57:59.448] [LOG] Module helper loaded: newsfeed
                      0|MagicMir | [16:57:59.448] [LOG] All module helpers loaded.
                      0|MagicMir | [16:57:59.449] [LOG] Starting server on port 8080 …
                      0|MagicMir | [16:57:59.456] [INFO] You’re using a full whitelist configuration to allow for all IPs
                      0|MagicMir | [16:57:59.463] [LOG] Server started …
                      0|MagicMir | [16:57:59.464] [LOG] Connecting socket for: updatenotification
                      0|MagicMir | [16:57:59.465] [LOG] Connecting socket for: MMM-RTSPStream
                      0|MagicMir | [16:57:59.466] [LOG] PM2: Stopping all OMXPlayer Streams…
                      0|MagicMir | [16:57:59.468] [LOG] Connecting socket for: MMM-PublicTransportHafas
                      0|MagicMir | [16:57:59.469] [LOG] Connecting socket for: calendar
                      0|MagicMir | [16:57:59.470] [LOG] Starting node helper for: calendar
                      0|MagicMir | [16:57:59.471] [LOG] Connecting socket for: newsfeed
                      0|MagicMir | [16:57:59.471] [LOG] Starting module: newsfeed
                      0|MagicMir | [16:57:59.472] [LOG] Sockets connected & modules started …
                      0|MagicMir | [16:57:59.645] [LOG] Launching application.
                      0|MagicMir | [16:57:59.829] [LOG] PM2: Checking if omx_stream1 is running…
                      0|MagicMir | [16:58:01.702] [LOG] Transportation fetcher for station with id ‘xxx’ created.
                      0|MagicMir | [16:58:01.707] [LOG] Starting WebSocket server on port undefined. Waiting for connections…
                      0|MagicMir | [16:58:01.714] [LOG] Whoops! There was an uncaught exception…
                      0|MagicMir | [16:58:01.721] [LOG] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                      0|MagicMir | [16:58:01.722] [LOG] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                      0|MagicMir | [16:58:01.744] [LOG] Transportation fetcher for station with id’xxx’ created.
                      0|MagicMir | [16:58:01.747] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/xxxgroup.calendar.google.com/private-xxxc/basic.ics - Interval: 300000
                      0|MagicMir | [16:58:01.759] [LOG] Create new news fetcher for url: https://www.swr.de/~rss/swraktuell/swraktuell-bw-100.xml - Interval: 300000
                      0|MagicMir | [16:58:03.761] [LOG] Starting stream stream1 using: omxplayer --avdict rtsp_transport:tcp --win 643,514,1283,874 --live --video_queue 4 --fps 30 --no-osd rtsp://xxx.xxx@xxx.xxx.2.108:80/cam/realmonitor?channel=2&subtype=0
                      0|MagicMir | [16:58:03.793] [LOG] Starting PM2 for omx_stream1
                      0|MagicMir | [16:58:03.960] [LOG] PM2 started for omx_stream1

                      1|omx_stream1 | have a nice day ;)
                      PM2 | App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | App [omx_stream1:1] starting in -fork mode-
                      PM2 | App [omx_stream1:1] online
                      1|omx_stream1 | have a nice day ;)
                      PM2 | App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                      PM2 | App [omx_stream1:1] starting in -fork mode-
                      PM2 | App [omx_stream1:1] online

                      What else can I do ?
                      Thanks for your help.

                      evroomE 1 Reply Last reply Reply Quote 0
                      • evroomE Offline
                        evroom @Number_5
                        last edited by evroom

                        @Number_5 said in [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras:

                        If I see it correctly, then you have 2 MMM-RTSPStream modules active in your config and 2 stream1 defined, and therefore are trying to start 2 omx_stream1 processes.
                        I would concentrate on 1 config with 1 stream1.
                        To see if things works, try it with the BucksBunny config first.
                        Then give the other one a try (with the bunny removed).
                        I also would give the rtsp stream a go without MM, so standalone.
                        Somewhere in this thread there should be a description on how to do this; would need to search my notes for it.

                        MagicMirror version: 2.33.0
                        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                        Raspbian GNU/Linux 12 (bookworm)

                        Test environment:
                        MagicMirror version: v2.33.0
                        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                        Raspbian GNU/Linux 12 (bookworm)

                        N 1 Reply Last reply Reply Quote 0
                        • N Offline
                          Number_5
                          last edited by

                          update:

                          Hello,
                          the test video is now running, thanks. I had left the entry of the IP cam in the config, sorry. Now I see a white frame, unfortunately the camera stream cannot be seen. by clicking on the window you can see the “Play” icon.

                          step 7 pm2 flush

                          [PM2] Flushing /home/pi/.pm2/pm2.log
                          [PM2] Flushing:
                          [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
                          [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
                          [PM2] Flushing:
                          [PM2] /dev/null
                          [PM2] /home/pi/.pm2/logs/omx-stream1-error.log
                          [PM2] Logs flushed
                          pi@raspberrypi:~/MagicMirror/config $

                          step 8 restart MM

                          pi@raspberrypi:~/MagicMirror/config $ pm2 restart MagicMirror
                          Use --update-env to update environment variables
                          [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
                          [PM2] MagicMirror ✓
                          ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                          │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
                          ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                          │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 4841 │ 0s │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
                          │ 1 │ omx_stream1 │ default │ N/A │ fork │ 4814 │ 3s │ 90 │ online │ 0% │ 2.5mb │ pi │ disabled │
                          └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                          pi@raspberrypi:~/MagicMirror/config $

                          step 9) check the logs

                          pi@raspberrypi:~/MagicMirror/config $ pm2 logs --lines 200
                          [TAILING] Tailing last 200 lines for [all] processes (change the value with --lines option)
                          /home/pi/.pm2/pm2.log last 200 lines:
                          PM2 | 2020-02-02T19:33:48: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:33:48: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:33:48: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:33:54: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:33:54: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:33:54: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:33:59: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:33:59: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:33:59: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:05: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:05: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:05: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:11: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:11: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:11: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:16: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:16: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:16: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:22: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:22: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:22: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:27: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:27: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:27: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:33: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:33: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:33: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:38: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:38: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:38: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:44: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:44: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:44: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:49: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:49: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:49: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:34:55: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:34:55: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:34:55: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:01: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:01: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:01: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:06: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:06: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:06: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:12: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:12: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:12: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:17: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:17: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:17: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:20: PM2 log: Stopping app:MagicMirror id:0
                          PM2 | 2020-02-02T19:35:21: PM2 log: App [MagicMirror:0] exited with code [0] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:21: PM2 log: pid=2360 msg=process killed
                          PM2 | 2020-02-02T19:35:21: PM2 log: App [MagicMirror:0] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:21: PM2 log: App [MagicMirror:0] online
                          PM2 | 2020-02-02T19:35:24: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:24: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:24: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:29: PM2 log: Stopping app:omx_stream1 id:1
                          PM2 | 2020-02-02T19:35:29: PM2 log: App [omx_stream1:1] exited with code [0] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:29: PM2 log: pid=4878 msg=process killed
                          PM2 | 2020-02-02T19:35:33: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:33: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:39: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:39: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:39: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:45: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:45: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:45: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:50: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:50: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:50: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:35:56: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:35:56: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:35:56: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:36:01: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:36:01: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:36:01: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:36:07: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:36:07: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:36:07: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:36:12: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:36:12: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:36:12: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:36:18: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:36:18: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:36:18: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:36:24: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:36:24: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:36:24: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:36:29: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:36:29: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:36:29: PM2 log: App [omx_stream1:1] online
                          PM2 | 2020-02-02T19:36:35: PM2 log: App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | 2020-02-02T19:36:35: PM2 log: App [omx_stream1:1] starting in -fork mode-
                          PM2 | 2020-02-02T19:36:35: PM2 log: App [omx_stream1:1] online

                          /home/pi/.pm2/logs/MagicMirror-error.log last 200 lines:
                          /home/pi/.pm2/logs/omx-stream1-error.log last 200 lines:
                          /home/pi/.pm2/logs/MagicMirror-out.log last 200 lines:
                          0|MagicMir |
                          0|MagicMir | > magicmirror@2.10.0 start /home/pi/MagicMirror
                          0|MagicMir | > ./run-start.sh
                          0|MagicMir |
                          0|MagicMir | [19:35:27.493] [LOG] Starting MagicMirror: v2.10.0
                          0|MagicMir | [19:35:27.503] [LOG] Loading config …
                          0|MagicMir | [19:35:27.509] [LOG] Loading module helpers …
                          0|MagicMir | [19:35:27.511] [LOG] No helper found for module: alert.
                          0|MagicMir | [19:35:27.575] [LOG] Initializing new module helper …
                          0|MagicMir | [19:35:27.576] [LOG] Module helper loaded: updatenotification
                          0|MagicMir | [19:35:28.715] [LOG] Initializing new module helper …
                          0|MagicMir | [19:35:28.716] [LOG] Module helper loaded: MMM-RTSPStream
                          0|MagicMir | [19:35:29.021] [LOG] Initializing new module helper …
                          0|MagicMir | [19:35:29.022] [LOG] Module helper loaded: MMM-PublicTransportHafas
                          0|MagicMir | [19:35:29.023] [LOG] No helper found for module: currentweather.
                          0|MagicMir | [19:35:29.023] [LOG] No helper found for module: weatherforecast.
                          0|MagicMir | [19:35:29.096] [LOG] Initializing new module helper …
                          0|MagicMir | [19:35:29.097] [LOG] Module helper loaded: calendar
                          0|MagicMir | [19:35:29.132] [LOG] Initializing new module helper …
                          0|MagicMir | [19:35:29.132] [LOG] Module helper loaded: newsfeed
                          0|MagicMir | [19:35:29.133] [LOG] All module helpers loaded.
                          0|MagicMir | [19:35:29.134] [LOG] Starting server on port 8080 …
                          0|MagicMir | [19:35:29.143] [INFO] You’re using a full whitelist configuration to allow for all IPs
                          0|MagicMir | [19:35:29.152] [LOG] Server started …
                          0|MagicMir | [19:35:29.153] [LOG] Connecting socket for: updatenotification
                          0|MagicMir | [19:35:29.155] [LOG] Connecting socket for: MMM-RTSPStream
                          0|MagicMir | [19:35:29.156] [LOG] PM2: Stopping all OMXPlayer Streams…
                          0|MagicMir | [19:35:29.159] [LOG] Connecting socket for: MMM-PublicTransportHafas
                          0|MagicMir | [19:35:29.160] [LOG] Connecting socket for: calendar
                          0|MagicMir | [19:35:29.161] [LOG] Starting node helper for: calendar
                          0|MagicMir | [19:35:29.162] [LOG] Connecting socket for: newsfeed
                          0|MagicMir | [19:35:29.163] [LOG] Starting module: newsfeed
                          0|MagicMir | [19:35:29.164] [LOG] Sockets connected & modules started …
                          0|MagicMir | [19:35:29.353] [LOG] Launching application.
                          0|MagicMir | [19:35:29.596] [LOG] PM2: Checking if omx_stream1 is running…
                          0|MagicMir | [19:35:29.597] [LOG] PM2: Stopping omx_stream1…
                          0|MagicMir | [19:35:31.438] [LOG] Transportation fetcher for station with id ‘xxx’ created.
                          0|MagicMir | [19:35:31.613] [LOG] Transportation fetcher for station with id ‘xxx’ created.
                          0|MagicMir | [19:35:31.618] [LOG] Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/xxgroup.calendar.google.com/private-xxx/basic.ics - Interval: 300000
                          0|MagicMir | [19:35:31.639] [LOG] Create new news fetcher for url: https://www.swr.de/~rss/swraktuell/swraktuell-bw-100.xml - Interval: 300000
                          0|MagicMir | [19:35:33.506] [LOG] Starting stream stream1 using: omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
                          0|MagicMir | [19:35:33.531] [LOG] Starting PM2 for omx_stream1
                          0|MagicMir | [19:35:33.676] [LOG] PM2 started for omx_stream1

                          1|omx_stream1 | have a nice day ;)
                          PM2 | App [omx_stream1:1] exited with code [1] via signal [SIGINT]
                          PM2 | App [omx_stream1:1] starting in -fork mode-
                          PM2 | App [omx_stream1:1] online
                          1|omx_stream1 | have a nice day ;)

                          Is there still an idea?

                          S 1 Reply Last reply Reply Quote 0
                          • N Offline
                            Number_5 @evroom
                            last edited by

                            Hello evroom,
                            our contribution has overlapped. The stream with BucksBunny works, I deleted it now from the config.
                            I would like to follow your suggestion and will look for the description next.

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

                              @Number_5

                              Does this work by itself.

                              omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
                              

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

                              1 Reply Last reply Reply Quote 0
                              • N Offline
                                Number_5
                                last edited by

                                Hello sdetweil,

                                sorry i am new here. Should i copy this line direkt in config.js ? where exactly?

                                evroomE S 2 Replies Last reply Reply Quote 0
                                • evroomE Offline
                                  evroom @Number_5
                                  last edited by

                                  @Number_5
                                  Command-line.
                                  Better deactivate the module before (this in the config.js):

                                  module: "MMM-RTSPStream",
                                  disabled: true,
                                  etc
                                  

                                  MagicMirror version: 2.33.0
                                  Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                  Raspbian GNU/Linux 12 (bookworm)

                                  Test environment:
                                  MagicMirror version: v2.33.0
                                  Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                  Raspbian GNU/Linux 12 (bookworm)

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

                                    @Number_5 that’s the command the module is trying to execute ( from the log)

                                    Open a command prompt, cut/paste that and see if it works

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    1 Reply Last reply Reply Quote 0
                                    • N Offline
                                      Number_5
                                      last edited by

                                      Hello ,
                                      first I deactivated the config module.

                                      pi@raspberrypi:~/MagicMirror/config $ omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
                                      -bash: !?1971@192.168.2.108:80/cam/realmonitor?: event not found
                                      pi@raspberrypi:~/MagicMirror/config $ pm2 start MagicMirror
                                      [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
                                      [PM2] MagicMirror ✓
                                      [PM2] Process successfully started
                                      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                                      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
                                      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                                      │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 30912 │ 0s │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
                                      │ 1 │ omx_stream1 │ default │ N/A │ fork │ 30880 │ 4s │ 741 │ online │ 0% │ 2.6mb │ pi │ disabled │
                                      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
                                      pi@raspberrypi:~/MagicMirror/config $ omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
                                      -bash: !?1971@192.168.2.108:80/cam/realmonitor?: event not found
                                      pi@raspberrypi:~/MagicMirror/config $

                                      It does not work, :-(

                                      evroomE 1 Reply Last reply Reply Quote 0
                                      • evroomE Offline
                                        evroom @Number_5
                                        last edited by evroom

                                        @Number_5

                                        Can you try with quotes (single, double) ?

                                        omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0"
                                        
                                        omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0'
                                        

                                        when the command works, but still no video, then add --genlog

                                        omxplayer --genlog --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0'
                                        

                                        This will creat a log file called omxplayer.log under the directory where you started omxplayer.

                                        MagicMirror version: 2.33.0
                                        Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                                        Raspbian GNU/Linux 12 (bookworm)

                                        Test environment:
                                        MagicMirror version: v2.33.0
                                        Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                                        Raspbian GNU/Linux 12 (bookworm)

                                        1 Reply Last reply Reply Quote 0
                                        • N Offline
                                          Number_5
                                          last edited by

                                          Hello,

                                          1. First 1 start magic mirror.
                                          2. with 2 qoutes
                                          3. with 1 qoute

                                          pi@raspberrypi:~/MagicMirror/config $ pm2 start MagicMirror
                                          [PM2] Applying action restartProcessId on app [MagicMirror](ids: 0)
                                          [PM2] MagicMirror ✓
                                          [PM2] Process successfully started
                                          ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
                                          │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
                                          ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
                                          │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 0s │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
                                          │ 1 │ omx_stream1 │ default │ N/A │ fork │ 8825 │ 2s │ 1000 │ online │ 0% │ 2.5mb │ pi │ disabled │
                                          └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

                                          [1]+ Angehalten omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0’channel=2
                                          pi@raspberrypi:~/MagicMirror/config $ omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd “rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0”
                                          omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd “rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0’channel=2&subtype=0"channel=2&subtype=0’channel=2&subtype=0"channel=2&subtype=0”
                                          [2] 9584
                                          [3] 9585
                                          pi@raspberrypi:~/MagicMirror/config $ omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd ‘rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0’
                                          have a nice day ;)

                                          [2]+ Angehalten omxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd "rtsp://admin:rolandomxplayer --avdict rtsp_transport:tcp --win 786,424,1138,666 --live --video_queue 4 --fps 30 --no-osd 'rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2
                                          [3] Fertig subtype=0’channel=2&subtype=0"channel=2&subtype=0’channel=2
                                          pi@raspberrypi:~/MagicMirror/config $

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

                                            @Number_5 pm2 stop 0, pm2 stop 1

                                            just from the commandline…(ctrl-alt-t) . does a video window open on any of these?

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 22
                                            • 23
                                            • 24
                                            • 25
                                            • 26
                                            • 30
                                            • 31
                                            • 24 / 31
                                            • 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