logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

zmcamtool.pl - ZoneMinder tool to import camera controls and presets

Description

       This script provides a way to import new ptz camera controls & camera presets into existing zoneminder
       systems. This script also provides a way to export ptz camera controls & camera presets from an existing
       zoneminder system into a sql file, which can then be easily imported to another zoneminder system.

Name

       zmcamtool.pl - ZoneMinder tool to import camera controls and presets

Options

        --export            - Export all camera controls and presets to STDOUT.
                              Optionally specify a control or preset name.
        --import [file.sql] - Import new camera controls and presets found in
                              zm_create.sql into the ZoneMinder dB.
                              Optionally specify an alternate sql file to read from.
        --overwrite         - Overwrite any existing controls or presets.
                              with the same name as the new controls or presets.
        --topreset id       - Copy a monitor to a Camera Preset given the monitor id.
        --noregex           - Do not try to find and replace fields such as usernames,
                              passwords, IP addresses, etc with generic placeholders
                              when converting a monitor to a preset.
        --help              - Print usage information.
        --user=<dbuser>     - Alternate dB user with privileges to alter dB.
        --pass=<dbpass>     - Password of alternate dB user with privileges to alter dB.
        --version           - Print version.

perl v5.40.1                                       2025-02-21                                       ZMCAMTOOL(1)

Synopsis

        zmcamtool.pl [--user=<dbuser> --pass=<dbpass>]
                     [--import [file.sql] [--overwrite]]
                     [--export [name]]
                     [--topreset id [--noregex]]

See Also