Skip to content

Commit da9edcd

Browse files
authored
Merge pull request #95 from FaserF/new-feat-autocomplete
Add support for search & autofill stations
2 parents 5c5fd63 + 15c7d27 commit da9edcd

32 files changed

Lines changed: 5515 additions & 1298 deletions
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update Backends
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 1 * *' # Monthly on the 1st
6+
workflow_dispatch: # Allow manual trigger
7+
8+
jobs:
9+
update-backends:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v6
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v6
16+
with:
17+
python-version: '3.14'
18+
19+
- name: Run update script
20+
run: python scripts/update_backends.py
21+
22+
- name: Format with Black
23+
run: |
24+
pip install black
25+
black custom_components/db_infoscreen/const.py README.md
26+
27+
- name: Create Pull Request
28+
uses: peter-evans/create-pull-request@v8
29+
with:
30+
commit-message: "chore: update supported backends from dbf.finalrewind.org"
31+
title: "chore: Update supported backends"
32+
body: "Automated update of `DATA_SOURCE_OPTIONS` and `DATA_SOURCE_MAP` in `const.py` based on the current backends listed at `https://dbf.finalrewind.org/_backend`."
33+
branch: "update-backends-automation"
34+
base: "main"
35+
labels: "automation, backends"

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
# Ignore folders.
2+
node_modules/
3+
.venv/
24
megalinter-reports/
35
github_conf/
46
/custom_components/db_infoscreen/__pycache__
57
/tests/__pycache__
68
/custom_components/__pycache__
79
/test_config/.storage
810
test_config/home-assistant.log
9-
test_config/home-assistant.log.1
10-
test_config/home-assistant.log.fault
11+
test_config/home-assistant.log*
1112
test_config/home-assistant_v2.db
1213
test_config/home-assistant_v2.db-shm
1314
test_config/home-assistant_v2.db-wal
1415
/test_config/blueprints
1516
test_config/.HA_VERSION
1617
test_config/.ha_run.lock
18+
debug_dbf.py
19+
temp_autocomplete.js
20+
test_output*.txt
21+
test_warnings*.txt

README.md

Lines changed: 56 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ When adding the integration, you will be asked for the most important settings:
7070

7171
| Option | Type | Required | Description |
7272
| :--- | :--- | :--- | :--- |
73-
| `station` | string | **Yes** | Station name, Trip number, or DS100 ID (e.g. `München Hbf` or `MH`). Check [DS100 List](https://ds100.frankfurtium.de/dumps/orte_de.html) for IDs. |
73+
| `station` | string | **Yes** | Station name (e.g. `München Hbf`), DS100 ID (e.g. `MH`), or EVA ID. The setup flow includes an **autocomplete search** to help find the correct official name. |
7474
| `data_source` | string | No | Backend source (DB, AVV, etc.). Default: `IRIS-TTS`. |
7575
| `next_departures` | int | No | Number of upcoming departures to display. Default: `4`. |
7676
| `platforms` | string | No | Filter by comma-separated platforms (e.g., `1, 2, 5`). |
@@ -120,29 +120,62 @@ This integration allows fetching data from various backend sources via [DBF](htt
120120
<details>
121121
<summary><strong>👇 Click to expand the full list of supported Data Sources</strong></summary>
122122

123-
### Germany (DE)
123+
### Supported Data Sources
124+
125+
#### 🇩🇪 Germany
126+
124127
* **IRIS-TTS** (Deutsche Bahn) - *Default / Recommended*
125-
* **AVV** (Aachen), **AVV** (Augsburg)
126-
* **BEG** (Bayern), **BSVG** (Braunschweig), **BVG** (Berlin/Brandenburg)
127-
* **bwegt** (Baden-Württemberg), **DING** (Donau-Iller)
128-
* **KVB** (Köln), **KVV** (Karlsruhe), **MVV** (München)
129-
* **NAHSH** (Schleswig-Holstein), **NASA** (Sachsen-Anhalt), **NVBW** (BaWü)
130-
* **NVV** (Nordhessen), **NWL** (Westfalen-Lippe), **RMV** (Rhein-Main)
131-
* **RSAG** (Rostock), **RVV** (Regensburg), **SaarVV** (Saarland)
132-
* **VAG** (Freiburg), **VBB** (Berlin-Brandenburg), **VBN** (Bremen/Niedersachsen)
133-
* **VGN** (Nürnberg), **VMT** (Mittelthüringen), **VMV** (Mecklenburg-Vorpommern)
134-
* **VOS** (Osnabrück), **VVO** (Oberelbe), **VRN** (Rhein-Neckar), **VRR** (Rhein-Ruhr)
135-
* **VVS** (Stuttgart)
136-
137-
### International
138-
* **Austria (AT)**: LinzAG, ÖBB, STV (Steiermark)
139-
* **Switzerland (CH)**: BLS, TPG (Geneva), ZVV (Zürich)
140-
* **Denmark (DK)**: DSB (Rejseplanen)
141-
* **Ireland (IE)**: Iarnród Éireann
142-
* **Luxembourg (LU)**: mobiliteit
143-
* **Poland (PL)**: PKP
144-
* **Sweden (SE)**: Resrobot
145-
* **USA (US)**: BART (California), CMTA (Texas)
128+
* **AVV – Aachener Verkehrsverbund**
129+
* **AVV – Augsburger Verkehrs- & Tarifverbund**
130+
* **BEG – Bayerische Eisenbahngesellschaft**
131+
* **BSVG – Braunschweiger Verkehrs-GmbH**
132+
* **BVG – Berliner Verkehrsbetriebe**
133+
* **DING – Donau-Iller Nahverkehrsverbund**
134+
* **KVB – Kölner Verkehrs-Betriebe**
135+
* **KVV – Karlsruher Verkehrsverbund**
136+
* **MVV – Münchener Verkehrs- und Tarifverbund**
137+
* **NAHSH – Nahverkehrsverbund Schleswig-Holstein**
138+
* **NASA – Personennahverkehr in Sachsen-Anhalt**
139+
* **NVBW – Nahverkehrsgesellschaft Baden-Württemberg**
140+
* **NVV – Nordhessischer Verkehrsverbund**
141+
* **NWL – Nahverkehr Westfalen-Lippe**
142+
* **RMV – Rhein-Main-Verkehrsverbund**
143+
* **RSAG – Rostocker Straßenbahn**
144+
* **RVV – Regensburger Verkehrsverbund**
145+
* **SaarVV – Saarländischer Verkehrsverbund**
146+
* **VAG – Freiburger Verkehrs AG**
147+
* **VBB – Verkehrsverbund Berlin-Brandenburg**
148+
* **VBN – Verkehrsverbund Bremen/Niedersachsen**
149+
* **VGN – Verkehrsverbund Großraum Nürnberg**
150+
* **VMT – Verkehrsverbund Mittelthüringen**
151+
* **VMV – Verkehrsgesellschaft Mecklenburg-Vorpommern**
152+
* **VOS – Verkehrsgemeinschaft Osnabrück**
153+
* **VRN – Verkehrsverbund Rhein-Neckar**
154+
* **VRR – Verkehrsverbund Rhein-Ruhr**
155+
* **VRR2 – Verkehrsverbund Rhein-Ruhr**
156+
* **VRR3 – Verkehrsverbund Rhein-Ruhr**
157+
* **VVO – Verkehrsverbund Oberelbe**
158+
* **VVS – Verkehrs- und Tarifverbund Stuttgart**
159+
* **bwegt – bwegt**
160+
161+
#### 🌍 International
162+
163+
* **BART – Bay Area Rapid Transit**
164+
* **BLS – BLS AG**
165+
* **CFL – Société Nationale des Chemins de Fer Luxembourgeois**
166+
* **CMTA – Capital Metro Austin Public Transport**
167+
* **DSB – Rejseplanen**
168+
* **IE – Iarnród Éireann**
169+
* **LinzAG – Linz AG**
170+
* **PKP – Polskie Koleje Państwowe**
171+
* **Resrobot – Resrobot**
172+
* **Rolph – Rolph**
173+
* **STV – Steirischer Verkehrsverbund**
174+
* **TPG – Transports publics genevois**
175+
* **ZVV – Züricher Verkehrsverbund**
176+
* **mobiliteit – mobilitéits zentral**
177+
* **ÖBB – Österreichische Bundesbahnen**
178+
146179

147180
> Note: To use HAFAS for stations also found in IRIS-TTS (e.g. "Frankenforst Kippekausen"), choose the specific backend or set `hafas=1`. See [Issue #8](https://github.com/FaserF/ha-db_infoscreen/issues/8).
148181

0 commit comments

Comments
 (0)