From a35407154f9281c293f15badd1cc75306ba08b78 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Tue, 3 Sep 2024 14:38:43 -0600 Subject: [PATCH] update readme --- README.md | 9 ++++++++- ha-location-export.service | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da797e0..aa4e619 100644 --- a/README.md +++ b/README.md @@ -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`. \ No newline at end of file diff --git a/ha-location-export.service b/ha-location-export.service index 3f4446d..49deba6 100644 --- a/ha-location-export.service +++ b/ha-location-export.service @@ -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