Hello everyone,
I’m sharing an external integration for Montrealers: STM Montréal. It displays in Gladys the next STM buses, the status of metro lines, and available BIXI bikes near you.
What it does
Next bus arrivals: a device per stop with waiting times, the line, and a summary (« 24 3 min · 747 14 min »).
Metro status: green, orange, yellow, and blue lines, with the STM message (« Normal metro service » or the interruption text).
BIXI stations: bikes, electric bikes, and available spaces.
3 dashboard widgets: arrivals, metro status, BIXI station.
Scenes:
- « bus in 5 min », to turn on the entrance light for example;
- « orange line disrupted », to receive a message;
- « BIXI station empty or full »;
- actions « read next buses » and « read the status of a line ».
Designed to be simple
Nothing to configure to get started:
- Check that your home has an address in Gladys.
- Install the integration and click on « Save ».
- Open the Discovery tab: the bus stops and BIXI stations closest to you are already there, with their real name (« Bus – Notre-Dame / Peel (36 → West) »). Click on « Add ».
Without any account, you have the scheduled bus times and BIXI bikes.
With a free STM key (5 minutes, step-by-step guide in the documentation), you also have the real-time bus times and the metro status.
For a stop far from home (work, school…), the « Find a stop » button finds the code from an intersection.
Installation
- Gladys 5.1.0 or newer.
- From the Gladys integrations catalog: search for « STM ».
- Source code and documentation: GitHub - LM1LC3N7/gladys-stm: Montréal transport services (STM) and bixi integration for Gladys Assistant · GitHub
- User guide: https://github.com/LM1LC3N7/gladys-stm/blob/main/docs/fr.md
Call for testers 
This is a first version (0.2.1). Your feedback interests me, especially on:
- Metro status: the STM API is not publicly documented, and I reconstructed it from free applications. If a line displays a strange status during a disruption, let me know.
- BIXI winter: stations removed for the winter should display « Removed from the BIXI network » and return alone in the spring. We’ll see in November!
- the clarity of messages and configuration for a non-technical person.
Issues can be reported here or in GitHub issues.
Thanks
- To @prohand, whose TCL (Lyon) integration served as a model.
- To Transitous, a free community service that provides scheduled times, stop names, and search.
- To the open data of the STM (CC BY 4.0) and the public BIXI Montréal feed.
Unofficial integration, not affiliated with STM or BIXI.