Add MQTT settings to config
This commit is contained in:
parent
0f581e97bd
commit
d38efc3c5f
|
@ -3809,6 +3809,46 @@ our @options = (
|
||||||
type => $types{string},
|
type => $types{string},
|
||||||
category => 'config',
|
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;
|
our %options_hash = map { ( $_->{name}, $_ ) } @options;
|
||||||
|
|
Loading…
Reference in New Issue