GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - bator/hungarian-transport: Home Assistant dashboard card for BKK, MÁV and Volán departures between two stops

BranchesTags
Open more actions menu

Latest commit

 

History

825 Commits
825 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
custom_components/hungarian_transport
custom_components/hungarian_transport
 
 
dist
dist
 
 
docs
docs
 
 
ha
ha
 
 
packages
packages
 
 
scripts
scripts
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
GLOSSARY.md
GLOSSARY.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
env.example
env.example
 
 
eslint.config.js
eslint.config.js
 
 
hacs.json
hacs.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
pytest.ini
pytest.ini
 
 
requirements_test.txt
requirements_test.txt
 
 
requirements_test_oldest.txt
requirements_test_oldest.txt
 
 
requirements_test_random.txt
requirements_test_random.txt
 
 
test-board.mjs
test-board.mjs
 
 
test-boot.mjs
test-boot.mjs
 
 
test-context.mjs
test-context.mjs
 
 
test-i18n.mjs
test-i18n.mjs
 
 
test-journey-plan.mjs
test-journey-plan.mjs
 
 
test-loader.mjs
test-loader.mjs
 
 
test-render.mjs
test-render.mjs
 
 
test-ride-map.mjs
test-ride-map.mjs
 
 
test-route-patterns.mjs
test-route-patterns.mjs
 
 
test-rows.mjs
test-rows.mjs
 
 

Repository files navigation

Hungarian transport

hacs release

Home Assistant integration and dashboard cards for Hungarian public transport: BKK, MÁV, Volán, 24 city operators and the Volánbusz local networks of some 60 towns. See the next departures between two stops, follow a vehicle on the map, and plan a trip across every network. In Hungarian and English.

Departures Route map
MÁV trains from Budapest-Kelenföld to Székesfehérvár, with platforms and seat-reservation marks Tram 47 on its route, with its live position and the boarding and alighting stops
Planner Card editor
The planner with a transfer itinerary from Budapest-Keleti to Szeged The card editor with its live preview

📖 User manual · Felhasználói kézikönyv: every screen, step by step, with screenshots.

Features

  • Departure card: the next departures between two stops, with live delays, platforms, seat-reservation and national-pass marks, accessibility and bike icons, and the travel time to your stop.
  • Four modes: Budapest (BKK FUTÁR, live), MÁV trains, Volán coaches, and city networks (Debrecen, Miskolc, Pécs, Szeged, Kecskemét, Szombathely, Veszprém, the Budavári Sikló and the Zugliget Libegő, Balaton and Danube ferries and more).
  • Route map: the trip's own route, where you get on and off, and the vehicle's live or estimated position.
  • Planner: search any stop, street or town; live board, or itineraries with transfers for a time you pick, with a map and a timeline. It suggests the stops you use most.
  • Integration: keeps your BKK key out of dashboards, and gives MÁV cards their departures, platforms and seat reservations (ELVIRA).

Install

  1. Open the repository in HACS and click Download:

    Open your Home Assistant instance and open this repository in HACS.

  2. Restart Home Assistant.

  3. Add the integration, and enter your free BKK Open Data key there (BKK and MÁV cards need it; Volán and city cards do not):

    Open your Home Assistant instance and start setting up Hungarian transport.

  4. Add the Hungarian transport or the Hungarian transit stop planner card to a dashboard, and pick two stops in its editor.

Without the buttons: in HACS add https://github.com/bator/hungarian-transport as a custom repository with category Integration, and after the restart go to Settings → Devices & services → Add integration → Hungarian transport.

Installed it earlier as a HACS Dashboard repository? Remove that repository first, then add it again as an Integration.

Budapest (BKK) Volán City network
Metro M4 and trams from Móricz Zsigmond körtér to Fővám tér Coaches from Népliget to Kecskemét Szeged tram 2

Configuration

The editors set everything. In YAML:

type: custom:hungarian-transport-card
mav: true                  # or volan: true, or helyi: true with city: szeged
stopId: BKK_005501024
stopName: Budapest-Kelenföld
destKey: szekesfehervar
destName: Székesfehérvár
minutesAfter: 180          # look-ahead, 15–480 minutes
theme: operator            # optional title colours, see below
headerBadges: true         # optional: the board's line badges beside the title
type: custom:hungarian-transit-stop-card-plan

theme tints the card's title band with an operator's colour (a soft tint on the card background with a thin brand rule under it), taken from its passenger site: ha (default, Home Assistant's own look), operator (follows the card's source: BKK, MÁV, Volán or the city feed), or one of bkk, mav, volan, mvk, szkt, tuke, vbusz, blaguss, bahart, kisvasut, thury, homm, paksbusz. Background, text and status colours stay with the Home Assistant theme, so light and dark mode both work. The planner card keeps Home Assistant's look under operator.

Every option: configuration reference. A key on the card (apiKey) still works but is deprecated and will be removed in 2.0: every Home Assistant user can read it from the dashboard, and Repairs lists the dashboards that still hold one. Keep it in the integration.

Data

What Source
Budapest buses, trams, metro, HÉV, suburban trains BKK FUTÁR, live; while FUTÁR does not answer (with a BKK key), the boards and trip details from mavplusz.hu, MÁV's journey planner (opt out in the integration's options), else Transitous. See BKK boards when FUTÁR fails
MÁV trains MÁV ELVIRA (departures, platforms, seat reservations); BKK FUTÁR only without the integration
Volán coaches National Volán GTFS (opendata.utas.hu, KTI as fallback), shipped with each release; between releases the index rebuilt weekly, fetched from GitHub Pages when it is newer (opt out in the integration's options)
Live delays and positions outside Budapest (Volán, the Volánbusz towns, Veszprém, Miskolc, Paks, Debrecen, Orosháza, MÁV trains) mavplusz.hu, MÁV's journey planner, first, asked for the trips a card shows (every operator here but Orosháza; opt out in the integration's options); as its backup, and for Orosháza, the public GTFS-Realtime feeds Transitous lists, most of them from jbb.ghsq.de, Orosháza's from gpspositions.net. Fetched by the integration only while a card shows them, at most once a minute. See Live delays and positions
City networks Each operator's GTFS, shipped with each release; between releases the index rebuilt weekly, like Volán's
Stop search, transfers Transitous, BKK FUTÁR as fallback
MÁV train routes on the map MÁV GTFS matched to the OSM rails with pfaedle, shipped with each release built with the MÁV secrets; or add the feed yourself
MÁV train routes, daily The same index built every morning from MÁV's newest feed, fetched from GitHub Pages (bator.github.io) when it is newer; opt out in the integration's options. The same site serves the day's MÁV GTFS and its pfaedle-matched shapes for other uses

A release is made for new code and ships the timetables current at that time; a published release never changes. New timetables between releases come from GitHub Pages, not as a new version: the integration installs the Volán and city indexes rebuilt every week and the MÁV index rebuilt every day. To refresh the timetables daily on your own Home Assistant, add the MÁV feed, or read what an update message means, see Timetables, train routes and updates.

Development

Card sources are ES modules in src/; dist/ is the esbuild bundle (CI checks it matches npm run build). The GTFS scripts in scripts/ are standard-library Python.

npm ci && npm run lint && npm run build && npm test
for t in scripts/test_*.py; do python3 "$t"; done
pip install -r requirements_test.txt && python -m pytest   # Python 3.13

A release is published by the Release workflow (bump: patch from main). Its notes are docs/releases/<version>.md when that file exists on the commit being released (write it before running the workflow); a -rev prerelease gets a one-line description.

Credits

Timetables and live data: BKK Open Data, KTI, MÁV-csoport (CC0), Transitous, and the city operators MVK, Tüke Busz, SZKT, Blaguss, V-Busz, Paksbusz, PTKE, Kecskeméti Kisvasút, HOMM, Bahart, HVSZ, KKZRT, Halasbusz, T-Busz, THURY-BUSZ, DKV (Debrecen), KeKo (Kecskemét) and Orosháza Önkormányzat (its gpspositions.net export). The timetables of the Budavári Sikló, the Zugligeti Libegő, the Dunakeszi–Horány and Pásztor (Szentendre–Szigetmonostor) ferries and the Üröm minibus are Máté Gyöngyösi's feeds (CC BY 4.0). Several city feeds are fetched through menetbrand. Train routes matched to the rails with pfaedle on OpenStreetMap data (© OpenStreetMap contributors, ODbL).

License

MIT, see LICENSE.

About

Home Assistant dashboard card for BKK, MÁV and Volán departures between two stops

Topics

bkkbudapesthome-assistanthomeassistanthungarylovelace-custom-cardmavpublic-transportvolan

Resources

Readme
MIT license
Activity

Stars

3 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.