Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/silentbil/silent-bus
Bus card for homeassistant - Israel
https://github.com/silentbil/silent-bus
bus card frontend hacs homeassistant lovelace
Last synced: 5 days ago
JSON representation
Bus card for homeassistant - Israel
- Host: GitHub
- URL: https://github.com/silentbil/silent-bus
- Owner: silentbil
- License: mit
- Created: 2023-04-28T14:13:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-20T08:07:02.000Z (17 days ago)
- Last Synced: 2024-12-20T09:20:19.901Z (17 days ago)
- Topics: bus, card, frontend, hacs, homeassistant, lovelace
- Homepage:
- Size: 171 KB
- Stars: 26
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bus card for home assistant - Israel
show real time bus and train informationIf you like my hard work and want to help with server cost, consider buying me a coffee :)
## Demo
![silentbuss1](https://user-images.githubusercontent.com/10948399/235174037-5a644b38-eece-475d-b9bf-6b88140e622f.png)
![img.png](light.png)
![image](https://github.com/silentbil/silent-bus/assets/10948399/8a05ab7c-a5ef-4b18-a735-27b5a07d5032)
## HACS Installation (Preferred option with updates)
## HACS manual Installation
- In the HACS Frontend, click the 3 dots in the upper right
- Click 'Add Custom Repository'
- Fill in the repo url https://github.com/silentbil/silent-bus and choose 'Lovelace' category.
- Install the custom card (should now appear in the Frontend)
- HACS should automatically add the following to your resources:
```
url: /hacsfiles/silent-bus/silent-bus.js
type: Javascript Module
```## Adding the Card to the Dashboard
Add a Manual card to the dashboard and enter the YAML to configure it as desired.### Options - bus
| Name | Description | Default | Required | Values |
| --- | --- | --- | --- | --- |
| `station` | station number | None | Yes | number |
| `busLines` | bus lines | None | Yes | Array of numbers |### Options - train
| Name | Description | Default | Required | Values |
| --- | --- | --- | --- | --- |
| `fromStation` | station number | None | Yes | number |
| `toStation` | station number | None | Yes | number |
| `isTrain` | train card | false | Yes | boolean |## Find your station number - train
* Go to: [https://xn--4dbclabp0e.co.il/searchStations](https://github.com/silentbil/silent-bus/blob/main/train-stations) and search for your station
## Find your station number - bus
* Go to: https://xn--4dbclabp0e.co.il/searchStations and search for your station
* Copy your station number
![image](https://user-images.githubusercontent.com/10948399/235173621-064ea677-024d-4741-ac97-7d94335edee9.png)## Example - train
```
type: custom:silent-bus
isTrain: true
fromStation: 3600
toStation: 3700
```## Examples - bus
```
type: custom:silent-bus
station: 24068
busLines:
- 249
- 40
- 605
```## Examples - light train (kala)
```
type: custom:silent-bus
station: 20719
busLines:
- 1
- 3
```