Changing filters via the command line
Posted: Mon Jan 08, 2007 12:46 pm
Hello,
I have been using Zoneminder for the past 9 months and think it is a really excellent app. I am using it for home security and I currently have 3 cameras - 1 internal and 2 external. I have setup a filter to automatically email me video clips and generate a text message for any motion that is detected by the camera inside the house during weekday working hours. This is in case my zoneminder PC get stolen.
I sometimes get home early from work or leave late and this sends me a video and text message that I don't need. In this case, I have to change the filter configuration in Zoneminder if I remember, so that the "Automatically email details of all matches:" and "Automatically execute command on all matches: " checkboxes are not selected.
I would like to be able to run a script that makes this change via the command line. Would it be possible to change the zmfilter.pl script to make updates to the filter configuration? I would like to get a remote control like an X10 key phob to arm my house i.e. run a simple script that changes my filter configuration to automatically send emails and text when I close the front door.
Also, I have also noticed that if I have any past events that are found when the filter runs and I have disabled and re-enabled the email and execute command options in the filter, I get an email and text for all the old hits on the filter. Is there any way to set the filter to only send the new hits without deleting all of the old hits before? i.e. can a flag be set in the ZM database that marks if an email or command has already been sent for an event?
One last thing, Can anybody suggest a good key phob that can be set to run simple scripts in Linux? Thanks in advance for feedback.
Matthew
I have been using Zoneminder for the past 9 months and think it is a really excellent app. I am using it for home security and I currently have 3 cameras - 1 internal and 2 external. I have setup a filter to automatically email me video clips and generate a text message for any motion that is detected by the camera inside the house during weekday working hours. This is in case my zoneminder PC get stolen.
I sometimes get home early from work or leave late and this sends me a video and text message that I don't need. In this case, I have to change the filter configuration in Zoneminder if I remember, so that the "Automatically email details of all matches:" and "Automatically execute command on all matches: " checkboxes are not selected.
I would like to be able to run a script that makes this change via the command line. Would it be possible to change the zmfilter.pl script to make updates to the filter configuration? I would like to get a remote control like an X10 key phob to arm my house i.e. run a simple script that changes my filter configuration to automatically send emails and text when I close the front door.
Also, I have also noticed that if I have any past events that are found when the filter runs and I have disabled and re-enabled the email and execute command options in the filter, I get an email and text for all the old hits on the filter. Is there any way to set the filter to only send the new hits without deleting all of the old hits before? i.e. can a flag be set in the ZM database that marks if an email or command has already been sent for an event?
One last thing, Can anybody suggest a good key phob that can be set to run simple scripts in Linux? Thanks in advance for feedback.
Matthew