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

[BUG] Weather Widget and OpenWeather API Key #803

Closed
servebeer opened this issue Jul 17, 2022 · 4 comments
Closed

[BUG] Weather Widget and OpenWeather API Key #803

servebeer opened this issue Jul 17, 2022 · 4 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@servebeer
Copy link

servebeer commented Jul 17, 2022

Environment

Self-Hosted (Docker)

System

Unraid 6.10.3, Edge Version 103.0.1264.49 (Official build) (64-bit)

Version

No response

Describe the problem

I am trying to use the Weather Widget and I keep getting "Unable to fetch data" errors. I have verified on the OpenWeatherMap site that my account is active. I even tried generating a new key. If I go into dev mode on my browser, I am seeing this:

"Missing API key for OpenWeatherMap This is likely not an issue with Dashy, but rather your configuration. If you think it is a bug, please open a ticket on GitHub: https://git.io/JukXk.

The command causing the issue appears to be: "GET https://api.openweathermap.org/data/2.5/weather?q=Decatur,%20US&appid=undefined&units=imperial 401 (Unauthorized)"

I don't see the api key being passed. The config for the widget looks like this:

  • name: Local Weather
    widgets:
    - type: weather
    options:
    apikey: xxxxxxxxxxxx
    city: Decatur, US
    units: imperial
    hideDetails: false
    id: 0_1243_weather

I see some previous tickets that look like this, but their issues where resolved. Issue #789 looks almost exactly like my issue, except that he had his "options" field pointed to null but I do not. I verified that my config, matches the one provided in that case as well.

Any insight will be greatly appreciated!
Jon

Screenshot 2022-07-16 224459
n

Additional info

No response

Please tick the boxes

GitHub is where people build software. More than 83 million people use GitHub to discover, fork, and contribute to over 200 million projects.
@servebeer servebeer added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Jul 17, 2022
@liss-bot
Copy link
Collaborator

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

@Lissy93 Lissy93 changed the title Weather Widget and OpenWeather API Key[BUG] <title> [BUG] Weather Widget and OpenWeather API Key Jul 17, 2022
@Lissy93
Copy link
Owner

Lissy93 commented Jul 17, 2022

Hiya @servebeer
Looks like a small typo. Replace apikey with apiKey :)

@Lissy93
Copy link
Owner

Lissy93 commented Jul 17, 2022

I've added more details to the troubleshooting guide, under Weather Widget 401.

Pls do try and check that document before raising an issue 🤓

@servebeer
Copy link
Author

Hiya @servebeer Looks like a small typo. Replace apikey with apiKey :)

Sorry about that, the little stuff always gets me ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working
Projects
None yet
Development

No branches or pull requests

3 participants