You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.4 KiB

  1. ## Example bigclown-mqtt2influxdb configuration
  2. # MQTT configuration
  3. mqtt:
  4. #host: 127.0.0.1
  5. #port: 1883
  6. # InfluxDB configuration
  7. influxdb:
  8. #host: 127.0.0.1
  9. #port: 8086
  10. #database: node
  11. # This is default configuration used to mirror all values produced by default
  12. # BigClown modules firmware. You might want to add your topics or drop those for
  13. # modules you don't own.
  14. points:
  15. - measurement: temperature
  16. topic: node/+/thermometer/+/temperature
  17. fields:
  18. value: $.payload
  19. tags:
  20. id: $.topic[1]
  21. channel: $.topic[3]
  22. - measurement: relative-humidity
  23. topic: node/+/hygrometer/0:4/relative-humidity
  24. fields:
  25. value: $.payload
  26. tags:
  27. id: $.topic[1]
  28. - measurement: illuminance
  29. topic: node/+/lux-meter/0:0/illuminance
  30. fields:
  31. value: $.payload
  32. tags:
  33. id: $.topic[1]
  34. - measurement: pressure
  35. topic: node/+/barometer/0:0/pressure
  36. fields:
  37. value: $.payload
  38. tags:
  39. id: $.topic[1]
  40. - measurement: co2
  41. topic: node/+/co2-meter/-/concentration
  42. fields:
  43. value: $.payload
  44. tags:
  45. id: $.topic[1]
  46. - measurement: voltage
  47. topic: node/+/battery/+/voltage
  48. fields:
  49. value: $.payload
  50. tags:
  51. id: $.topic[1]
  52. - measurement: button
  53. topic: node/+/push-button/+/event-count
  54. fields:
  55. value: $.payload
  56. tags:
  57. id: $.topic[1]
  58. channel: $.topic[3]