Skip to content
Lovelace card for listing departures from Rejseplanen sensors
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
dist
src
.eslintrc.json Prepare for publication Aug 10, 2019
.gitignore
CHANGELOG.md
LICENSE Prepare for publication Aug 10, 2019
README.md 1.3.0 Sep 11, 2019
info.md Add info.md Aug 10, 2019
package-lock.json
package.json
rejseplanen-card-example.png Add example image Jul 26, 2019
rollup.config.js Prepare for publication Aug 10, 2019

README.md

rejseplanen-card

Lovelace card for listing departures from Rejseplanen sensors

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

Add "DarkFox/rejseplanen-card" as a custom repository with the type "plugin" in HACS Settings, then click install.

Step 2

Link rejseplanen-card inside you ui-lovelace.yaml.

resources:
  - url: /community_plugin/rejseplanen-card/rejseplanen-card.js
    type: js

Manual installation

Step 1

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

Example:

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

Step 2

Link rejseplanen-card inside you ui-lovelace.yaml.

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

Configuration

Add a custom element in your ui-lovelace.yaml

Example:

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

Credits

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

You can’t perform that action at this time.