qistoph / MMM-nstreinen

MagicMirror² module to show Dutch train information
12 stars 4 forks source link

Error when specifying the arrival station: "Error fetching NS info: invalid API key" #25

Closed RaspNewby closed 4 years ago

RaspNewby commented 4 years ago

Using only a departure station (without arrival station) works fine. Whenever I specify the arrival station, I get the "Error fetching NS info: invalid API key". Am I doing something wrong? Are other people facing the same issue?

{ module: 'nstreinen', position: 'top_right', header: 'Treinen', config: { apiKey:'<MyKey>', fromStation: 'GN', toStation: 'UT' } },

qistoph commented 4 years ago

Could you check which API subscription (abonnement) you're using?

This is available on the NS API website: https://apiportal.ns.nl/developer

The old one "Public-Travel-Information-API" should no longer be used, you'll need to use an API key for "Ns-App". This can be requested at https://apiportal.ns.nl/products/NsApp.

RaspNewby commented 4 years ago

That was definitely the problem. Thanks man!