Skip to main content

APRS smart home integration, free and open source

APRS integration for Gladys Assistant

Follow amateur radio APRS stations: position, distance, weather, messages. Receive only.

Follow amateur radio APRS stations in Gladys: the tracker of a car, a hand-held radio, a weather station, a digipeater. The integration reads the worldwide APRS-IS network, which relays the packets heard by thousands of receiving stations (igates).

Receive only: nothing is ever transmitted. The integration logs in to APRS-IS without passcode (pass -1), which the network only allows to listen. You do not need a radio, nor a licence, to follow a station; you need one to own a tracker.

What you get​

One device per station heard, named after its callsign with its SSID (F4ABC-9). A station only gets the features it has reported:

  • Position (latitude, longitude, as text), Distance from home (km) and At home, when your Gladys house is located;
  • Speed (km/h), Course (degrees) and Altitude (m) of a moving station;
  • Last packet (date and time) and Comment (the comment or status text of the station);
  • Last message: the last APRS message addressed to the station (F1XYZ: text);
  • for a weather station: Temperature, Humidity, Pressure (hPa), Wind, Wind gust (km/h), Wind direction, Rain (last hour) and Rain (24 h).

When a station reports something new (its first speed, a first message), its device gains the feature: Gladys offers to update it in the Discovery tab.

Configuration​

  1. Install the integration, then open its configuration.
  2. Callsigns to follow: the callsigns with their SSID, separated by commas, for instance F4ABC-9, F4ABC-13. A wildcard follows every callsign that starts the same: F4ABC* (F4ABC-9, F4ABC-13… and F4ABCD too); F4ABC alone is SSID 0 only. At most 20 entries, at least 3 characters before a *, and 50 stations in all.
  3. Your callsign (optional): the login on APRS-IS. Empty, the anonymous N0CALL is used.
  4. APRS-IS server: rotate.aprs2.net:14580 by default, a server of the network picked for you. euro.aprs2.net, noam.aprs2.net, asia.aprs2.net… choose a region.
  5. Gladys house and Home radius: the distance is measured from the location of the house (Settings → Houses); a station is at home within the radius (200 m by default).
  6. Language of the names and texts: feature names, sentences, times.
  7. Click Test the connection, then open the Discovery tab once the stations have been heard (a tracker beacons every 1 to 30 minutes) and add them.

Actions​

  • Test the connection: logs in to the APRS-IS server with your callsigns and reports the server that answered.

Scenes​

Triggers:

  • APRS station arrives home and APRS station leaves home: the last position crossed the home radius (the first position after a start is a reference, not a move). Variables: station, time, distance.
  • APRS message received: a message addressed to a followed callsign, once even if the sender repeats it. Variables: station, sender callsign, text, time.

Leave the station empty to react to every followed station.

Action Get the state of an APRS station: a sentence such as "F4ABC-9 is 12.3 km from home, last packet at 14:05.", and the position, distance, speed, temperature, comment, last message and an aprs.fi link, for a message or a condition. The distance and the speed are -1 when unknown, the temperature -100.

The values of the devices (distance, at home, temperature…) also work in the usual scene conditions and "device state" triggers.

Dashboard​

Widget APRS stations: every followed station with its distance or "At home", and the time of its last packet. Tap a station for its details (position, speed, weather, comment, last message) and its page on aprs.fi; a setting hides the aprs.fi links.

Limits​

  • Receive only: the integration cannot send a message nor a position, by design.
  • APRS-IS only carries what an igate has heard: a tracker out of range of every igate stays silent, and its last position stays the last one known.
  • After a restart, the values come back with the next packet of each station.
  • Objects and items (repeaters, events announced by a station) are not followed.
  • Tested against the live APRS-IS network, without a tracker of our own: feedback welcome on the forum.

Troubleshooting​

  • No device in the Discovery tab: the stations have not been heard since the start. Check them on aprs.fi (same callsign, same SSID) and wait for their next packet.
  • "The APRS-IS server cannot be reached": the integration retries by itself, 5 seconds to 5 minutes apart. Check that Gladys reaches the Internet on port 14580, or choose another server.
  • A wildcard is ignored: it needs at least 3 characters before the *.
  • Detailed logs: set LOG_LEVEL=debug on the integration.

Configuration settings​

These are the settings APRS asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Stations to followsectionNoGladys reads the APRS-IS network, which relays the APRS packets of radio amateurs worldwide, and only listens: nothing is ever transmitted. Enter the callsigns to follow, with their SSID (F4ABC-9 for a car, F4ABC-13 for a weather station...), separated by commas. F4ABC* follows every callsign starting with F4ABC (F4ABC-9, F4ABC-13...); F4ABC alone is SSID 0 only. A device appears in the Discovery tab when a station is heard.
Callsigns to followstringYes
Your callsign (optional)stringNoUsed to log in to APRS-IS, without passcode: the connection stays receive only. Empty: N0CALL, the anonymous login.
APRS-IS serverstringNorotate.aprs2.net picks a server of the APRS-IS network for you. To choose a region: euro.aprs2.net, noam.aprs2.net...
Distance and homesectionNoThe distance is measured from the location of your Gladys house (Settings → Houses). A station is at home within the radius below: use its At home feature or the arrival and departure triggers in scenes, for a car fitted with an APRS tracker for instance.
Gladys house (optional)stringNo
Home radius (meters)numberNo
Language of the names and textsselectNo

How to install APRS in Gladys​

  1. In Gladys, open Integrations: APRS appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/guim31/gladys-aprs:1.0.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration).
  3. Open the Configuration screen of the integration, fill in the settings, and save.
  4. You can also install it directly from its repository URL: https://github.com/guim31/gladys-aprs.

APRS requires Gladys >=5.1.0. The catalog inside Gladys refreshes every hour, so a new version becomes available at most one hour after its release.

Not running Gladys yet? It is free and open source: follow the installation guide to get started.

About external integrations​

APRS is an external integration: a community integration packaged as a Docker container and published on GitHub, that Gladys installs in one click and runs in a sandbox isolated from its core. It is published and maintained by guim31, not by the Gladys core team.

Subscribe to the Gladys Assistant newsletter

A few emails per month about new releases and project news. Sent by Pierre-Gilles Leymarie, founder of the project. Unsubscribe anytime 🙂