MMM-PublicTransportHafas
MMM-PublicTransportHafas copied to clipboard
query_station.mjs
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:
-
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.
-
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.
-
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