Skip to content
Custom card for the RMV component.
JavaScript
Branch: master
Clone or download
Latest commit f3c4622 Oct 20, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Aug 27, 2018
README.md Add link to platform Oct 19, 2018
example.png Add example image. Aug 27, 2018
rmv-card.js Rename rev-card.js to rmv-card.js Aug 27, 2018

README.md

rmv-card

This card generates a simple departure card for the RMV public transport service.

example

Installation

Step 1

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

Example:

wget https://github.com/cgtobi/rmv-card/raw/master/rmv-card.js
mv list-card.js ~/.homeassistant/www/

Step 2

Set up the rmv transport sensor.

Example:

sensor:
  - platform: rmvtransport
    next_departure:
    - station: 3000010
      time_offset: 5
      destinations:
        - 'Frankfurt (Main) Flughafen Regionalbahnhof'
        - 'Frankfurt (Main) Stadion'
      products:
        - 'RB'
        - 'RE'
        - 'Bus'
        - 'S'

Step 3

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

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

Step 4

Add a custom element in your ui-lovelace.yaml

Example:

      - type: "custom:rmv-card"
        entity:
          - sensor.frankfurt_main_hauptbahnhof

Credits

Thanks to DavidMStraub for all his initial work.

You can’t perform that action at this time.