mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-23 01:39:27 +02:00
update mosquitto
This commit is contained in:
parent
3aa42b62f5
commit
222ceac712
@ -29,7 +29,7 @@ $ docker-compose exec mosquitto sh
|
|||||||
>>> cat pwfile
|
>>> cat pwfile
|
||||||
username:$6$IuF7JUzS1k/QoF3y$YpiClom7/==
|
username:$6$IuF7JUzS1k/QoF3y$YpiClom7/==
|
||||||
>>> exit
|
>>> exit
|
||||||
$ docker-compose restart
|
$ docker-compose kill -s SIGHUP
|
||||||
$ tails -f data/log/mosquitto.log
|
$ tails -f data/log/mosquitto.log
|
||||||
2022-12-08T06:59:00: mosquitto version 1.4.8 (build date 2016-05-16 14:17:19+0000) starting
|
2022-12-08T06:59:00: mosquitto version 1.4.8 (build date 2016-05-16 14:17:19+0000) starting
|
||||||
2022-12-08T06:59:01: Config loaded from /etc/mosquitto/mosquitto.conf.
|
2022-12-08T06:59:01: Config loaded from /etc/mosquitto/mosquitto.conf.
|
||||||
|
25
mosquitto/telegraf-mqtt.conf
Normal file
25
mosquitto/telegraf-mqtt.conf
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
#
|
||||||
|
# See: https://www.influxdata.com/integration/mqtt-telegraf-consumer/
|
||||||
|
#
|
||||||
|
|
||||||
|
[[inputs.mqtt_consumer]]
|
||||||
|
servers = ["ssl://mqtt.easypi.duckdns.org:8883"]
|
||||||
|
topics = [
|
||||||
|
"zigbee2mqtt/+",
|
||||||
|
]
|
||||||
|
data_format = "json"
|
||||||
|
username = "telegraf"
|
||||||
|
password = "telegraf"
|
||||||
|
|
||||||
|
[[processors.enum]]
|
||||||
|
order = 2
|
||||||
|
[[processors.enum.mapping]]
|
||||||
|
field = "contact"
|
||||||
|
[processors.enum.mapping.value_mappings]
|
||||||
|
false = 0
|
||||||
|
true = 1
|
||||||
|
[[processors.enum.mapping]]
|
||||||
|
field = "occupancy"
|
||||||
|
[processors.enum.mapping.value_mappings]
|
||||||
|
false = 0
|
||||||
|
true = 1
|
Loading…
Reference in New Issue
Block a user