qistoph / MMM-nstreinen

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

Error fetching NS info: invalid API key #29

Closed MikieK-DH closed 4 years ago

MikieK-DH commented 4 years ago

Hi,

Can you please help me? The screen keeps saying "Error fetching NS info: invalid API key"

I've got an API-key for "Public-Travel-Information" on https://apiportal.ns.nl/. Tried both primaire and secondaire key and also generated new ones. Do I have the wrong API?

The code is the one from the readme file:

` { module: "nstreinen" , position: " top_right" , header: " Treinen vanaf Schiphol Airport" , config: { apiKey: "xxxxxxxxxxxxxxxxxxxxxx", fromStation: "SHL" } },

Thank you, Mike

Willempy commented 4 years ago

Same here, api key works in other platform.

qistoph commented 4 years ago

You're using the old API: image

You need an API key for this one: https://apiportal.ns.nl/Products/NsApp

It should show up as "Ns-App" in your profile: image

Feel free to re-open if it still won't work.

Willempy commented 4 years ago

My new api, on the new portal, was created yesterday.

Willempy commented 4 years ago

image

Willempy commented 4 years ago

Problem found, wrong api key. Thanks!