Skip to content

Releases: genericJE/ha-weilSieDichLieben

v1.0.4 — Hide vehicle radar setting and the desktop header counterpart

Choose a tag to compare

@genericJE genericJE released this 17 May 18:27

Added: A new Hide vehicle radar card option that turns the vehicle radar off across every layout. When it is on, the radar icons disappear from the mobile group headers, the mobile flat header, and the desktop departure name cells, and the click targets that open the map go away with them so nothing dangles. The visual editor exposes it as a toggle next to the existing hide departure column option.

Also fills in a gap left by v1.0.3: on desktop with the departure column hidden, the radar had no entry point either. This release drops a matching radar icon into the desktop time column header on the left of Abfahrt, sharing the same brightness(0) treatment so it reads in plain black on the lightGray strip. Clicking it opens the existing antd Popover with the RadarMap inside.

Implementation: bumps the weilSieDichLieben submodule to pick up 39c1b75, open upstream as NikBLN/weilSieDichLieben#54.

v1.0.3 — Mobile radar icon in the time column header

Choose a tag to compare

@genericJE genericJE released this 17 May 18:01

Added: With the mobile flat view from v1.0.2, there was no longer a per group strip to click on for the vehicle radar. This release puts the radar icon back into the mobile time column header on the left of Abfahrt so the radar modal stays reachable. The icon picks up a brightness(0) filter so it reads in plain black against the lightGray header strip and matches the column labels next to it.

Implementation: bumps the weilSieDichLieben submodule to pick up 6b5a2d1, open upstream as NikBLN/weilSieDichLieben#54.

v1.0.2 — Skip mobile grouping when departure column is hidden

Choose a tag to compare

@genericJE genericJE released this 17 May 17:53

Fixed: On mobile, the per departure group header strip (Abfahrt: <station> / Departure: <station>) kept showing even with the Hide departure column setting on. Since that strip carries the same departure name the setting is meant to remove, the mobile and desktop layouts disagreed in that mode. The mobile view now drops the grouping entirely when the setting is on and falls back to a flat sorted list, matching the desktop behavior.

Implementation: bumps the weilSieDichLieben submodule to pick up 0c799bb, which is also open upstream as NikBLN/weilSieDichLieben#53.

Also refreshes the README to use the current dashboard terminology in place of Lovelace.

v1.0.1 — fix OSM tile 403 in the radar popover

Choose a tag to compare

@genericJE genericJE released this 11 May 05:27

Fixed: The leaflet radar popover failed to load tiles in HA dashboards, displaying the OSM "Access blocked — Referer is required" notice. The card now sends a referrer on tile requests so OpenStreetMap's policy is satisfied.

Implementation: bumps the weilSieDichLieben submodule to pick up 5094c62 which adds referrerPolicy="strict-origin-when-cross-origin" to the TileLayer.

No other changes from v1.0.0.

v1.0.0

Choose a tag to compare

@genericJE genericJE released this 11 May 05:17

A Home Assistant Lovelace card that embeds the weilSieDichLieben BVG (Berlin public transport) departure board, with the upstream kiosk aesthetic intact: DotMatrix bitmap font, scrolling marquee remarks, orange-on-black, and a click-through leaflet vehicle radar map.

Preview

Install

Via HACS:

  1. HACS → Frontend → ⋯ → Custom repositories
  2. Add https://github.com/genericJE/ha-weilSieDichLieben as type Lovelace
  3. Install weilSieDichLieben Card
  4. Add the card to a dashboard

The visual editor lets you search for BVG stations by name and toggle transport modes per station. For kiosk-style fullscreen, set the view to panel: true.

Configuration

type: custom:weil-sie-dich-lieben-card
stations:
  - id: "900100003"
    value: "S+U Alexanderplatz"
    suburban: true       # S-Bahn
    subway: true         # U-Bahn
    tram: true
    bus: true
    ferry: false
    express: false       # IC/ICE
    regional: false      # RB/RE
    when: 0              # min minutes ahead
    results: 6           # departures shown
language: de             # de | en
fontSize: 16
remarksVisibility: true
standardRemarksVisibility: true
hideDepartureCol: false

Highlights

  • Mounts the upstream React DepartureDisplay via @r2wc/react-to-web-component
  • Visual config editor with debounced BVG station search
  • DotMatrix font bundled inline as a data URI
  • antd, leaflet, and react-fast-marquee styles scoped into the React shadow root via StyleProvider + a MutationObserver mirror, so the upstream's flex columns, scrolling marquees, and 520px floating radar popover all render correctly inside HA's dashboard tree
  • HA Lovelace YAML is the single source of truth — no cookies, no in-card settings drawer
  • Live preview in the "Add card" picker

Bundle

Single ES module weil-sie-dich-lieben-card.js, ~720KB minified (includes React, antd, leaflet, the upstream React source, and the DotMatrix font binary). Loaded once per HA frontend session.

License

MIT. Derived from weilSieDichLieben by Nikolas Tsombanis.

v0.2.7 — header wrap fix from upstream

Choose a tag to compare

@genericJE genericJE released this 11 May 05:12

Cherry-picks the upstream header-wrap fix (0aee45f) into the submodule. The 'Abfahrt in' / 'Departure In' header column now anchors its text to the column's right edge via absolute positioning, so long translations overflow leftward into adjacent empty space instead of wrapping to a second line.

Replaces the margin-right workaround from v0.2.6.

No other functional changes from v0.2.6.

v0.2.6 — header margin instead of padding

Choose a tag to compare

@genericJE genericJE released this 10 May 21:28

Replaces the right padding from v0.2.5 with margin so the lightGray header bar itself shrinks instead of just shifting its text inward — leaves a visible gap between the bar and the rounded corner in non-panel views.

No other functional changes from v0.2.5.

v0.2.5 — header right padding for rounded corners

Choose a tag to compare

@genericJE genericJE released this 10 May 21:23

Adds a touch of right padding to the header row that scales with the card's border-radius — keeps 'Abfahrt in' clear of the rounded corner in non-panel views (sections/masonry). Panel-mode spacing is unchanged.

No other functional changes from v0.2.4.

v0.2.4 — picker thumbnail tuning

Choose a tag to compare

@genericJE genericJE released this 10 May 18:13

Tunes the stub config so the dashboard "Add card" picker thumbnail fits cleanly: 4 results instead of 6, fontSize 12 instead of 16. Affects only the initial config; users change both via the visual editor.

No other functional changes from v0.2.3.

v0.2.3 — live preview in the card picker

Choose a tag to compare

@genericJE genericJE released this 10 May 18:06

Card picker ("Add card" dialog) now shows a live preview with real Alexanderplatz departures instead of an empty placeholder. The default stub config seeds an S+U Alexanderplatz station with the standard mode toggles; users can change it via the visual editor on first add.

No other functional changes from v0.2.2.