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

    Posts

    Recent Best Controversial
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Hello

      I’m just overwhelmed with the syntax.

      http://admin:roland!?1971@example.com
      and
      http://XXX.xxx,x.xxx:8080/MMM-RTSPStream/config.htm

      I’ll try tomorrow and give feedback, thanks for your support

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Hello
      it is a,

      DAHUA mini-dome Kamera hd-cvi 2 megapixels für indoor/outdoor g ip7. 30 m nightview fixe objektiv 2,8 mm. - AC/DC-Adapter : AC/DC-Adapter 12V 600mA (port 80)

      also i have a Luna Hd
      L-KA-2601 1 160,00 160,00
      IR Bullet-Kamera (HD-CVI), Full HD,

      if i open
      http://XXX.xxx,x.xxx:8080/MMM-RTSPStream/config.html
      I am denied access

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      ok sorry,
      in future output and commands in </>

      thats the logfile

      pi@raspberrypi:~/MagicMirror/config $ more omxplayer.log
      20:14:18 T:1939277143   DEBUG: DllBcm: Using omx system library
      20:14:18 T:1939278613   DEBUG: DllOMX: Using omx system library
      20:14:18 T:1939279243   DEBUG: DllAvFormat: Using libavformat system library
      20:14:18 T:1939280418 WARNING: Failed to acquire D-Bus name 'org.mpris.MediaPlayer2.omxplayer'
      20:14:18 T:1939280521 WARNING: DBus connection failed, trying alternate
      20:14:18 T:1939281594   DEBUG: DBus connection succeeded
      20:14:18 T:1939282354   DEBUG: Keyboard: DBus connection succeeded
      20:14:18 T:1939282502   DEBUG: OMXThread::Create - Thread with id -1387290944 started
      20:14:18 T:1939282604   DEBUG: DllAvUtilBase: Using libavutil system library
      20:14:18 T:1939282636   DEBUG: DllAvCodec: Using libavcodec system library
      20:14:18 T:1939282654   DEBUG: DllAvFormat: Using libavformat system library
      20:14:18 T:1939282994   DEBUG: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
      20:14:18 T:1939283372   ERROR: COMXPlayer::OpenFile - avformat_open_input rtsp://admin:roland!?1971@192.168.2.108:80/cam/realmonitor?channel=2&subtype=0
      20:14:18 T:1939283465   DEBUG: OMXThread::Run - Exited thread with  id -1387290944
      20:14:18 T:1939283726   DEBUG: OMXThread::StopThread - Thread stopped
      pi@raspberrypi:~/MagicMirror/config $
      
      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Hello ,

      1. I started it from the command line

      but no windows opens. or I’m doing something wrong.

      pi@raspberrypi:~/MagicMirror/config $ --genlog
      -bash: --genlog: Kommando nicht gefunden.
      pi@raspberrypi:~/MagicMirror/config $ pm2 status
      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 13m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
      │ 1 │ omx_stream1 │ default │ N/A │ fork │ 14967 │ 0s │ 1152 │ online │ 0% │ 2.6mb │ pi │ disabled │
      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      pi@raspberrypi:~/MagicMirror/config $ pm2 stop omx_stream1
      [PM2] Applying action stopProcessId on app [omx_stream1](ids: 1)
      [PM2] omx_stream1 ✓
      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
      │ 1 │ omx_stream1 │ default │ N/A │ fork │ 0 │ 0 │ 1156 │ stopped │ 0% │ 0b │ pi │ disabled │
      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      pi@raspberrypi:~/MagicMirror/config $ pm2 delete omx_stream1
      [PM2] Applying action deleteProcessId on app [omx_stream1](ids: 1)
      [PM2] omx_stream1 ✓
      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      [PM2][WARN] Current process list running is not in sync with saved list. omx_stream1 differs. Type ‘pm2 save’ to synchronize.
      pi@raspberrypi:~/MagicMirror/config $ pm2 status
      ┌─────┬────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
      │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
      ├─────┼────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
      │ 0 │ MagicMirror │ default │ 2.10.0 │ fork │ 8843 │ 14m │ 2 │ online │ 0% │ 2.5mb │ pi │ disabled │
      └─────┴────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
      [PM2][WARN] Current process list running is not in sync with saved list. omx_stream1 differs. Type ‘pm2 save’ to synchronize.
      pi@raspberrypi:~/MagicMirror/config $ 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’
      have a nice day ;)
      pi@raspberrypi:~/MagicMirror/config $

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      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 $

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      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, :-(

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      Hello sdetweil,

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

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      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.

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      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?

      posted in Utilities
      N
      Number_5
    • RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras

      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.

      posted in Utilities
      N
      Number_5
    • 1 / 1