config.ini.dist 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. # json - Print to stdout as json encoded string
  11. #reporting_method = mqtt-json
  12. # The bluetooth adapter that should be used to connect to Mi Flora devices (Default: hci0)
  13. #adapter = hci0
  14. [Daemon]
  15. # Enable or Disable an endless execution loop (Default: true)
  16. #enabled = true
  17. # The period between two measurements in seconds (Default: 300)
  18. #period = 300
  19. [MQTT]
  20. # The hostname or IP address of the MQTT broker to connect to (Default: localhost)
  21. #hostname = localhost
  22. # The TCP port the MQTT broker is listening on. SSL/TLS currently not implemented (Default: 1883)
  23. #port = 1883
  24. # Maximum period in seconds between ping messages to the broker. (Default: 60)
  25. #keepalive = 60
  26. # The MQTT base topic to publish all Mi Flora sensor data topics under.
  27. # Default depends on the configured reporting_mode (mqtt-json: miflora, mqtt-homie: homie)
  28. #base_topic = miflora
  29. #base_topic = homie
  30. # Homie specific: The device ID for this daemon instance (Default: miflora-mqtt-daemon)
  31. #homie_device_id = miflora-mqtt-daemon
  32. # The MQTT broker authentification credentials (Default: no authentication)
  33. #username = user
  34. #password = pwd123
  35. [Sensors]
  36. # Add your Mi Flora sensors here. Each sensor consists of a name and a Ethernet MAC address.
  37. # Additional location information can be added to the name, delimited by an '@'.
  38. # Scan for sensors from the command line with:
  39. # $ sudo hcitool lescan
  40. #
  41. # Examples:
  42. #
  43. #Schefflera@Living = C4:7C:8D:11:22:33
  44. #JapaneseBonsai = C4:7C:8D:44:55:66
  45. #Petunia@Balcony = C4:7C:8D:77:88:99