From af97e393f65e895e913b57e4687a1affb2bbd2ca Mon Sep 17 00:00:00 2001 From: Timothy Allen Date: Thu, 9 May 2024 09:43:06 +0200 Subject: [PATCH] Improve documentation, and improve systemd service files --- README.md | 2 +- bmspy-server.service | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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