diff --git a/README.md b/README.md index fc87404..a2baadd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # bmspy -bmspy is a tool to get information from a xiaoxiang-type BMS system, using some sort of serial connection. +bmspy is a tool to get information from a [xiaoxiang-type](https://www.lithiumbatterypcb.com/product/4s-or-3s-12v-li-ion-or-lifepo4-battery-smart-bms-with-bluetooth-function-uart-and-rs485-communication-with-60a-to-120a-constant-current/?attribute_specification-selection=4S+Lifepo4+120A+with+UART+and+RS485) BMS system, using some sort of serial connection. It can display the information as text, in JSON, or export the data continuously to a Prometheus exporter. diff --git a/bmspy-server.service b/bmspy-server.service index 159ebcc..60bc5ef 100644 --- a/bmspy-server.service +++ b/bmspy-server.service @@ -5,6 +5,7 @@ Description=Make BMS data available for consumers Type=exec # The full path of the git repo on your system WorkingDirectory=/usr/local/bmspy +ExecStartPre=/usr/bin/install -d -onobody -gdialout -m770 /run/bmspy ExecStart=poetry run bmspy-server RestartSec=5 Restart=on-failure