Post

OwnTracks Recorder

OwnTracks Recorder stores and serves the location data published by the OwnTracks apps for iOS and Android. It subscribes to an MQTT broker, keeps the history in a local LMDB store, and provides a web interface plus an HTTP API for maps, tracks and friend positions - a self-hosted alternative to commercial location sharing.

OwnTracks Recorder
In Development
This script is currently in active development and may be unstable or incomplete. Use in production environments is not recommended.

Installation

Default install:

1
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/ct/owntracks-recorder.sh)"
CPU: 1 cores RAM: 1024 MB Disk: 8 GB OS: Debian 13

Configuration

Config file:

1
/etc/default/ot-recorder

Notes

A local Mosquitto broker is installed and the recorder subscribes to it on 127.0.0.1:1883. Configure the OwnTracks app on your phone to publish to [IP]:1883 in MQTT mode.
Mosquitto is installed with its default configuration, which allows anonymous local connections. Before exposing port 1883 beyond your LAN, add authentication and TLS in /etc/mosquitto/conf.d/.
Location history is stored in /opt/owntracks_data (LMDB plus the recorder's own store), outside the app directory. Back that up - it is the entire tracking history.
Installed from the official OwnTracks apt repository (repo.owntracks.org/debian), so updates go through apt. The recorder can also run in HTTP mode instead of MQTT - see the upstream README.

Web Interface

Port: 8083

Source code
Loading...