A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.
Read the statement by Michael Teeuw here.
MMM-PIR-Sensor interferes with MMM-RTSPStream
-
Hi there,
after some struggle, I managed to get MMM-RTSPStream running with my FOSCAM FI9900P. But if MMM-PIR-Sensor ist started in parallel, I got these entries in the log and the Stream won’t show:
> magicmirror@2.3.1 start /home/pi/MagicMirror > sh run-start.sh Starting MagicMirror: v2.3.1 Loading config ... Loading module helpers ... Initializing new module helper ... Module helper loaded: MMM-PIR-Sensor No helper found for module: alert. No helper found for module: clock. Initializing new module helper ... Module helper loaded: calendar Initializing new module helper ... Module helper loaded: MMM-RTSPStream Initializing new module helper ... Starting server on port 8080 ... You're using a full whitelist configuration to allow for all IPs Server started ... Connecting socket for: MMM-PIR-Sensor Connecting socket for: MMM-RTSPStream Sockets connected & modules started ... Launching application. Starting stream stream1 with args: [ "--avdict", "rtsp_transport:tcp", "--win", "332, 1260, 684, 1502", "--live", "--video_queue", "4", "--fps", "30", "rtsp://user:pass@192.168.xx.xx:88/videoMain" ] PM2: omx_stream1 already running. Stopping old instance... Starting PM2 for omx_stream1 PM2 started for omx_stream1 Stopping stream stream1 Stopping PM2 process: omx_stream1 Starting stream stream1 with args: [ "--avdict", "rtsp_transport:tcp", "--win", "332, 1225, 684, 1467", "--live", "--video_queue", "4", "--fps", "30", "rtsp://user:pass@192.168.xx.xx:88/videoMain" ] PM2: omx_stream1 already running. Stopping old instance... Starting PM2 for omx_stream1 PM2 started for omx_stream1 Stopping stream stream1 Starting stream stream1 with args: [ "--avdict", "rtsp_transport:tcp", "--win", "332, 1190, 684, 1432", "--live", "--video_queue", "4", "--fps", "30", "rtsp://user:pass@192.168.xx.xx:88/videoMain" ] Stopping PM2 process: omx_stream1 Starting PM2 for omx_stream1 PM2 started for omx_stream1 Stopping all OMXPlayer Streams... PM2: Stopping omx_stream1... Starting stream stream1 with args: [ "--avdict", "rtsp_transport:tcp", "--win", "332, 1190, 684, 1432", "--live", "--video_queue", "4", "--fps", "30", "rtsp://user:pass@192.168.xx.xx:88/videoMain" ] Starting PM2 for omx_stream1 PM2 started for omx_stream1 Stopping all OMXPlayer Streams... PM2: Stopping omx_stream1...
the console
pm2 logs
shows an additional:0|mm | Launching application. 0|mm | Starting stream stream1 with args: [ 0|mm | "--avdict", 0|mm | "rtsp_transport:tcp", 0|mm | "--win", 0|mm | "332, 1260, 684, 1502", 0|mm | "--live", 0|mm | "--video_queue", 0|mm | "4", 0|mm | "--fps", 0|mm | "30", 0|mm | "rtsp://user:pass@192.168.xx.xx:88/videoMain" 0|mm | ] 0|mm | PM2: omx_stream1 already running. Stopping old instance... 0|mm | Starting PM2 for omx_stream1 PM2 | Stopping app:omx_stream1 id:1 PM2 | pid=5695 msg=failed to kill - retrying in 100ms PM2 | pid=5695 msg=failed to kill - retrying in 100ms 1|omx_stre | Video codec omx-h264 width 640 height 360 profile 100 fps 30.000000 1|omx_stre | Audio codec pcm_mulaw channels 1 samplerate 8000 bitspersample 8 1|omx_stre | Subtitle count: 0, state: off, index: 1, delay: 0 1|omx_stre | V:PortSettingsChanged: 640x360@30.00 interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0 1|omx_stre | have a nice day ;) PM2 | App [omx_stream1] with id [1] and pid [5695], exited with code [1] via signal [SIGINT] PM2 | pid=5695 msg=process killed PM2 | Starting execution sequence in -fork mode- for app name:omx_stream1 id:1 PM2 | App name:omx_stream1 id:1 online 0|mm | PM2 started for omx_stream1 0|mm | Stopping stream stream1 0|mm | Stopping PM2 process: omx_stream1 0|mm | Starting stream stream1 with args: [ 0|mm | "--avdict", 0|mm | "rtsp_transport:tcp", 0|mm | "--win", 0|mm | "332, 1225, 684, 1467", 0|mm | "--live", 0|mm | "--video_queue", 0|mm | "4", 0|mm | "--fps", 0|mm | "30", 0|mm | "rtsp://user:pass@192.168.xx.xx:88/videoMain" 0|mm | ] PM2 | Stopping app:omx_stream1 id:1 0|mm | PM2: omx_stream1 already running. Stopping old instance... 0|mm | Starting PM2 for omx_stream1 PM2 | Stopping app:omx_stream1 id:1 PM2 | Process with pid 5846 already exists 0|mm | PM2 started for omx_stream1 PM2 | App [omx_stream1] with id [1] and pid [5846], exited with code [0] via signal [SIGINT] PM2 | pid=5846 msg=process killed PM2 | pid=5846 msg=process killed 0|mm | Stopping stream stream1 0|mm | Starting stream stream1 with args: [ 0|mm | "--avdict", 0|mm | "rtsp_transport:tcp", 0|mm | "--win", 0|mm | "332, 1190, 684, 1432", 0|mm | "--live", 0|mm | "--video_queue", 0|mm | "4", 0|mm | "--fps", 0|mm | "30", 0|mm | "rtsp://user:pass@192.168.xx.xx:88/videoMain" 0|mm | ] 0|mm | Stopping PM2 process: omx_stream1 0|mm | Starting PM2 for omx_stream1 PM2 | Starting execution sequence in -fork mode- for app name:omx_stream1 id:1 PM2 | App name:omx_stream1 id:1 online 0|mm | PM2 started for omx_stream1 0|mm | Stopping all OMXPlayer Streams... 0|mm | PM2: Stopping omx_stream1... PM2 | Stopping app:omx_stream1 id:1 PM2 | App [omx_stream1] with id [1] and pid [5956], exited with code [0] via signal [SIGINT] PM2 | pid=5956 msg=process killed 0|mm | Starting stream stream1 with args: [ 0|mm | "--avdict", 0|mm | "rtsp_transport:tcp", 0|mm | "--win", 0|mm | "332, 1190, 684, 1432", 0|mm | "--live", 0|mm | "--video_queue", 0|mm | "4", 0|mm | "--fps", 0|mm | "30", 0|mm | "rtsp://user:pass@192.168.xx.xx:88/videoMain" 0|mm | ] 0|mm | Starting PM2 for omx_stream1 PM2 | Starting execution sequence in -fork mode- for app name:omx_stream1 id:1 PM2 | App name:omx_stream1 id:1 online 0|mm | PM2 started for omx_stream1 0|mm | Stopping all OMXPlayer Streams... 0|mm | PM2: Stopping omx_stream1... PM2 | Stopping app:omx_stream1 id:1 PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | pid=5982 msg=failed to kill - retrying in 100ms PM2 | Process with pid 5982 still alive after 1600ms, sending it SIGKILL now... PM2 | App [omx_stream1] with id [1] and pid [5982], exited with code [0] via signal [SIGKILL] PM2 | pid=5982 msg=process killed
Is there something I can do?
-
maybe use another PIR activation, not as a mirror module.
I use this scripts from @cowboysdude
https://github.com/cowboysdude/Pir-Sensor -
Thanks! Worth a try!
-
Hi binderth,
i have the same problem. Did you find a solution?