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.
Schedule function to switch between "Mocord" and &
-
- Posts: 2
- Joined: Tue Jan 08, 2008 1:12 am
[Moved to correct Topic]
There is already a facility in ZM to do this called "Run States" that can be set in cron.
http://www.zoneminder.com/forums/viewtopic.php?t=10967
There is already a facility in ZM to do this called "Run States" that can be set in cron.
http://www.zoneminder.com/forums/viewtopic.php?t=10967
-
- Posts: 2
- Joined: Tue Jan 08, 2008 1:12 am
Now I feel dumb, it was documented, however.....
Thank you.
It works, however the Misc settings are retained regardless of the "run state". If I do a then change the "Event Prefix" to "Cars-All_Night", save the changes to the "run state" Nighttime, then do a , the events are all saved as "Cars-All_Night", regardless of "run state".
Without digging through the code, it seems the "Misc" tab values are stored somewhere unaffected by the "run state".
My original posting presented a problem, retaining all captured images during the night only. As alot of events are retained during the "Mocord" function even though there are zero triggers, I have a filter that removes these types. It would be nice to skip over the nighttime captures, but assigning the nighttime captures a different prefix is the only method I could think of to do this. Otherwise, it's useless as the nighttime events will be deleted during that filter (which runs every minute...way too fast for me to monitor).
It works, however the Misc settings are retained regardless of the "run state". If I do a
Code: Select all
zmpkg.pl Nighttime
Code: Select all
zmpkg.pl Daytime
Without digging through the code, it seems the "Misc" tab values are stored somewhere unaffected by the "run state".
My original posting presented a problem, retaining all captured images during the night only. As alot of events are retained during the "Mocord" function even though there are zero triggers, I have a filter that removes these types. It would be nice to skip over the nighttime captures, but assigning the nighttime captures a different prefix is the only method I could think of to do this. Otherwise, it's useless as the nighttime events will be deleted during that filter (which runs every minute...way too fast for me to monitor).
This is all runstates does is change the function of the monitor. I do recall that some one had a post to give the ability to do a bit more some time ago so might be worth searching for.AngelerCore wrote: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?
- BrownBottle
- Posts: 18
- Joined: Mon Apr 16, 2007 8:02 pm
- Location: Florida, USA
Try creating a duplicate monitor and save states with either one or the other on record or morecord. Make sure that the copy of the one recording is in monitor. You can then set unique zones, prefixes, and many other parameters to accomodate.
Larry
Work is a great thing to see -- in your rearview mirror
Work is a great thing to see -- in your rearview mirror
