Skip to content

Latest commit

 

History

History
74 lines (47 loc) · 2.27 KB

README.md

File metadata and controls

74 lines (47 loc) · 2.27 KB

rejseplanen-stog-card

Lovelace card for listing departures from Rejseplanen sensors, in the style of S-Tog departure boards.

This works with the Rejseplanen sensor included in Home Assistant.

I've tried to add as many styles for different transit types and routes as I could find, but please let me know if any are missing.

Example

Installation

HACS

Step 1

Search for Rejseplanen S-Tog Card in the "Frontend" tab, then click install.

Step 2

Link rejseplanen-stog-card inside your configuration:

resources:
  url: /hacsfiles/rejseplanen-stog-card/rejseplanen-stog-card.js
  type: js

Manual installation

Step 1

Install rejseplanen-stog-card by copying rejseplanen-stog-card.js from this repo to <config directory>/www/rejseplanen-stog-card.js of your Home Assistant instance.

Example:

wget https://github.com/DarkFox/rejseplanen-stog-card/raw/main/rejseplanen-stog-card.js
mv rejseplanen-stog-card.js ~/.homeassistant/www/

Step 2

Link rejseplanen-stog-card inside your configuration.

resources:
  - url: /local/rejseplanen-stog-card.js?v=0
    type: js

Configuration

Add a custom element in your ui-lovelace.yaml

Name Type Default Supported options Description
type string Required custom:rejseplanen-stog-card Type of the card
entity string Required sensor.rejseplanen entity_id
max_entries number optional any number Limit number of departures shown
show_scheduled_time boolean false true false

Example:

      - type: custom:rejseplanen-stog-card
        entity: sensor.rejseplanen
        max_entries: 5 # Optional

Credits

Based on cgtobi and DavidMStraub's work: https://github.com/cgtobi/rmv-card