This commit is contained in:
Zeko9381 2022-03-25 10:13:05 +01:00
commit 5537767966

View File

@ -1,5 +1,5 @@
# gpx-to-rec.py
This script attempts to convert a `gpx` file into `rec` files to be used with `recorder`. I've only tested this script with gpx files with only one track and one segment.
This script attempts to convert a `gpx` file into `rec` files to be used with `recorder`. I've only tested this script with gpx files with only one track and one segment from `Phonetrack`.
## Installation
`gpx-to-rec.py` depends on [`gpxpy`](https://github.com/tkrajina/gpxpy) which you can install with `pip`:
@ -17,7 +17,7 @@ You can then copy those `.rec` files to `recorder`'s storage location for the co
Make sure to change `<username>` and `<device>` to your usecase.
After copying the files over, make sure that `recorder` has permissions to write to them:
```
sudo chown owntrack:owntracks /var/spool/owntracks/recorder/store/rec/<username>/<device>/*
sudo chown owntracks:owntracks /var/spool/owntracks/recorder/store/rec/<username>/<device>/*
```
Again, edit the command for your usecase. In my case, `recorder` uses a separate user named `owntracks`, which is why I needed to change the owner.