How to use Icons with a forecast?

  • 3
  • Question
  • Updated 4 years ago
What's the correct markup for using Icon status indecators for a forecast with PHP/JSON?
Photo of johan.lundberg

johan.lundberg

  • 1 Post
  • 0 Reply Likes

Posted 6 years ago

  • 3
Photo of John Celenza

John Celenza

  • 40 Posts
  • 21 Reply Likes
Hi Johan,

I don't quite understand your question. Can you explain a little more about what you want to achieve?

Thanks,
John
Photo of BHRIV

BHRIV

  • 1 Post
  • 0 Reply Likes
How can I link my own set of weather icons?
Photo of John Celenza

John Celenza

  • 40 Posts
  • 21 Reply Likes
Hello,

You would need to make a set of icons with the same names as ours.

This page shows you a list of the icons we currently support:
http://www.wunderground.com/graphics/...

I hope that helps!
Photo of appdemo

appdemo

  • 15 Posts
  • 0 Reply Likes
hello ,

my question is - in the response i am getting weather condition as "smoke" but in icon i am not getting any icon for "smoke". so what to do??
Photo of gpDigitalSignage

gpDigitalSignage

  • 1 Post
  • 0 Reply Likes
Here is my script for getting the icons

<script>
jQuery(document).ready(function($){
$.ajax({
url: "http://api.wunderground.com/api/URAPIKEY/geolookup/conditions/q/GA/Atlanta.json",
dataType: "jsonp",
success: function (parsed_json){
var currentCondIcon = parsed_json['current_observation']['icon'];
$('#currentCondIcon').append('<img src="http://icons.wxug.com/i/c/i /'+currentCondIcon+'.gif" height="125" width="125"/>');
}
});

});
</script>