Schedule function to switch between "Mocord" and &
Posted: Tue Jan 08, 2008 1:55 am
Hello,
One of my cameras is pointing towards the cars roughly 30 feet away in an area starved for good light, however the area roughly 60 feet behind and to the side does. This steals the ability my cheap cameras have for night vision.
Is there a way to set the monitor function to change at a set time from Mocord to Record so that all activity at night is recorded, then back to Mocord at another time...keeping only the alarmed images during the daytime?
From what I've dug up in the code, zmpkg.pl reads the monitor function from the ZM_OPT_CONTROL field for the relevant monitor from the Monitors table of the zm database. My SQL es nicht gut (not so good), but my perl is coming along. I think building an alternate table, modifying zmpkg.pl to test for time of day determining which SQL table to use for the monitors, then set a cronjob to restart the zm server at dawn and dusk is a bit extremetive of me avoiding SQL.
Does SQL have something of a cron that I can use to simply modify the value between Mocord and Record? Or better yet, and going back to my original question, does Zoneminder have a feature to change monitor functions based on time of day?
I'm looking for other ideas, I guess. Thanks!
Almost forgot, I have Zoneminder 1.23 running on Slackware 12 using the 2.6.21.5-smp kernel. It's taken some time, don't have streaming ironed out, but I don't really have a need for it either. I'm using an AMD based computer, not really old, but it is to me, with the bttv driver...yes card=77. Zoneminder has been running good for 3 days and counting.
One of my cameras is pointing towards the cars roughly 30 feet away in an area starved for good light, however the area roughly 60 feet behind and to the side does. This steals the ability my cheap cameras have for night vision.
Is there a way to set the monitor function to change at a set time from Mocord to Record so that all activity at night is recorded, then back to Mocord at another time...keeping only the alarmed images during the daytime?
From what I've dug up in the code, zmpkg.pl reads the monitor function from the ZM_OPT_CONTROL field for the relevant monitor from the Monitors table of the zm database. My SQL es nicht gut (not so good), but my perl is coming along. I think building an alternate table, modifying zmpkg.pl to test for time of day determining which SQL table to use for the monitors, then set a cronjob to restart the zm server at dawn and dusk is a bit extremetive of me avoiding SQL.
Does SQL have something of a cron that I can use to simply modify the value between Mocord and Record? Or better yet, and going back to my original question, does Zoneminder have a feature to change monitor functions based on time of day?
I'm looking for other ideas, I guess. Thanks!
Almost forgot, I have Zoneminder 1.23 running on Slackware 12 using the 2.6.21.5-smp kernel. It's taken some time, don't have streaming ironed out, but I don't really have a need for it either. I'm using an AMD based computer, not really old, but it is to me, with the bttv driver...yes card=77. Zoneminder has been running good for 3 days and counting.