update readme

This commit is contained in:
Cyberes 2024-09-03 14:38:43 -06:00
parent d1110dece8
commit a35407154f
2 changed files with 9 additions and 2 deletions

View File

@ -2,10 +2,15 @@
*Export your device location and save it in a database.*
This is a service that exports your device's fine-grained location history from Home Assistant and saves it in a
database indefinitely.
It also supports forwarding data to [Dawarich](https://github.com/Freika/dawarich).
## Install
```shell
sudo apt-get install mariadb-client libmariadb-dev
sudo apt-get install mariadb-client libmariadb-dev pkg-config
```
```shell
@ -17,3 +22,5 @@ cp config.sample.yml config.yml
```
Then, edit `config.yml`.
There is a sample systemd service provided as `ha-location-export.service`.

View File

@ -5,7 +5,7 @@ After=network.target
[Service]
Type=simple
User=homeassistant
ExecStart=/srv/ha-location-exporter/ha-location-exporter/venv/bin/python /srv/ha-location-exporter/ha-location-exporter/main.py
ExecStart=/srv/ha-location-exporter/venv/bin/python /srv/ha-location-exporter/main.py
Restart=on-failure
RestartSec=5s