I ended up using a php job to check the wunderground, then some if / elseif to copy a file to be named current.jpg every 20 minutes with a cron job, and then updated the css files to point to /images/current/current.jpg... so every 20 minutes current.jpg will reflect the weather as reported by weather underground.
Next is to add logic for day versus night, but that is for after dinner!
(API changed)
<?php $json_string = file_get_contents("YOUR API");
$parsed_json = json_decode($json_string);
$weather = $parsed_json->{'current_observation'}->{'weather'};
if (in_array($weather, array('Mostly Cloudy', 'Cloudy', 'Partly Cloudy', 'Overcast')))
{
copy("/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/cloudy.jpg", "/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/current.jpg");
}
elseif (in_array($weather, array('Sunny', 'fair')))
{
copy("/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/sunny.jpg", "/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/current.jpg");
}
elseif (in_array($weather, array('thundershowers', 'isolated thunderstorms', 'scattered thunderstorms', 'isolated thundershowers')))
{
copy("/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/thunderstorm.jpg", "/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/current.jpg");
}
elseif (in_array($weather, array('showers', 'rain', 'mixed rain and hail', 'scattered showers', 'mixed rain and snow', 'freezing rain')))
{
copy("/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/rainy.jpg", "/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/current.jpg");
}
elseif (in_array($weather, array('snow', 'heavy snow', 'snow flurries', 'light snow showers', 'blowing snow')))
{
copy("/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/snow.jpg", "/kunden/homepages/17/d554858752/htdocs/DEADCOWZdomainroot/images/current/current.jpg");
}
?>