-
Notifications
You must be signed in to change notification settings - Fork 139
/
config.ini.dist
90 lines (72 loc) · 3.42 KB
/
config.ini.dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Configuration file for Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon
# Source: https://github.com/ThomDietrich/miflora-mqtt-daemon
#
# Uncomment and adapt all settings as needed.
# Some settings can be configured by environment variables.
# If an env variable is set, it takes precedence over settings in this file
[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 in a proprietary json format (Default)
# mqtt-homie - Publish to an MQTT broker following the Homie MQTT convention
# (https://github.com/marvinroger/homie)
# mqtt-smarthome - Publish to an MQTT broker following the mqtt-smarthome proposal
# (https://github.com/mqtt-smarthome/mqtt-smarthome)
# homeassistant-mqtt - Publish to an MQTT broker following the HomeAssistant discovery format
# (https://www.home-assistant.io/docs/mqtt/discovery/)
# gladys-mqtt - Publish to an MQTT broker following the Gladys MQTT proposal
# https://gladysassistant.com/docs/integrations/mqtt/
# thingsboard-json - Publish to the ThingsBoard MQTT broker
# (https://thingsboard.io)
# wirenboard-mqtt - Publish to the Wiren Board MQTT broker
# (https://wirenboard.com)
# json - Print to stdout as json encoded strings
#
#reporting_method = mqtt-json
# The bluetooth adapter that should be used to connect to Mi Flora devices (Default: hci0)
#adapter = hci0
[Daemon]
# Enable or Disable an endless execution loop (Default: true)
#enabled = true
# The period between two measurements in seconds (Default: 300)
#period = 300
[MQTT]
# The hostname or IP address of the MQTT broker to connect to (Default: localhost)
# Also read from the MQTT_HOSTNAME environment variable
#hostname = localhost
# The TCP port the MQTT broker is listening on (Default: 1883)
# Also read from the MQTT_PORT environment variable
#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 depends on the configured reporting_method
#base_topic = miflora # Default for: mqtt-json, mqtt-smarthome, homeassistant-mqtt
#base_topic = homie # Default for: mqtt-homie
#base_topic = gladys/master/device # Default for: gladys-mqtt
#base_topic = v1/devices/me/telemetry # Default for: thingsboard-json
#base_topic = # Default for: wirenboard-mqtt
# The MQTT broker authentification credentials (Default: no authentication)
# Will also read from MQTT_USERNAME and MQTT_PASSWORD environment variables
#username = user
#password = pwd123
# Enable TLS/SSL on the connection
#tls = false
# Path to CA Certificate file to verify host
#tls_ca_cert =
# Path to TLS client auth key file
#tls_keyfile =
# Path to TLS client auth certificate file
#tls_certfile =
[Sensors]
# Add your Mi Flora sensors here. Each sensor consists of a name and a Ethernet MAC address.
# Additional location information can be added to the name, delimited by an '@'.
# Scan for sensors from the command line with:
# $ sudo hcitool lescan
#
# Examples:
#
#Schefflera@Living = C4:7C:8D:11:22:33
#JapaneseBonsai = C4:7C:8D:44:55:66
#Petunia@Balcony = C4:7C:8D:77:88:99