'.$value['name'].'
'; } $json_string = file_get_contents("http://api.wunderground.com/api/${key}/geolookup/conditions/lang:DL/q/${city_code}.json"); $parsed_json = json_decode($json_string); $location = $parsed_json->{'location'}->{'city'}; $country = $parsed_json->{'location'}->{'country_iso3166'}; $weatherText = $parsed_json->{'current_observation'}->{'weather'}; $temp_c = $parsed_json->{'current_observation'}->{'temp_c'}; $humidity = $parsed_json->{'current_observation'}->{'relative_humidity'}; $icon = $parsed_json->{'current_observation'}->{'icon'}; $icon_img = 'Weather Icon'; if ($location) { $weather = "Aktuelles Wetter in ${location}, ${country}:
${icon_img}
${weatherText}
Temperatur: ${temp_c}°C
Luftfeuchtigkeit: ${humidity}"; } ?> Wetter

Wetter

'.$weather.'
'; } elseif ($error) { echo ''; } ?>