Here a simple bash script with several functions to totally automate Zoneminder.
With this script you can:
- automatically switch the Day and Night states based on hour
- automatically switch to the Armed state if a bluetooth device isn't more detected
- automatically move the ptz cameras in two different preset when changing state
- automatically restart Zoneminder if it goes in the Inactive state
I'm opened to improve it.