Add MQTT settings to config

This commit is contained in:
Isaac Connor 2021-12-23 11:07:26 -05:00
parent 0f581e97bd
commit d38efc3c5f
1 changed files with 40 additions and 0 deletions

View File

@ -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;