raywo / MMM-PublicTransportHafas

MMM-PublicTransportHafas is a module for the MagicMirror project by Michael Teeuw.
MIT License
30 stars 13 forks source link

query_station.mjs #86

Open darioandreella opened 4 months ago

darioandreella commented 4 months ago

Hey Ray,

I am enjoying the newly installed MMM-PublicTransportHafas you wrote, it looks and works great! I live in Denmark and I could adapt it to my needs with satisfying results.

I just wanted to reach out to help with a couple of minor issues:

  1. The script to obtain the StationIDs is, at least in my case: "node ./convenience/query_stations.mjs" and not ".js" as on the project's page. Any ideas about why? The error makes you obviously go and check, and it's trivial to fix, but still... better to have it right.

  2. If I look for the 2 Danish little stations I need with that script, I get them wrong (a different ID that gives no results). Now, I don't know if it is because it's not up to date or what, but I had to go and fish the StationsID elsewhere to get the module working. In my case, this old MagicMirror Module has them listed with their correct IDs.

  3. Do you have any idea about where to get to the source for these station IDs? I suspect that many stations have multiple IDs, for example one for the train service, one for the busses etc. And proof for this is, that for my station I can only see trains, while I know that there are busses too.

Thanks for what you did, nice job!!

All the best and greetings! Dario

KristjanESPERANTO commented 4 months ago

Unfortunately, the raywo no longer responds to issues here. Please try my fork and if you have problems with it, create an issue there.

darioandreella commented 4 months ago

Thanks @KristjanESPERANTO for point me in the right direction! That's unfortunate, it should be clarified when a project is not maintained anymore, well unless a disaster has happened.

Already with your version of the documentation I could understand at least in part what the problem was.

I used the profile "rejseplanen" for the Danish transportation instead of the "db" and that was correct to do, but I had to get those IDs right! Now that I got the point, I could get even this module to work correctly, but I already happily switched to yours.

See you there! And, again, thanks a lot! Dario