Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teltonika GPS/NMEA Logging

Script to track your Teltonika (RutOS / OpenWrt) device using NMEA and log the data to your private Nextcloud (via the PhoneTrack app). This script survives firmware updates and requires no manual terminal interaction.

How it works

  • rc.local is a small bootstrapper: it seeds /root/gps.conf with your values on first boot, downloads gps_nextcloud.sh from this repo on every boot (keeping the local copy if the download fails) and starts the tracker.
  • Position changes are sent to the PhoneTrack gpslogger endpoint. While no uplink is available, updates are buffered in /tmp/offline.log and replayed once the connection is back.

Installation

  1. Copy the content of rc.local into System → Custom Scripts in the WebUI (/etc/rc.local).
  2. Fill in the configuration block at the top:
    • NEXTCLOUD_URL - your Nextcloud base URL
    • PHONETRACK_SESSION - the PhoneTrack session token
    • GPS_NAME - the device name shown in PhoneTrack
    • GPS_DELAY - update interval in seconds
  3. Reboot.

To change the configuration later, edit /root/gps.conf on the device - the block in rc.local is only used to seed it once.

Related

Tested Devices

Device Firmware Version
RUTX11 RUTX_R_00.07.24.1
RUTX11 RUTX_R_00.07.16.3
RUTX11 RUTX_R_00.07.12
RUTX50 RUTX_R_00.07.06.3

Changelog

2026-07-29

  • Script is now downloaded from this repo, configuration moved to /root/gps.conf (seeded once by rc.local).

2025-08-02

  • Detect LTE via qmimux0 (required by recent modem firmware).

2025-02-11

  • Added iteration over multiple interfaces (multi-WAN setup support).

Credits

Based on G4Cab/TeltonikaNMEAlogger.

About

Script to track your Teltonika (OpenWrt) device in your private Nextcloud

Topics

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages