https://github.com/dcramer/lovelace-nextbus-card
A card giving richer public transit display using NextBus sensors.
https://github.com/dcramer/lovelace-nextbus-card
hacs homeassistant lovelace-custom-card nextbus public-transit
Last synced: 3 months ago
JSON representation
A card giving richer public transit display using NextBus sensors.
- Host: GitHub
- URL: https://github.com/dcramer/lovelace-nextbus-card
- Owner: dcramer
- License: mit
- Created: 2019-12-31T20:54:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T13:48:39.000Z (over 2 years ago)
- Last Synced: 2025-02-06T11:18:56.386Z (4 months ago)
- Topics: hacs, homeassistant, lovelace-custom-card, nextbus, public-transit
- Language: TypeScript
- Homepage:
- Size: 264 KB
- Stars: 7
- Watchers: 4
- Forks: 4
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NextBus Card
A card which displays multiple public transit routes using the [NextBus sensors](https://www.home-assistant.io/integrations/nextbus/). 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]](LICENSE.md)
[](https://github.com/custom-components/hacs)![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:````yaml
- 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`