This Lovelace custom card displays Bus data from the public api for a given stop and route.
This is designed to work with the translink sensor: https://github.com/wymanhns/HKBUS-Sensor
-
Download and copy 'bus-card.js' into your 'config/www' directory.
-
Add a reference to 'mini-graph-card-bundle.js' inside your 'ui-lovelace.yaml' or at the top of the raw config editor UI:
resources:
- url: /local/bus-card.js
type: js
- Go to the community tab of your home assistant installation
- Click settings
- Add "https://github.com/wymanhns/bus-card" with the type Lovelace
- Click Save
Add the following lines to your ui-lovelace.yaml (entity should be the ids of translink sensors):
cards:
- type: custom:bus-card
entities:
- entity: sensor.hk_bus_43a
- entity: sensor.hk_bus_248m