Is there a way to mass-adjust camera/monitor settings?

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
warlord
Posts: 12
Joined: Mon Mar 02, 2020 7:01 pm

Is there a way to mass-adjust camera/monitor settings?

Post by warlord »

Hi,
I've got 31 cameras currently configured on my ZM system, 17 1080p Besder PoE cameras, 13 Reolink 420-5MP cameras, and one Doorbird (720p).
As I work to get everything adjusted and set up, I'm finding I need to make changes to things like Buffers and other settings for all my cameras. It is very tedious to have to do it one camera at a time. It means I have to scroll down to the camera I want to modify, select it, scroll back up to the top of the page, click "edit", then modify the camera, then wait for the main page to refresh before I can select the next one (or my selection might get lost).
Is there some way I can make mass changes to configurations? E.g., it would be nice if I could select all my Besder cameras and change all their buffer settings in one go.
Is there some magic to do this?
I haven't seen anything in the docs nor google, so I'm guessing not. I also figure if I go into the database and make an UPDATE, those changes probably wont get taken until I restart ZM (assuming going being ZM's back is even allowed).
Am I missing something?
Thanks!
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Is there a way to mass-adjust camera/monitor settings?

Post by iconnor »

You will have to learn to use mysql to do that.

mysql -u zmuser -p zm
UPDATE Monitors SET ImageBufferCount=100 WHERE SOMETHING etc.
rockedge
Posts: 1173
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA

Re: Is there a way to mass-adjust camera/monitor settings?

Post by rockedge »

there might be a way with a script that accesses the monitor/camera settings through the API

https://zoneminder.readthedocs.io/en/1.34.5/api.html
warlord
Posts: 12
Joined: Mon Mar 02, 2020 7:01 pm

Re: Is there a way to mass-adjust camera/monitor settings?

Post by warlord »

iconnor wrote: Fri Mar 06, 2020 12:00 am You will have to learn to use mysql to do that.

mysql -u zmuser -p zm
UPDATE Monitors SET ImageBufferCount=100 WHERE SOMETHING etc.
I am fine using MySQL -- but would the running zmc/zma apps adjust immediately or do I have to restart them manually if I adjust the database?
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Is there a way to mass-adjust camera/monitor settings?

Post by iconnor »

You have to restart them
warlord
Posts: 12
Joined: Mon Mar 02, 2020 7:01 pm

Re: Is there a way to mass-adjust camera/monitor settings?

Post by warlord »

iconnor wrote: Fri Mar 06, 2020 6:09 pm You have to restart them
Thanks. That's what I thought.

Right now I'm hitting an issue where the 32GB and 4 cores + hyperthreading I have in my system might not be enough... :(
Post Reply