RTM Marseille smart home integration, free and open source

Next metro, tram and bus departures in Marseille
The next metro, tram and bus departures of the RTM network (Marseille) in Gladys: the minutes before the next vehicle at your stops, the traffic alerts of your lines, scene triggers and a dashboard widget.
The data comes from the public RTM website (real time when RTM provides it, timetables otherwise). No account is needed, but the integration needs internet access.
Installation
- In Gladys, open Integrations, then the external integrations store.
- Search for RTM Marseille and click Install.
- Wait for the container to start: the integration shows up in the list.
Configuration
Open the Configuration tab of the integration:
- Stops to watch:
line:stoppairs separated by commas, e.g.M1:Vieux-Port, T2:Arenc, B1:Castellane, 82:Rond-Point du Prado. Case and accents do not matter, and part of the name is enough (T2:Arencfinds "Arenc Euroméditerranée"). - "Departure soon" threshold (5 minutes by default): below it, the "Departure soon" trigger fires and the stop turns orange in the widget.
- Refresh interval (60 seconds by default, 30 at least).
Not sure of a stop name? The List the stops of a line button shows the stops of each direction of a line (M1, T2, B1, 82...). The Check the stops button tells what was found and what was not.
Save, then open the Discovery tab: every stop shows up once per direction, e.g. "M1 Vieux-Port → La Fourragère" and "M1 Vieux-Port → La Rose". Add the ones you need. The direction ending at the stop (its terminus) is not offered: no vehicle leaves from there.
Usage
Every added stop has three values:
- Next departure: minutes before the next departure;
- Following departure: minutes before the one after;
- Next departure time: time of the next departure (
12:24), or-when none is announced (at night). The minutes then keep their last value.
Scenes and dashboards
Scene triggers
- Departure soon: a vehicle leaves a watched stop in fewer minutes than the configured threshold. Fired once per vehicle. Filter: the stop. Variables: line, stop, destination, minutes before departure, departure time, real-time data or not.
- Traffic alert: RTM publishes a new disruption (works, demonstration, incident...) on a watched line. Filter: the line (
M1...). Variables: line, title, period, category, details. The alerts already running when the integration starts are not fired again.
Scene action
- Get the next departures: reads the departures of a stop right away and hands them to the following actions of the scene — departure announced (yes/no), minutes and time of the next and following ones, line, stop, destination. For instance to say "next metro in 4 minutes" when you leave home.
"Next departures" widget
One row per stop with the next three departures (orange below the threshold), the traffic alerts of the shown lines and a Refresh button. Pick a stop in the widget settings to also show its two countdowns as large live tiles.
Help
A question or a problem? Ask on the Gladys community forum or open an issue on the GitHub repository.
This integration is neither developed nor endorsed by RTM.
Configuration settings
These are the settings RTM Marseille asks for in its configuration screen in Gladys.
| Setting | Type | Required | Description |
|---|---|---|---|
| Getting started | section | No | List the stops to watch as line:stop pairs separated by commas, e.g. M1:Vieux-Port, T2:Arenc, B1:Castellane. Save, then add the stops from the Discovery tab: one device per direction. Not sure of a stop name? Use the "List the stops of a line" button below. Data from the public RTM website, no account needed. |
| Stops to watch | string | Yes | line:stop pairs separated by commas. Case and accents do not matter. |
| "Departure soon" threshold (min) | number | No | A vehicle closer than this fires the "Departure soon" scene trigger and turns orange in the widget. |
| Refresh interval (s) | number | No | How often the departures of each stop are read, in seconds (30 s minimum). |
How to install RTM Marseille in Gladys
- In Gladys, open Integrations: RTM Marseille appears in the catalog, next to the native integrations, with a community badge.
- Click Install. Gladys pulls the Docker image (
ghcr.io/prohand/gladys-rtm-marseille:1.1.0), starts it in a sandbox isolated from the core, and generates the integration's interface (devices, discovery and configuration). - Open the Configuration screen of the integration, fill in the settings, and save.
- You can also install it directly from its repository URL: https://github.com/prohand/gladys-rtm-marseille.
RTM Marseille requires Gladys >=5.3.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
RTM Marseille 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.
- Browse all integrations, native and community
- Build and publish your own external integration
- Source code on GitHub — source of this documentation