2017-03-31 10:35:00 +02:00
|
|
|
ot-recorder
|
|
|
|
===========
|
|
|
|
|
2017-03-31 10:38:03 +02:00
|
|
|
The [OwnTracks Recorder][1] is a lightweight program for storing and accessing
|
|
|
|
location data published via MQTT (or HTTP) by the OwnTracks apps.
|
2017-03-31 10:35:00 +02:00
|
|
|
|
2017-03-31 10:38:03 +02:00
|
|
|
## docker-compose.yml
|
2017-03-31 10:35:00 +02:00
|
|
|
|
2017-03-31 10:38:03 +02:00
|
|
|
```yaml
|
2021-10-28 12:31:36 +02:00
|
|
|
version: "3.8"
|
2019-10-02 03:06:24 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
|
|
|
|
recorder:
|
|
|
|
image: vimagick/ot-recorder
|
|
|
|
ports:
|
|
|
|
- "8083:8083"
|
2021-10-28 12:31:36 +02:00
|
|
|
- "8085:8085"
|
2019-10-02 03:06:24 +02:00
|
|
|
volumes:
|
|
|
|
- ./data:/var/spool/owntracks/recorder/store
|
|
|
|
environment:
|
|
|
|
- OTR_HOST=iot.eclipse.org
|
|
|
|
- OTR_PORT=1883
|
|
|
|
- OTR_USER=username
|
|
|
|
- OTR_PASS=password
|
|
|
|
- OTR_TOPICS=owntracks/#
|
2021-10-28 12:31:36 +02:00
|
|
|
# OTR_CAPATH=/etc/ssl/certs/
|
2019-10-02 03:06:24 +02:00
|
|
|
# OTR_OPTIONS=--debug
|
|
|
|
restart: unless-stopped
|
|
|
|
|
|
|
|
frontend:
|
|
|
|
image: owntracks/frontend
|
|
|
|
ports:
|
|
|
|
- 8080:80
|
|
|
|
environment:
|
|
|
|
- SERVER_HOST=recorder
|
|
|
|
- SERVER_PORT=8083
|
|
|
|
restart: unless-stopped
|
2017-03-31 10:38:03 +02:00
|
|
|
```
|
|
|
|
|
2019-10-02 03:06:24 +02:00
|
|
|
:warning: Some variables don't work (`OTR_QOS`, `OTR_CAFILE`) as [document][3] said.
|
2017-05-22 15:53:26 +02:00
|
|
|
You can pass any options to process via `OTR_OPTIONS` environment variable.
|
|
|
|
|
2017-04-01 08:30:23 +02:00
|
|
|
Click [this][2] to generate a google map api key.
|
|
|
|
|
2019-10-02 03:06:24 +02:00
|
|
|
## up and running
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ docker-compse up -d
|
|
|
|
$ docker-compose exec recorder bash
|
|
|
|
>>> ocat --list
|
|
|
|
{"results":["foo"]}
|
|
|
|
>>> ocat --user foo --device bar
|
|
|
|
```
|
|
|
|
|
2017-03-31 10:38:03 +02:00
|
|
|
[1]: https://github.com/owntracks/recorder
|
2017-04-01 08:30:23 +02:00
|
|
|
[2]: https://developers.google.com/maps/documentation/javascript/?authuser=1
|
2019-10-01 16:47:40 +02:00
|
|
|
[3]: https://github.com/owntracks/recorder#configuration-file
|