Skip to main content

Geocaching smart home integration, free and open source

Geocaching integration for Gladys Assistant

Geocaching account: finds count, hidden caches, favorite points, followed items

Follow your Geocaching account in Gladys: number of finds, hidden caches, favorite points, souvenirs, favorite points received, plus the geocaches and trackables (Travel Bugs, geocoins) you choose to follow. The data comes from the official Geocaching API (cloud), read once an hour by default.

Before you start: Geocaching API access​

The Geocaching API is reserved for partners approved by Geocaching HQ, as for Home Assistant:

  1. Ask Geocaching HQ for API access (see the API documentation).
  2. Create an application and note its client ID (consumer key) and its client secret.
  3. Declare the redirect URI of Gladys in the application. Gladys chooses it: click Connect once (step 3 below) and read it in the logs of the integration (Authorization requested, redirect URI: ...), then add it to your application.

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for Geocaching and click Install.
  3. Wait for the container to start: the integration shows up in the list.

Configuration​

  1. Open the Configuration tab of the integration.
  2. Enter the Client ID and the Client secret of your application, then save.
  3. Click Connect: sign in on geocaching.com and allow Gladys to read your account.
  4. Optional: list the tracked geocaches (GC1A2B3, GC4D5E6) and tracked trackables (public codes TB1A2B3), 50 at most each, separated by commas.
  5. Optional: change the refresh interval (in seconds, from 15 minutes to 24 hours, 1 hour by default).

The Test the connection button reads the account right away and shows what was found. When Geocaching refuses the connection (revoked access, expired authorization), the status says so: click Connect again.

Devices​

Open the Discover tab to add the devices:

  • Geocaching player: finds, hides, favorite points to give, souvenirs, favorite points received (counters with history).
  • One device per tracked geocache: its favorite points, and the day you found it.
  • One device per tracked trackable: the distance travelled (km) and where it is (GC… name of the geocache, or @player holding it).

Scenes and dashboards​

Triggers (Integrations category of the scene editor):

  • New geocache finds: your find count went up. Variables: player, total finds, new finds.
  • Favorite points received: players gave favorite points to your geocaches. Variables: total received, new points.
  • Tracked geocache found: you logged a tracked geocache as found (filter on the geocache). Variables: code, name, date.
  • Trackable moved: a tracked trackable changed geocache or holder (filter on the trackable). Variables: location, geocache, holder, distance, missing.
  • Account disconnected: Geocaching refused the connection, click Connect again. Variable: reason.

The changes are detected between two refreshes; the last data is kept in the integration volume, so a restart neither loses nor replays an event.

Actions:

  • Refresh the Geocaching account: reads the account now and returns its counters.
  • Look up a geocache (code GC…): name, owner, favorite points, found or not, date, link.
  • Look up a trackable (code TB…): name, location, geocache, holder, distance, missing, link.

Widget — Geocaching account: finds, hides, favorite points, souvenirs and favorites received; how many tracked geocaches you found, where each trackable is, the time of the last refresh, and a Refresh button.

Privacy​

The integration only reads your account. The tokens stay in the Gladys configuration and are never written to the logs.

Help​

A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.

Configuration settings​

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

SettingTypeRequiredDescription
Getting startedsectionNoThe Geocaching API is reserved for approved partners. Ask Geocaching HQ for API access, then create an application whose redirect URI is the one Gladys uses (it is written in the integration logs when you click "Connect"). Enter its client ID and secret below, save, then click "Connect".
Client IDstringYesClient ID (consumer key) of your Geocaching API application.
Client secretsecretYesClient secret of the same application, never shown again.
Geocaching accountoauth2NoSign in on geocaching.com and allow Gladys to read your account.
Tracked geocachesstringNoGeocache codes to follow, separated by commas (50 at most): one device each, with its favorite points and the day you found it.
Tracked trackablesstringNoPublic codes (TB…) of the Travel Bugs and geocoins to follow, separated by commas: one device each, with its distance and location.
Refresh interval (s)numberNoHow often the account is read, in seconds (15 minutes to 24 hours).

How to install Geocaching in Gladys​

  1. In Gladys, open Integrations: Geocaching appears in the catalog, next to the native integrations, with a community badge.
  2. Click Install. Gladys pulls the Docker image (ghcr.io/prohand/gladys-geocaching:1.1.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/prohand/gladys-geocaching.

Geocaching 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​

Geocaching 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 prohand, 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 🙂