List of all possible return values for 'conditions' field?

  • 1
  • Question
  • Updated 2 years ago
Is there a way to get a list of all possible values of the 'conditions' field of the forecast10day query? Use case: I am trying to map "Partly Cloudy" or "Clear" fields to different states of my app, but I cant find a complete list of condition codes anywhere.
Photo of hamptont

hamptont

  • 1 Post
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
Photo of GEOSoft

GEOSoft

  • 26 Posts
  • 1 Reply Like
Brendan;
Just a small point.
The page you linked to contains this error
dewpti Duepoint in F
should be
dewpti Dewpoint in F
Photo of Murat Atasoy

Murat Atasoy

  • 1 Post
  • 0 Reply Likes
function getimagename($d){ //https://www.wunderground.com/weather/api/d/docs?d=resources/phrase-glossary&MR=1
$rs="";
switch($d){
case "chanceflurries": $rs = "ihtimal_sagnak_yagmur"; break; //Sağnak İhtimali
case "chancerain": $rs = "ihtimal_yagmur"; break; //Yağmur İhtimali
case "chancesleet": $rs = "ihtimal_sulukar"; break; //Chance of Freezing Rain
case "chancesnow": $rs = "ihtimal_kar"; break; //Chance of Snow
case "chancetstorms": $rs = "ihtimal_firtina"; break; //Gök Gürültülü Fırtına
case "clear": $rs = "gunesli"; break; //açık hava
case "cloudy": $rs = "bulutlu"; break; //
case "flurries": $rs = "sagnak"; break; //
case "fog": $rs = "sis"; break; //
case "hazy": $rs = "puslu"; break; //
case "mostlycloudy": $rs = "parcali_bulutlu"; break; //
case "mostlysunny": $rs = "genelde_gunesli"; break; //
case "partlycloudy": $rs = "parcali_bulutlu"; break; //
case "partlysunny": $rs = "genelde_gunesli"; break; //
case "sleet": $rs = "sulu_kar"; break; //
case "rain": $rs = "yagmur"; break; //
case "snow": $rs = "kar"; break; //
case "sunny": $rs = "gunesli"; break; //
case "tstorms": $rs = "firtina"; break; //
case "unknown": $rs = "firtina"; break; //
default: $rs=""; break;
}
return $rs;
}