Since Yahoo cannot provide accurate weather for my part of the world (Germany) I found a way to get that from Weatherunderground using their API.

In order to make this work, you will have to get your own identification code "for free" from weather underground here


and make the changes to this string; Your_ID and Your City

$json_string = file_get_contents("http://api.wunderground.com/api/your_ID/conditions/q/your_City.json")

I also did some translations into German, if you need that too.

It isn't completely finished, but you can tinker with the script to add anything from the .json


User Avatar
Joelw135 2985 days ago
How do I get this to do a 7day forecast only in English? Thanks.
User Avatar
BigBadBobD 2984 days ago
I've attached the english script, however, for a 7 day forecast you'll need to change the initial call (json string) to Weatherunderground from "conditions" to "forecast7day"
User Avatar
jonisen 2616 days ago
Is there a way to make the forecast based on location? I travel a lot and would love for it to pull the local forecast of where I am

Log in to comment or register here.