Skip to content

Commit

Permalink
Added evseMQTT.service including instructions in readme.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
slespersen committed Dec 15, 2024
1 parent 7b2e142 commit e6027fa
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,23 @@ docker run -d --name evseMQTT \
ghcr.io/slespersen/evsemqtt:latest
```
### Run as systemd service
A template for a systemd service file has been provided. The arguments needs to be updated according to the, as well as the path to the library.
See evseMQTT.service for details.
```bash
sudo cp /path/to/evseMQTT/evseMQTT.service /etc/systemd/system/evseMQTT.service
sudo systemctl daemon-reload
sudo systemctl enable evseMQTT.service
sudo systemctl start evseMQTT.service
sudo systemctl status evseMQTT.service
```
### Handle bluetooth module crashes in container
In some cases the bluetooth module crashes and needs to be restarted.
Expand Down
11 changes: 11 additions & 0 deletions evseMQTT.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Communicating with EVSE-based Electric Vehicle Charging Wallboxes using Bluetooth Low Energy (BLE)
After=network.target

[Service]
ExecStart=/usr/bin/python3 /path/to/evseMQTT/main.py --address <address> --password <password> --unit <unit> --mqtt --mqtt_broker <mqtt_broker> --mqtt_port <mqtt_port>
WorkingDirectory=/opt/evseMQTT
Restart=always

[Install]
WantedBy=multi-user.target

0 comments on commit e6027fa

Please sign in to comment.