config.ini 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. # json - Print to stdout as json encoded string
  10. #reporting_method = mqtt-json
  11. [Daemon]
  12. # Enable or Disable an endless execution loop (Default: true)
  13. #enabled = false
  14. # The period between two measurements in seconds (Default: 300)
  15. #period = 300
  16. [MQTT]
  17. # The hostname or IP address of the MQTT broker to connect to (Default: localhost)
  18. #hostname = localhost
  19. # The TCP port the MQTT broker is listening on. SSL/TLS currently not implemented (Default: 1883)
  20. #port = 1883
  21. # Maximum period in seconds between ping messages to the broker. (Default: 60)
  22. #keepalive = 60
  23. # The MQTT base topic to publish all Mi Flora sensor data topics under (Default: miflora)
  24. #topic_prefix = miflora
  25. # The MQTT broker authentification credentials (Default: no authentication)
  26. #username = user
  27. #password = pwd123
  28. [MiFlora]
  29. # DEPRECATED
  30. #cache_timeout = 600
  31. [Sensors]
  32. # Add your Mi Flora sensors here. Each sensor consists of a name and a Ethernet MAC address.
  33. # One sensor per line. Scan for sensors from the command line with:
  34. # $ sudo hcitool lescan
  35. #
  36. # Examples:
  37. #
  38. #Schefflera = C4:7C:8D:11:22:33
  39. #JapaneseBonsai = C4:7C:8D:44:55:66