Skip to content

I have a train to catch in the morning, am I going to make it? Do I need to run? Can I chill a bit?

License

Notifications You must be signed in to change notification settings

ijmccallum/home-assistant-morning-train

Repository files navigation

Home Assistant Morning Train

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.

How to add it to your instance Home Assistant

How to use it

How to contribute

Get an overview of the project and the tech used. Fork, update, PR back in.

The tech

Frontend

  • 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).

Build tools

  • Rollup
  • Tailwind
  • TypeScript
  • Biome
  • Node

Dev set up locally.

  • 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

VS Code plugins, @recommended

Troubleshooting

Credits

License

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.

TODOs

  1. time config - Set different travel times for different (variable) platforms
  2. Tidy width in the UI - got text wrapping for delayed trains
  3. Add setting up different train stations
  4. Full local dev process - get it running!
    • Set up entities in the ./.hass-dev/packages folder
  5. docs - update this readme
    • Add screenshots
  6. Guidance for setting up the national rail integraiton (also move the national rail integration into this repo so it's an all in one?)
  7. Easier HA install process for people looking to use this
  8. 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

About

I have a train to catch in the morning, am I going to make it? Do I need to run? Can I chill a bit?

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published