ryck / MMM-TFL-Arrivals

MIT License
5 stars 2 forks source link

TFL API no longer has APP_ID #5

Open Elite230 opened 1 month ago

Elite230 commented 1 month ago

1) https://techforum.tfl.gov.uk/t/where-to-find-app-id/1640 FIX: Remove any API KEY requirements.

2) My magic mirror doesn't load this module MMM-TFL-Arrivals or any modules mentioned after it in the config. I get no errors.

Elite230 commented 1 month ago

I've played around with the code, and so far am unable to get the other modules to load. The code is definitely stuck in some sort of loop...

Elite230 commented 1 month ago

I think I've fixed problem 2, I think I had the incorrect naptan code. Here I have made a guide to help people find a NaPTAN ID by the station / stop name. Tell me if this helped you.

How to find a NaPTAN code / ID:

  1. go to https://api.tfl.gov.uk/StopPoint/Search/{name} Replace {name} with a word from the name of the station. image

  2. search the page for the desired station. (enable Auto-format for easier readability) image

  3. find and copy the ID just above the name of the station. image

This is not the NaPTAN ID

  1. go to https://api.tfl.gov.uk/StopPoint/{the ID you just copied} image
  2. Find the stop/station you are looking for. Just above the "indicator" you should see the NaPTAN image

Voila!

This is the fastest method I found, but I'm sure there are even faster methods. If you have any questions, contact me.

Elite230 commented 1 month ago

Tried it on my raspberry pi, and it still has the same problem. Still no errors.