How to schedule audio recording?

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
User avatar
Bluemax
Posts: 117
Joined: Wed Jun 12, 2019 5:15 pm

How to schedule audio recording?

Post by Bluemax » Fri Apr 02, 2021 8:46 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests