Skip to content

[BUG] Weather Widget and OpenWeather API Key #803

Closed

Description

@APT256

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.

Activity

  1. added
    🐛 Bug[ISSUE] Ticket describing something that isn't working
    on Jul 17, 2022
  2. liss-bot commented on Jul 17, 2022

    @liss-bot
    Collaborator

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

  3. changed the title [-]Weather Widget and OpenWeather API Key[BUG] <title>[/-] [+][BUG] Weather Widget and OpenWeather API Key[/+] on Jul 17, 2022
  4. lissy93 commented on Jul 17, 2022

    @lissy93
    Owner

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

  5. lissy93 commented on Jul 17, 2022

    @lissy93
    Owner

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

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

  6. APT256 commented on Jul 17, 2022

    @APT256
    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

Metadata

Metadata

Assignees

Labels

🐛 Bug[ISSUE] Ticket describing something that isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions