Page 1 of 1

Change settings with personal scripts by modifying database

Posted: Sun Sep 06, 2015 1:54 pm
by Kinoha
Hello,

I need to change the function of monitor and enable/disable zones.

Looking into the database I found the following tables:
Monitors with the Function field
Zones with the Type field

I wonder if I can change these fields (with command: mysql -zmuser -pzmpass -e "USE zm;UPDATE Zones SET Type='Active' WHERE Name='XXXX';" e.g.) or if there is a better solution?

Thanks

Re: Change settings with personal scripts by modifying datab

Posted: Tue Sep 08, 2015 2:12 pm
by knight-of-ni
Use run states to make zoneminder do different things at different times or events:
http://www.zoneminder.com/wiki/index.ph ... or_week.3F

The example uses cron to change the state, but you don't have to.
You can change the state from the command line or in a script.