qistoph/MMM-nstreinen

Error fetching NS info: invalid API key

Closed this issue · 5 comments

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

Same here, api key works in other platform.

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.

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

Problem found, wrong api key. Thanks!