widget has no weather data
-
installation went smoothly got key installed widget graphic show but it is blank – no data at all
-
link to my sight is FishingPatagonia.com
Hi fishpat,
Sorry to hear you’re having problems.
Basically, there are a few reasons that this could be happening:
- The API key isn’t working
- The city value isn’t recognized
- Your server isn’t allowing the widget to request the weather data
- The weather server isn’t responding for some reason
- There’s a bug in my widget
- Some other mysterious error
I’m working on an update to the weather widget right now to add error messages – hopefully that will let us see where the problem lies. I’m hoping to have the update ready in an hour or so.
Quick question: in the widget settings, what value are you using for the city?
I’ll post an update when the widget update is ready.
Cheers,
DanI’ve released the update for the weather widget.
Here’s what to do:
- Log into WordPress and go to Plugins
- You should see that an update for the weather widget is available (I think WordPress checks for updates once per hour, so it may not show up immediately)
- Install the update, then reload fishingpatagonia.com.
- Now go to (or reload) the Widgets page and look at the settings for the weather widget
- Fingers crossed, there will be a big red error message at the top of the weather widget’s settings box.
- Let me know what the error is (if there is one) and I’ll advise you further.
By the way, I also updated the widget to use an backup method of requesting the weather data (via curl), so if your server was blocking the original method (via file_get_contents) it may start working now.
Anyway, let me know how you get on.
Dan
Thanks Dan,
error message is Invalid API key
originally I copied and pasted the key so I’m pretty sure there are no changes from the one I received from world weather on line.
FishpatI went back and copied the key again and reloaded it, but error message remains the same and still no data
Hmm…
Two things. First, check that you don’t have any spaces before or after the API key (the next version will remove them automatically, but the current version doesn’t).
If that still doesn’t work, you can check your API key with World Weather Online at: http://developer.worldweatheronline.com/io-docs
From the drop-down box, select “Free Weather API”, then put in your API key. Next, click on the “Get Local Weather” (first option) to expand it. Leave all the values as they are and click “try it”. This submits a request for weather data using your key. It will then show you the result just below. If you see results like “403 Forbidden” and “Developer Inactive”, this indicates that there is a problem with the API key. In that case you may need to register again to get a new API key.
Sorry, it’s a bit of a hassle with the whole API key thing. I’m looking to move to a key-less setup in the near(ish) future which should avoid all this.
Dan
Dan,
Well, I deleted the old release, installed the new release, went back to worldweatheronline reregistered, got a new key, and everything works fine.Thanks Dan, this is a nice peace of work.
FishpatFishpat,
That’s great news! I’m glad you got it working. Let me know if there is anything else I can help you with.
All the best with FishingPatagonia.com 🙂
Cheers,
Dan
The topic ‘widget has no weather data’ is closed to new replies.