This is built against the UK National Rail API
Very specific use case this one - I have a train to catch in the morning and I want to know if I'm going to make it, if I need to run for it, if I can casually wander over, or can I chill a bit.
Get an overview of the project and the tech used. Fork, update, PR back in.
- Lit for rendering out the UI componets of both the card itself and the card editor view. (The `html`` bit)
- Home Assistant frontend, goes without saying really. The HA front end defines some web components that have been used in the editr view for this card. (The
<ha-textfield>
bit). - Material Web this is the UI framework that HA uses, (eg
<ha-textfield>
extends a Material Web component).
- Rollup
- Tailwind
- TypeScript
- Biome
- Node
- Install Node
- Install Git
- Have VS Code (or your preferred editor) (but if you do go with VS Code, there are some recommended plugins in
./.vscode
) npm i
- https://github.com/grillp/ha-custom-card-rollup-ts-lit-starter - Starter project for custom cards
- https://github.com/jfparis/homeassistant_nationalrail - National Rail sensor
- https://lite.realtime.nationalrail.co.uk/OpenLDBWS/ - National Rail API
This project uses the MIT License, reason being the ha-custom-card-rollup-ts-lit-starter project I based it on uses the MIT License.
- time config - Set different travel times for different (variable) platforms
- Tidy width in the UI - got text wrapping for delayed trains
- Add setting up different train stations
- Full local dev process - get it running!
- Set up entities in the ./.hass-dev/packages folder
- docs - update this readme
- Add screenshots
- Guidance for setting up the national rail integraiton (also move the national rail integration into this repo so it's an all in one?)
- Easier HA install process for people looking to use this
- Add configuration options: pick train stations
Tabs! Galaxy Tab A9 - £169 Lenovo Tab M10 (3rd Gen) - £180 <<<< £146.99
docker run -d
--name grampsweb_celery
--restart always
-p 8091:5000
-e GRAMPSWEB_TREE="Gramps Web"
-e GRAMPSWEB_CELERY_CONFIG__broker_url=redis://grampsweb_redis:6379/0
-e GRAMPSWEB_CELERY_CONFIG__result_backend=redis://grampsweb_redis:6379/0
-e GRAMPSWEB_RATELIMIT_STORAGE_URI=redis://grampsweb_redis:6379/1
-v /DATA/AppData/gramps/gramps_users:/app/users
-v /DATA/AppData/gramps/gramps_index:/app/indexdir
-v /DATA/AppData/gramps/gramps_thumb_cache:/app/thumbnail_cache
-v /DATA/AppData/gramps/gramps_cache:/app/cache
-v /DATA/AppData/gramps/gramps_secret:/app/secret
-v /DATA/AppData/gramps/gramps_db:/root/.gramps/grampsdb
-v /DATA/AppData/gramps/gramps_media:/app/media
-v /DATA/AppData/gramps/gramps_tmp:/tmp
--link grampsweb_redis
ghcr.io/gramps-project/grampsweb:latest