config.ini.dist 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Configuration file for Xiaomi Mi Flora Plant Sensor MQTT Client/Daemon
  2. # Source: https://github.com/ThomDietrich/miflora-mqtt-daemon
  3. #
  4. # Uncomment and adapt all settings as needed.
  5. [General]
  6. # The operation mode of the program. Determines wether retrieved sensor data is published via MQTT or stdout/file.
  7. # Currently supported:
  8. # mqtt-json - Publish to an mqtt broker, json encoded (Default)
  9. # mqtt-homie - Publish to an mqtt broker following the Homie MQTT convention (https://github.com/marvinroger/homie)
  10. # mqtt-smarthome - Publish to an mqtt broker following the mqtt-smarthome proposal
  11. # (https://github.com/mqtt-smarthome/mqtt-smarthome)
  12. # json - Print to stdout as json encoded string
  13. #reporting_method = mqtt-json
  14. # The bluetooth adapter that should be used to connect to Mi Flora devices (Default: hci0)
  15. #adapter = hci0
  16. [Daemon]
  17. # Enable or Disable an endless execution loop (Default: true)
  18. #enabled = true
  19. # The period between two measurements in seconds (Default: 300)
  20. #period = 300
  21. [MQTT]
  22. # The hostname or IP address of the MQTT broker to connect to (Default: localhost)
  23. #hostname = localhost
  24. # The TCP port the MQTT broker is listening on. SSL/TLS currently not implemented (Default: 1883)
  25. #port = 1883
  26. # Maximum period in seconds between ping messages to the broker. (Default: 60)
  27. #keepalive = 60
  28. # The MQTT base topic to publish all Mi Flora sensor data topics under.
  29. # Default depends on the configured reporting_mode (mqtt-json, mqtt-smarthome: miflora, mqtt-homie: homie)
  30. #base_topic = miflora
  31. #base_topic = homie
  32. # Homie specific: The device ID for this daemon instance (Default: miflora-mqtt-daemon)
  33. #homie_device_id = miflora-mqtt-daemon
  34. # The MQTT broker authentification credentials (Default: no authentication)
  35. #username = user
  36. #password = pwd123
  37. [Sensors]
  38. # Add your Mi Flora sensors here. Each sensor consists of a name and a Ethernet MAC address.
  39. # Additional location information can be added to the name, delimited by an '@'.
  40. # Scan for sensors from the command line with:
  41. # $ sudo hcitool lescan
  42. #
  43. # Examples:
  44. #
  45. #Schefflera@Living = C4:7C:8D:11:22:33
  46. #JapaneseBonsai = C4:7C:8D:44:55:66
  47. #Petunia@Balcony = C4:7C:8D:77:88:99