Remote site, generator status is not monitored at all, so the only way to check to see if the weekly test is happening is to do so visually. The genset is far enough away from the wide-angle camera that motion detection isn't possible. So, I've created a new state in ZM where the camera that looks at the generator is in continuous record mode. I've switched back and forth using the GUI and it functions as desired.
I've created the following in crontab to switch states on Tuesdays to capture the 5-minute test scheduled for 14:45, with a little bit of a buffer on either side.
Code: Select all
43 14 * 1-4,12 2 root usr/bin/zmpkg.pl GensetTest
52 14 * 1-4,12 2 root usr/bin/zmpkg.pl Winter
'Winter' is the normal operating state this time of year. The time shifts by an hour when daylight savings time starts (as the generator clock doesn't adjust itself), and once the snow disappears I move ZM to 'Summer' state. I'll tweak all that once I get things working now, as I've tested this and it does not work. ZM simply coasts through the specified time period and nothing happen. If it was functioning there would be a few continuously recorded events from the one camera.
Any suggestions?