Hello everyone,
I finally got convinced to try this after reading the helpful tips from @prohand and @guim31 here.
Well, I did it. Using a Docker, I was able to find traffic data for German bus stops. Then I simply searched for cities in Switzerland (works), cities in Austria (works), and then I got bold and searched for a French city on the Atlantic coast, far away from the German-speaking area… and look, it works too.
My developed script takes a special approach. Using the geolocation of the user at their home in Gladys Assistant, I have the geodata.
Using this geodata, a radius search is started, first the nearest bus stop, then the nearest tram, and finally the nearest train station is found.
In the next step, the next five departures are then displayed directly.
So the user knows immediately with every call from Gladys Assistant what is leaving where and when next.
Here is the test output from La Rochelle:
[/share/Container] # /share/Container/abfahrten-ortstest.sh 46.1540 -1.1450
Searching for bus stops around 46.1540, -1.1450 ...
Selection: BUS - Gare La Rochelle - De Gaulle (approx. 120 m)
No tram stop found.
Selection: RAIL - La Rochelle (approx. 156 m)
No ferry stop found.
Calling departures for the selected stop IDs ...
THE NEXT 5 DEPARTURES IN TOTAL
Time | Bus Stop | Type | Line | Destination | Data | Platform
2026-10-12T19:57:00Z | Gare La Rochelle - De Gaulle | BUS | 3 | Lagord - P+R Les Greffières | Schedule | -
2026-10-12T20:02:00Z | Gare La Rochelle - De Gaulle | BUS | 3 | Cottes Mailles - P+R Simone Veil | Schedule | -
2026-10-12T20:03:00Z | La Rochelle | TRAIN | TER 864767 | | Schedule | -
2026-10-13T03:28:00Z | La Rochelle | TRAIN | TER 864801 | | Schedule | -
2026-10-13T03:36:00Z | Gare La Rochelle - De Gaulle | BUS | 3 | Lagord - P+R Les Greffières | Schedule | -
TRAM* means: Transitous reported OTHER at a selected tram stop ID.
The 5 entries displayed are limited to the queried stop IDs.
Special stops without departures in the first API search may be missing.
Now I have a problem:
I can’t evaluate the logic of French, Swiss or Austrian departure stops and therefore I’m looking for testers.
It’s actually just a Docker to install. YAML is available. Then start the script via SSH and check the results and give me any feedback.
So who’s up for it?
Just let me know.
If the logic is correct, then it’s on to integration.
Regards
Tom
Here are the test outputs just for reading:
Austria:
[/share/Container] # /share/Container/abfahrten-ortstest.sh 47.7260 16.2140
Searching for bus stops around 47.7260, 16.2140 ...
Selection: BUS - Bad Erlach Gemeindeamt (approx. 182 m)
No tram stop found.
Selection: RAIL - Bad Erlach Bahnhof (approx. 620 m)
No ferry stop found.
Calling departures for the selected stop IDs ...
THE NEXT 5 DEPARTURES IN TOTAL
Time | Bus Stop | Type | Line | Destination | Data | Platform
2026-10-12T19:49:00Z | Bad Erlach Bahnhof | TRAIN | R 2775 | Friedberg | Schedule | -
2026-10-12T20:11:00Z | Bad Erlach Bahnhof | TRAIN | R 2776 | Wiener Neustadt Hauptbahnhof | Schedule | -
2026-10-12T20:49:00Z | Bad Erlach Bahnhof | TRAIN | R 2779 | Friedberg | Schedule | -
2026-10-12T21:49:00Z | Bad Erlach Bahnhof | TRAIN | R 2783 | Aspang Markt Bahnhof | Schedule | -
2026-10-13T02:13:00Z | Bad Erlach Bahnhof | TRAIN | R 2700 | Wiener Neustadt Hauptbahnhof | Schedule | -
Switzerland:
[/share/Container] # /share/Container/abfahrten-ortstest.sh 47.1240 9.3120
Searching for bus stops around 47.1240, 9.3120 ...
Selection: BUS - Walenstadt, Rathausplatz (approx. 216 m)
No tram stop found.
Selection: RAIL - Walenstadt (approx. 476 m)
No ferry stop found.
Calling departures for the selected stop IDs ...
THE NEXT 5 DEPARTURES IN TOTAL
Time | Bus Stop | Type | Line | Destination | Data | Platform
2026-10-12T19:44:00Z | Walenstadt | TRAIN | IR35 | Zürich HB | Schedule | 4
2026-10-12T19:46:00Z | Walenstadt | S-TRAIN | S17 | Sargans | Schedule | 3
2026-10-12T19:50:00Z | Walenstadt, Bahnhof | BUS | 444 | Murg, Bahnhof | Schedule | A
2026-10-12T20:13:00Z | Walenstadt | S-TRAIN | S17 | Rapperswil SG | Real-time | 4
2026-10-12T20:15:00Z | Walenstadt | TRAIN | IR35 | Chur | Schedule | 3
or special case Hamburg (ferry line service):
THE NEXT 5 DEPARTURES IN TOTAL
Time | Bus Stop | Type | Line | Destination | Data | Platform
2026-10-12T19:09:00Z | Stadthausbrücke | TRAIN | S1 | Hamburg Airport (Flughafen) | Real-time | -
2026-10-12T19:10:00Z | Arningstraße | FERRY | 72 | Landungsbrücken | Real-time | -
2026-10-12T19:11:00Z | Stadthausbrücke | TRAIN | S3 | Pinneberg | Real-time | -
2026-10-12T19:11:00Z | Stadthausbrücke | TRAIN | S3 | Neugraben | Real-time | -
2026-10-12T19:14:00Z | Stadthausbrücke | TRAIN | S1 | Hamburg Airport (Flughafen) | Real-time | -