Just wanted to cross-post this in case people are looking in this thread for a way to monitor and restart streams that have stopped:
Read the statement by Michael Teeuw here.
Posts
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
-
Short script to monitor and restart your MMM-RTSPStreams
Here is a super short Python script that checks the status of your streams using pm2, then if it detects a stream is down, it restarts the streams. Not elegant, but it works.
import os if "stopped" in os.popen("pm2 status | grep \"stopped\"").read(): os.popen("pm2 start 1 2 3 4")
I saved it as streamMonitor.py in my home directory. I run it once per minute using crontab. This is the entry I put in:
* * * * * python3 ~/streamMonitor.py
Here is the script in action:
And here is the crontab job:
s
-
RE: MMM-HomeKit | Control your MagicMirror with Apple HomeKit
Okay, looks like something with my npm was broken. It was working before, so I think installing this module or Homebridge did it. Attempting to fix.
-
RE: MMM-HomeKit | Control your MagicMirror with Apple HomeKit
Excellent module!
Got everything working fairly easily. I am attempting to add my own switches, but the issues I am having is that the “on_cmd” and “off_cmd” do not use npm correctly. Any ideas? This is the error it’s throwing. Didn’t have luck Googling.
[3/10/2019, 1:42:17 PM] [Raspberry Pi] npm ERR! path /home/pi/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/home/pi/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
-
RE: Push Notifications and incompatibility with RTSP window.
did you ever find a solution?
-
RE: [MMM-RTSPStream] - Video Streaming from Live Feeds & Security Cameras
Does anyone know if it’s possible to use moduleOffset from within a single stream (stream3)? I couldn’t get it to work.
I have three streams going. The first two are side-by-side, but the third is centered under them. I would like the third to be left-justified. Any ideas?