Skip to main content

Navitia (transports français) smart home integration, free and open source

Navitia (transports français) integration for Gladys Assistant

Next departures and disruptions of French transit networks, via Navitia.

Follow the next departures and the disruptions of most French urban and regional networks, through the Navitia API.

Installation​

  1. In Gladys, open Integrations, then the external integrations store.
  2. Search for Navitia (transports français) and click Install.
  3. Wait for the container to start: the integration shows up in the list.

Configuration​

  1. Create a free account on navitia.io and copy your API key.
  2. Pick the coverage of your network (sncf, fr-idf for Île-de-France, fr-se...).
  3. List the stop areas to follow, separated by commas or new lines (for example stop_area:SNCF:87271007|Gare de Lyon). The optional |Name gives the device its name. Find the ids with the Navitia places search.
  4. Save, then use Test the Navitia connection. The refresh interval is one minute at least.

Usage​

Each stop area becomes a device, found by the scan of Gladys, with: minutes before the next departure, minutes before the following one, a text summary of the next departures (line, direction), and the active disruptions. Use them on dashboards and in scenes.

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 Navitia (transports français) asks for in its configuration screen in Gladys.

SettingTypeRequiredDescription
Getting startedsectionNoCreate a free account on navitia.io to get an API key, then list the stop areas to follow (ids such as stop_area:SNCF:87271007).
API keysecretYes
CoveragestringYesNavitia coverage of your network, e.g. sncf, fr-idf (Île-de-France) or fr-se.
Stop areasstringYesStop area ids, separated by commas or new lines. Add |Name after an id to name the device.
Refresh interval (s)numberNoHow often departures are read, in seconds (one minute minimum).

How to install Navitia (transports français) in Gladys​

  1. In Gladys, open Integrations: Navitia (transports français) 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-navitia-reseaux-de-transport-francais:1.2.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-navitia-reseaux-de-transport-francais.

Navitia (transports français) 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​

Navitia (transports français) 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 🙂