This Lovelace custom card displays Translink data from the public api for a given stop and route.
This is designed to work with the translink sensor: https://github.com/math0ne/translink_sensor
-
Download and copy 'translink-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/translink-card.js
type: js
- Go to the community tab of your home assistant installation
- Click settings
- Add "https://github.com/math0ne/translink-card" with the type Plugin
- Click Save
Add the following lines to your ui-lovelace.yaml (entity should be the ids of translink sensors):
cards:
- type: "custom:translink-card"
entities:
- entity: sensor.translink_next_bus
- entity: sensor.translink_next_bus_2