Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Key provided is not valid #1

Closed
Me-sudoer opened this issue Jun 18, 2021 · 4 comments
Closed

API Key provided is not valid #1

Me-sudoer opened this issue Jun 18, 2021 · 4 comments

Comments

@Me-sudoer
Copy link

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

  • platform: metlink
    api_key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    stops:
    • stop_id: 3244
      route: CP
    • stop_id: 5008
      destination: 3244
      num_departures: 3
@make-all
Copy link
Owner

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
Copy link
Author

Me-sudoer commented Jun 19, 2021 via email

@Me-sudoer
Copy link
Author

Me-sudoer commented Jun 19, 2021 via email

@make-all
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants