Page 1 of 1

How to schedule audio recording?

Posted: Fri Apr 02, 2021 8:46 pm
by Bluemax
Hallo,
i want to record 24h modect but only 12h with audio. Could this be done with 'Profiles'?
If not, would it be possible to set the option manually in the database by shell with a cronjob? What's needed to get such changes into effect? A restart of the whole Zoneminder service or is there any less interruptable approach? I don't know.. 'zmc -reload' or something.

Edit:
Is this a good approach? The restart logic is taken from zmwatch.pl.

Code: Select all

mysql -Bse "UPDATE zm.Monitors SET RecordAudio = '1' WHERE Id = '2';"
zmdc.pl stop zma -m 2; zmdc.pl restart zmc -m 2; zmdc.pl start zma -m 2