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.* *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 ## Install
```shell ```shell
sudo apt-get install mariadb-client libmariadb-dev sudo apt-get install mariadb-client libmariadb-dev pkg-config
``` ```
```shell ```shell
@ -17,3 +22,5 @@ cp config.sample.yml config.yml
``` ```
Then, edit `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] [Service]
Type=simple Type=simple
User=homeassistant 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 Restart=on-failure
RestartSec=5s RestartSec=5s