config.yaml 938 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. mqtt:
  2. debug: false
  3. broker_address: "localhost"
  4. port: 1883
  5. subscribe_prefix: "cells_inserted"
  6. publish_prefix: "measurement_done"
  7. client_id: "measure_ctrl"
  8. keepalive: 60
  9. username: "robot"
  10. password: "robot"
  11. i2c:
  12. debug: false
  13. bus_number: 1
  14. polling_interval_ms: 100 # Pause between polling I2C devices
  15. retry_count: 3 # Number of retries for failed I2C communications # TODO implement
  16. timeout_ms: 100 # Timeout for I2C communications # TODO implement
  17. http:
  18. debug: true
  19. server_url: "https://batteries.up-cell.de"
  20. timeout: 5
  21. endpoint: "cells"
  22. username: "test"
  23. password: "123"
  24. measurement:
  25. cycles: 3
  26. c_rate: 0.25
  27. cut_off_curr: 100
  28. min_voltage: 2.5
  29. max_voltage: 4.2
  30. devices:
  31. - id: 1
  32. i2c_address: 0x48
  33. num_slots: 3
  34. # - id: 8
  35. # i2c_address: 0x41
  36. # num_slots: 4
  37. logging:
  38. level: "DEBUG"
  39. mode: "a" # a: append, w: overwrite
  40. max_bytes: 1000000
  41. file: "measure_ctrl.log"