Refactor into a client/server model, to enable multiple clients to access the BMS data

This commit is contained in:
2024-04-29 18:41:41 +02:00
parent 81fa555402
commit dab791fb79
9 changed files with 747 additions and 341 deletions

13
bmspy-influxdb.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=BMS tracking via InfluxDB
Requires=bmspy-server.service
[Service]
Type=exec
WorkingDirectory=/usr/local/bmspy
ExecStart=poetry run bmspy-influxdb --url http://localhost/ --org 0987654321 --bucket bms --token XXXX
RestartSec=5
Restart=on-failure
[Install]
WantedBy=default.target