The addon runs an instance of my TFI-GTFS project, which queries the Transport for Ireland servers over their GTFS API (a pretty complex API optimised for bulk-syncing of transport fleet data to Google Maps) and exposes real-time arrival information for specific stops over a simple REST API.
In addition, the addon queries that REST API and populates Home Assistant entities with the results.
Iâve also included a custom card to display upcoming real-time arrivals for a specific transport stop, which is pictured above.
Hi,
First of all I think this is a brilliant idea and I would really like to integrate it in my installation. I have a problem though, which is that I have a Core installation in a docker container. Would someone be able to help me creating a docker version of this integration? I am pretty new in home assistant and docker and I am still learning.
This addon is basically an extension of my TFI-GTFS project, which you can run as a Docker container. The readme file has instructions on how to do that.
Once you have that running, youâll have a server with a REST API that can be queried, but no UI. For the UI, you can follow the instructions in the addonreadme to install the tfi-gtfs-card.js custom card. When you add this card to a dashboard you should provide the URL to the docker container as the âAPI URLâ and a stop number to query the docker container with. The card configuration looks like this:
The combination of an API URL and a stop number tells the custom card to call the docker container every ârefresh intervalâ seconds for new info. Note: You wonât be possible to select anything in the âStop Entitiesâ dropdown because you will not be running the addon (which is responsible for populating the Home Assistant entities with arrival information).
If anyone is interested, it wouldnât be too hard to create a version of the addon that accepts a URL to an external Docker container instead of running its own internal instances of the TFI-GTFS server, but which otherwise works the same way and populates HA entities. I might create this myself if there is interest and if I can find the time. But in the meantime, the steps above should work for you.
@lazlo66x I encountered this problem myself tonight and fixed it. Something seems to have changed in the base Home Assistant addon image that required me to change how I installed python dependencies. It seems to be working for me now, if you care to try again.
Thank you so much for creating this Sean, itâs been a pain to get the Dublin Bus working for the past year and now I can finally integrate it in my Dashboard. All set up is perfect and easy to follow!