config.yaml 657 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. mqtt:
  2. debug: true
  3. broker_address: "localhost"
  4. port: 1883
  5. topic_prefix: "cells_inserted"
  6. client_id: "battery_measure_ctrl"
  7. keepalive: 60
  8. i2c:
  9. debug: true
  10. bus_number: 1
  11. http:
  12. debug: true
  13. server_url: "http://localhost:8080"
  14. timeout: 5
  15. endpoint: "/cell_info"
  16. measurement:
  17. cycles: 3
  18. c_rate: 0.25
  19. sample_rate_hz: 1
  20. min_voltage: 2.5
  21. max_voltage: 4.2
  22. max_temperature_c: 45
  23. rest_time_minutes: 30
  24. devices:
  25. - id: "device_1"
  26. i2c_address: 0x48
  27. slots: 4
  28. - id: "device_2"
  29. i2c_address: 0x49
  30. slots: 4
  31. logging:
  32. level: "INFO"
  33. mode: "a" # a: append, w: overwrite
  34. max_bytes: 1000000
  35. file: "measure_ctrl.log"