2017-07-25 15:47:17 +02:00
|
|
|
# Configuration file for Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon
|
|
|
|
# Source: https://github.com/janwh/miflora-mqtt-daemon
|
|
|
|
#
|
|
|
|
# Uncomment and adapt all settings as needed.
|
2017-02-09 21:15:25 +01:00
|
|
|
|
2017-07-25 17:17:20 +02:00
|
|
|
[General]
|
|
|
|
|
|
|
|
# The operation mode of the program. Determines wether retrieved sensor data is published via MQTT or stdout/file.
|
|
|
|
# Currently supported:
|
|
|
|
# mqtt-json - Publish to an mqtt broker, json encoded (default)
|
|
|
|
# json - Print to stdout as json encoded string
|
|
|
|
#reporting_method = mqtt-json
|
|
|
|
|
2017-07-24 10:41:39 +02:00
|
|
|
[Daemon]
|
2017-07-25 15:47:17 +02:00
|
|
|
|
|
|
|
# Enable or Disable an endless execution loop (Default: true)
|
2017-07-24 10:41:39 +02:00
|
|
|
#enabled = false
|
2017-07-25 15:47:17 +02:00
|
|
|
|
|
|
|
# The period between two measurements in seconds (Default: 300)
|
|
|
|
#period = 300
|
2017-07-24 10:41:39 +02:00
|
|
|
|
|
|
|
[MQTT]
|
2017-07-25 15:47:17 +02:00
|
|
|
|
|
|
|
# The hostname or IP address of the MQTT broker to connect to (Default: localhost)
|
|
|
|
#hostname = localhost
|
|
|
|
|
|
|
|
# The TCP port the MQTT broker is listening on. SSL/TLS currently not implemented (Default: 1883)
|
|
|
|
#port = 1883
|
|
|
|
|
|
|
|
# Maximum period in seconds between ping messages to the broker. (Default: 60)
|
|
|
|
#keepalive = 60
|
|
|
|
|
|
|
|
# The MQTT base topic to publish all Mi Flora sensor data topics under (Default: miflora)
|
|
|
|
#topic_prefix = miflora
|
|
|
|
|
|
|
|
# The MQTT broker authentification credentials (Default: no authentication)
|
2017-07-24 10:41:39 +02:00
|
|
|
#username = user
|
|
|
|
#password = pwd123
|
2017-02-09 21:15:25 +01:00
|
|
|
|
2017-07-24 10:41:39 +02:00
|
|
|
[MiFlora]
|
2017-07-25 15:47:17 +02:00
|
|
|
|
|
|
|
# DEPRECATED
|
|
|
|
#cache_timeout = 600
|
2017-02-09 21:15:25 +01:00
|
|
|
|
2017-07-24 10:41:39 +02:00
|
|
|
[Sensors]
|
|
|
|
|
2017-07-25 15:47:17 +02:00
|
|
|
# Add your Mi Flora sensors here. Each sensor consists of a name and a Ethernet MAC address.
|
|
|
|
# One sensor per line. Scan for sensors from the command line with:
|
|
|
|
# $ sudo hcitool lescan
|
|
|
|
#
|
|
|
|
# Examples:
|
|
|
|
#
|
|
|
|
#Schefflera = C4:7C:8D:11:22:33
|
|
|
|
#JapaneseBonsai = C4:7C:8D:44:55:66
|
2017-07-25 17:17:20 +02:00
|
|
|
|