Skip to content

A card giving richer public transit display using NextBus sensors.

License

Notifications You must be signed in to change notification settings

dcramer/lovelace-nextbus-card

Repository files navigation

NextBus Card

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.

Screenshot

[![GitHub Release][releases-shield]][releases] ![License][license-shield] hacs_badge

![Project Maintenance][maintenance-shield] [![GitHub Activity][commits-shield]][commits]

Options

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

Developing with [devcontainer][devcontainer]

  1. Fork and clone the repository.
  2. Open the [devcontainer][devcontainer] and run npm start when it's ready.
  3. The compiled .js file will be accessible on http://127.0.0.1:5000/nextbus-card.js.
  4. 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.

Bonus

If you need a fresh test instance you can install a fresh Home Assistant instance inside the devcontainer as well.

  1. Run the command dc start.
  2. Home Assistant will install and will eventually be running on port 9123