A custom card for Home Assistant to display ÖBB Scotty widget to show departures for a specific station or a trip planner.
The card allows you to configure the widget flexibly to your needs via the official ÖBB widget generator (see installation intrstructions below).
Or manually:
- Go to HACS.
- Click the 3 dots in the top right corner -> Custom repositories.
- Add this URL:
https://github.com/IchordeDionysos/home-assistant-oebb-departure-board - Category: Dashboard (Select "Lovelace" if on older HACS versions).
- Click Add.
- Find the new card in the list and click Download.
You need to first create the widget via the ÖBB configurator.
- Go to: https://fahrplan.oebb.at/webapp/widgetgenerator.html
- De-select "Trip Planner" & select "Departures". (You should now see a widget preview prompting you for a single station).
- Select the language you want the widget to have, then continue to the next step.
- Select the "Monitor" display mode, then continue to the next step.
- Select the station you want departures for and optionally adjust the advanced settings, then continue to the next step.
- On the last step, you'll be shown some code that we need to configure the dashboard, copy the one starting with
<div ....
- Go to a dashboard and edit it.
- Create a new widget on the dashboard and search for the "ÖBB widget" card.
- Copy the following configuration into the text field (for widget copy use the generated widget configuration from the previous section).
type: custom:oebb-card
widget: <div data-hfs-widget="true" [... your widget configuration ...]></div>
language: en_GB # Or: de_DE, it_IT; Defaults to English
hide_background: true
grid_options: # Optional, use this for a dashboard with only a single ÖBB widget.
columns: full
rows: 8