Skip to content

al-wi/rmv-card

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Custom card for the RMV component.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%