config.ini 1.9 KB

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