Exportable Camera Configs aka zmcamtool.pl

Forum for questions and support relating to the 1.28.x releases only.
Post Reply
West Slope
Posts: 53
Joined: Wed Jul 15, 2015 12:42 am

Exportable Camera Configs aka zmcamtool.pl

Post by West Slope » Fri Nov 27, 2015 6:15 am

Was the zmcamtool.pl ever finished and if, so is it downloadable and where to get the file, or is it already included in ZM? How would one run it if so?
Thanks

rockedge
Posts: 1106
Joined: Fri Apr 04, 2014 1:46 pm
Location: Connecticut,USA
Contact:

Re: Exportable Camera Configs aka zmcamtool.pl

Post by rockedge » Fri Nov 27, 2015 11:09 pm

zmcamtool.pl is in the directory /usr/local/bin
To run, open a terminal and type:

Code: Select all

#zmcamtool.pl --help

User avatar
asker
Posts: 1082
Joined: Sun Mar 01, 2015 12:12 pm

Re: Exportable Camera Configs aka zmcamtool.pl

Post by asker » Fri Nov 27, 2015 11:56 pm

Do note that zmcamtool is not a tool to export your monitor configs. Its a tool to export/import monitor presets and controls DB.

If you tried this tool and thought "--export name" means it will export to the name specified, it won't. The 'name' is actually a filter (used with a --where condition of mysqldump).

In other words, to see what it does, just execute it with --export (to export) and it will print to stdout. You can redirect stdout to a file
--
My collection of ZoneMinder learnings:
https://wiki.zoneminder.com/Various_ZM_thoughts

User avatar
knight-of-ni
Posts: 2229
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Exportable Camera Configs aka zmcamtool.pl

Post by knight-of-ni » Sun Nov 29, 2015 9:48 pm

Exporting the actual config of a camera probably isn't what you want because info unique to that camera, most notably the ip address, will be part of the config.

Instead, first convert the monitor config into a camera preset, then export the preset to a file. Both operations can be done using zmcamtool.pl. See the help text for details.

Like any binary in a Linux environment, to find where it is use the type command:

Code: Select all

type zmcamtool.pl
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

patpend
Posts: 43
Joined: Thu Mar 13, 2014 12:23 pm

Re: Exportable Camera Configs aka zmcamtool.pl

Post by patpend » Mon Dec 07, 2015 2:11 pm

What if you do want to save all your specific camera configurations, just dump & reload the config table?

User avatar
knight-of-ni
Posts: 2229
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Exportable Camera Configs aka zmcamtool.pl

Post by knight-of-ni » Mon Dec 07, 2015 2:52 pm

Zmcamtool.pl is not a backup tool. Zmcamtool is a camera config migration tool. It is intended to make life easier for those who need to program (many) similar cameras on the same system, or across multiple servers, or who want to share presets with others.

If a backup is what you want, then just use the normal mysql tools to backup the database and/or table of your choice. You might as well just backup the entire database.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests