make-all / metlink-nz

Metlink Wellington Public Transport integration for Home Assistant
Apache License 2.0
10 stars 4 forks source link

API Key provided is not valid #1

Closed Me-sudoer closed 3 years ago

Me-sudoer commented 3 years ago

Hi there,

Thank you for writing this integration. I have the below issue after pasting in my valid API key using the UI integration. Error: "The api key provided is not valid."

When I configure the integration in my sensor.yaml; results are unavailable (I configure my sensors in a sperate file).

Sensor.yaml

make-all commented 3 years ago

Metlink has this strange setup where in addition to signing up for a developer key, you need to subscribe to the API you want (strange, since they only offer one API).

If you go to https://opendata.metlink.org.nz/apis do you have the option to "Subscribe" there?

Me-sudoer commented 3 years ago

Hey there,

I have logged and there are no API's published and no option to subscribe. However, I do have the option to "Get" various gtfs datasets.. Are there particular datasets that I should choose to get?

Thanks,

On Sat, 19 Jun 2021 at 12:30, Jason Rumney @.***> wrote:

Metlink has this strange setup where in addition to signing up for a developer key, you need to subscribe to the API you want (strange, since they only offer one API).

If you go to https://opendata.metlink.org.nz/apis do you have the option to "Subscribe" there?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/make-all/metlink-nz/issues/1#issuecomment-864329818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJITBOJCYXJKCTRJLCKM263TTPQLLANCNFSM466ONU6A .

Me-sudoer commented 3 years ago

Hi again,

I browsed the site again, following the links on the site rather than the direct URL; doing it this way gave me the option to subscribe.

Everything is working now. Thanks!

On Sat, 19 Jun 2021 at 12:30, Jason Rumney @.***> wrote:

Metlink has this strange setup where in addition to signing up for a developer key, you need to subscribe to the API you want (strange, since they only offer one API).

If you go to https://opendata.metlink.org.nz/apis do you have the option to "Subscribe" there?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/make-all/metlink-nz/issues/1#issuecomment-864329818, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJITBOJCYXJKCTRJLCKM263TTPQLLANCNFSM466ONU6A .

make-all commented 3 years ago

Thanks. I've added a hint to that error message, as I think a lot of people will miss this.