A card which displays multiple public transit routes using the NextBus sensors. This improves on a generic entity display making it appear more akin to a mobile phone widget, giving you more than just the next route's countdown.
[![GitHub Release][releases-shield]][releases] ![License][license-shield]
![Project Maintenance][maintenance-shield] [![GitHub Activity][commits-shield]][commits]
Name | Type | Requirement | Description | Default |
---|---|---|---|---|
type | string | Required | custom:nextbus-card |
|
name | string | Optional | Card name | Public Transit |
entities | string[] | Optional | List of nextbus entities | none |
- Fork and clone the repository.
- Open the [devcontainer][devcontainer] and run
npm start
when it's ready. - The compiled
.js
file will be accessible onhttp://127.0.0.1:5000/nextbus-card.js
. - On a running Home Assistant installation add this to your Lovelace
resources:
- url: 'http://127.0.0.1:5000/nextbus-card.js'
type: module
Change "127.0.0.1" to the IP of your development machine.
If you need a fresh test instance you can install a fresh Home Assistant instance inside the devcontainer as well.
- Run the command
dc start
. - Home Assistant will install and will eventually be running on port
9123