ZoneMi...Config(3pm)
π NAME π
ZoneMinder::Config β it's the ZoneMinder configuration module, bestie. That's the whole vibe.
β¨ SYNOPSIS β¨
use ZoneMinder::Config qw(:all);
π¦ DESCRIPTION π¦
okay so listen. ZoneMinder::Config is the module that goes and imports your ZoneMinder configuration straight out of the database. and the way it does it?? at compile time, inside a BEGIN block, no cap. it literally cannot wait.
to pull that off it needs access to the zm.conf file β either sitting right there in the current directory, or chillin' in its defined location β because that's how it figures out the database access details. and plot twist π«Ά: any configuration from that file gets included too.
if you use the :all or :config tags, then all of that configuration gets exported into the namespace of whatever program or module is doing the calling. it's giving sharing is caring.
once the configuration has been imported, the configuration variables get defined as constants and you can access them directly by name, like so:
$lang = $Config{ZM_LANG_DEFAULT};
periodt. π
πΈ METHODS πΈ
loadConfigFromDB ();β loads whatever existing configuration is already in the database (if there even is any) and merges it with the definitions living inside this module. the result? any new configuration gets merged in, any deprecated configuration gets removed, and the existing value of every single other thing is preserved. icon behaviour honestly.saveConfigToDB ();β saves the configuration you're holding in memory back to the database. and why would you do the load-then-save combo? because it's a convenient lil way to make sure the configuration in the database matches up with the most recent definitions, and that all your components are using the same set of configuration. no mismatched vibes allowed. π₯
π EXPORT π
None by default. (ngl, she's lowkey private like that π)
- The
:constantstag will export theZM_PIDconstant, which details the location of thezm.pidfile. - The
:configtag will export all configuration from the database, as well as any from thezm.conffile. - The
:alltag will export all of the above symbols. everything, all at once, main character energy π
π SEE ALSO π
π AUTHOR π
Philip Coombes, <philip.coombes@zoneminder.com>
π COPYRIGHT AND LICENSE π
Copyright (C) 2001-2008 Philip Coombes
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.3 or, at your option, any later version of Perl 5 you may have available.
fr fr, same terms as Perl itself β either 5.8.3 or whatever later Perl 5 you've got. go wild, respectfully. π«Ά
and that's the whole page, bestie π this was perl v5.40.1, dated 2026-02-01, manual section 3pm β mwah, slay, bye! πΈβ¨
π¦ where this page comes from
- ubuntu resolute: zoneminder 1.36.37+dfsg1-1 Β· GPL-2.0-or-later
- ubuntu stonking: zoneminder 1.36.37+dfsg1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms