Created
January 23, 2020 00:49
-
-
Save bdwilson/95f985de937885471b55d6c5af47b5da to your computer and use it in GitHub Desktop.
monit configuration file to only stream Wyze cam v2 if the camera is powered on. installed in /etc/monit/conf.d/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check host wyze-camera address 192.168.1.42 | |
if failed icmp type echo | |
count 3 with timeout 5 seconds | |
2 times within 3 cycles | |
then exec "/etc/monit/stop_ffmpeg.sh" | |
else if succeeded for 2 cycles then exec "/etc/monit/start_ffmpeg.sh" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment