vingerha / gtfs2

Support GTFS in Home Assistant GUI-only
https://github.com/vingerha/gtfs2
MIT License
79 stars 7 forks source link

The link to the dutch gtfs is working, but the data inside is not. When i try to load the data in the integration, it' almost instand done and i can't use the integration with this data. Maybe i'm doing it wrong, if so can you help me or explain to me what file i have to link or what url i have to past in the integration to have it working propperly? Thanks in advance. #37

Closed Sarnog closed 6 months ago

Sarnog commented 6 months ago

Describe the bug A clear and concise description of what the bug is.

Steps/data to reproduce the behavior, e.g.

Release used Which gtfs2 release and HA type (HAOS/Container)

Additional Please add logs if helpfull

vingerha commented 6 months ago

tbh, no clue what you did via the way you describe it..... please let me know step by step what you did and where it stops working. Please also answer all the other questions I asked when creating the topic, I am not a clairvoyant :) Do note the unpacking takes 2-3 hours, see the table here https://github.com/vingerha/gtfs2/wiki

Sarnog commented 6 months ago

I installed the intergration via hacs. After the reboot of home assistant i went to the integrations and started the setup of the integration.

First i clicked "setup a new data source". Via the link in your "docu" i went to the Dutch website: https://gtfs.ovapi.nl/nl/

I selelected URL, pasted the url in the zip location, gave it a name and click send.

This didn't work, as soon as i went back to the integration and clicked on "create schedule on start/end stops", i get an error: "Data collection issue: ZIP file not existing in the correct folder, note that it is capital-sensitive"

I also tried to link to the specific files in the link (i tried all of them), but i always get the same error.

The log from home assistant reports:

Logger: custom_components.gtfs2.gtfs_helper
Bron: custom_components/gtfs2/gtfs_helper.py:393
integratie: GTFS 2 (General Transit Feed Specification) (documentation, issues)
First occurred: 23:07:28 (2 gebeurtenissen)
Laatst gelogd: 23:07:28

The given GTFS zipfile was not found
vingerha commented 6 months ago

https://gtfs.ovapi.nl/nl/ is not the link to the zip file, it is a link to multiple sources for gtfs, use it in a browser and you will find out which file to choose, i.e. .... gtfs.ovapi.nl/nl/gtfs-nl.zip. The table does not contain direct links as there are many other like realtime/vehicle/alerts and I chose to not post indiv. url

Sarnog commented 6 months ago

https://gtfs.ovapi.nl/nl/ is not the link to the zip file, it is a link to multiple sources for gtfs, use it in a browser and you will find out which file to choose, i.e. .... gtfs.ovapi.nl/nl/gtfs-nl.zip. The table does not contain direct links as there are many other like realtime/vehicle/alerts and I chose to not post indiv. url

So if i understand you correctly, the gtfs.ovapi.nl/nl/gtfs-nl.zip file is not working eighter out of the box? I tried it and it gave me the same result as i described above. Is there any way to make it work? And if so, do you know where i can find some documentation about how to fix it? I understand you don't want to dive in it, but maybe you know some good existing info about it? Thanks again.

vingerha commented 6 months ago

I have no clue how you came to this conclusion, I told you that the link you sent was not pointing to the zip and I assumed you to use a url-format ... so do use :) https://gtfs.ovapi.nl/nl/gtfs-nl.zip

Sarnog commented 6 months ago

I have no clue how you came to this conclusion, I told you that the link you sent was not pointing to the zip and I assumed you to use a url-format ... so do use :) https://gtfs.ovapi.nl/nl/gtfs-nl.zip

Sorry English is not primary language, so i misunderstand. Thanks for the explaination, the integration is installing the data now. Thanks again!