Skip to content

dhanani94/mbta-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mbta-card

This card shows predictions for a MBTA prediction sensor.

example

Installation

The custom card code is located here. Copying the mbta-card.js file into the <config directory>/www/mbta-card.js directory (alongside the configuration.yml file) for users using HASSIO.

Configuration

Link mbta-card inside you . To enable this card, add the following lines to your ui-lovelace.yaml file:

resources:
  - type: module
    url: /local/mbta-card.js

Set up the visualisations for the MBTA sensors. (the sensors must already be set up)

example ui-lovelace.yaml card:

 - entities:
      - entity: sensor.mbta_jfk_umass
        limit: 3
        offset_minutes: 7
      - entity: sensor.mbta_savin_hill
        limit: 2
        offset_minutes: 6
      - entity: sensor.mbta_south_station
        limit: 2
        offset_minutes: 3
    icon: /local/imgs/MBTA.png
    theme: default
    type: 'custom:mbta-card'

Configuration Variables

Card

icon

(path) (Required) location of the T logo

Entities

entity

(string) (Required) the entity name of the sensor

offset_minutes

(int) (Required) offsets the minimum minutes remaining before arrival

limit

(int) (Required) the maximum number of predictions to display

Future Plans

inspirations

About

Custom card for the MBTA predictions component.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published