From d38efc3c5f3088f609e6b147e06db39904610f9e Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Thu, 23 Dec 2021 11:07:26 -0500 Subject: [PATCH] Add MQTT settings to config --- .../lib/ZoneMinder/ConfigData.pm.in | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in index 48d494614..b12f7ee5b 100644 --- a/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in +++ b/scripts/ZoneMinder/lib/ZoneMinder/ConfigData.pm.in @@ -3809,6 +3809,46 @@ our @options = ( type => $types{string}, category => 'config', }, + { + name => 'MQTT_HOSTNAME', + default => 'mqtt.zoneminder.com', + description => 'MQTT broker hostname', + help => 'MQTT uses a central server to send/receive messages. This is the hostname or ip address of the server you wish to use.', + type => $types{hostname}, + category => 'MQTT', + }, + { + name => 'MQTT_PORT', + default => '1883', + description => 'MQTT broker port', + help => 'MQTT uses a central server to send/receive messages. This is the port to connect to.', + type => $types{integer}, + category => 'MQTT', + }, + { + name => 'MQTT_USERNAME', + default => '', + description => 'MQTT broker username', + help => 'MQTT uses a central server to send/receive messages. This is the username to authenticate with.', + type => $types{string}, + category => 'MQTT', + }, + { + name => 'MQTT_PASSWORD', + default => '', + description => 'MQTT broker password', + help => 'MQTT uses a central server to send/receive messages. This is the password to authenticate with.', + type => $types{password}, + category => 'MQTT', + }, + { + name => 'MQTT_TOPIC_PREFIX', + default => 'ZoneMinder', + description => 'MQTT topic prefix', + help => 'MQTT each message generated by ZoneMinder will start with this. For example /ZoneMinder/available.', + type => $types{string}, + category => 'MQTT', + }, ); our %options_hash = map { ( $_->{name}, $_ ) } @options;