Skip to content

Instantly share code, notes, and snippets.

@bdwilson
Created January 23, 2020 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdwilson/95f985de937885471b55d6c5af47b5da to your computer and use it in GitHub Desktop.
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/
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