Dreaming of automating your Homey flows with public transport? It’s time to wake up! This app provides useful flow cards that read data from a reverse engineered 9292ov API. A full list of features can be found below.
Test app (awaiting approval for release)
Flow cards
Triggers (when …)
- Departure is soon: triggers when a departure to a selected destination from a selected station is within X minutes. Supports a single trigger or continuous mode (every 30 seconds as long as the condition is true).
- Departure is delayed: triggers when a departure to a selected destination from a selected station is more than X minutes. Supports a single trigger or continuous mode (every 30 seconds as long as the condition is true).
Conditions (And …)
- Next departure matches: returns true if the next departure from a selected station matches a specific line number of destination name.
- Departure is within minutens: returns true if there’s a departure to a selected destination within X minutes.
- Departure is delayed: returns true if the next departure to a selected destination is delayed by more than X minutes.
Actions (Then …)
- Get departure info: fetches the next departure info from a selected station and returns tokens to be used in the flow: line, destination, minutes_until, delay_minutes, planned_time, expected_time and transport_type.
All cards feature autocomplete for both stations and destination. When using any of the trigger cards make sure to select the station first, this enables the card to load the departures from that station to select. Probably should switch up the order for this in the final release.
Roadmap
There are no plans for future features yet, feel free to request a feature!
Changelog
No releases yet, app is available for testing - see the link above.
Source code
I’ve open-sourced the code of this app. It can be found in the Github repository below. Feel free to contribute.
