current temp wrong?

  • 1
  • Question
  • Updated 4 years ago
I submit a request in an attempt to get the current temp in my area.

wget http://api.wunderground.com/api/<key>/conditions/q/CA/Santa_Clara.json

i look for the key/value -
"temp_f":67.9

when i check weather on weather.com or google.com, they report back that the weather is as much as 4 degrees cooler.

am i am using this correctly?

see full json response below:

{  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html";,
  "features": {
  "conditions": 1
  }
}
  , "current_observation": {
"image": {
"url":"http://icons.wxug.com/graphics/wu2/logo_130x80.png";,
"title":"Weather Underground",
"link":"http://www.wunderground.com";
},
"display_location": {
"full":"Santa Clara, CA",
"city":"Santa Clara",
"state":"CA",
"state_name":"California",
"country":"US",
"country_iso3166":"US",
"zip":"95050",
"magic":"1",
"wmo":"99999",
"latitude":"37.35219955",
"longitude":"-121.95475769",
"elevation":"23.00000000"
},
"observation_location": {
"full":"Fairfield Neighborhood, Santa Clara, California",
"city":"Fairfield Neighborhood, Santa Clara",
"state":"California",
"country":"US",
"country_iso3166":"US",
"latitude":"37.347557",
"longitude":"-121.958649",
"elevation":"62 ft"
},
"estimated": {
},
"station_id":"KCASANTA288",
"observation_time":"Last Updated on January 25, 3:44 PM PST",
"observation_time_rfc822":"Sun, 25 Jan 2015 15:44:03 -0800",
"observation_epoch":"1422229443",
"local_time_rfc822":"Sun, 25 Jan 2015 15:56:20 -0800",
"local_epoch":"1422230180",
"local_tz_short":"PST",
"local_tz_long":"America/Los_Angeles",
"local_tz_offset":"-0800",
"weather":"Clear",
"temperature_string":"67.9 F (19.9 C)",
"temp_f":67.9,
"temp_c":19.9,
"relative_humidity":"43%",
"wind_string":"From the ENE at 1.0 MPH Gusting to 4.0 MPH",
"wind_dir":"ENE",
"wind_degrees":70,
"wind_mph":1.0,
"wind_gust_mph":"4.0",
"wind_kph":1.6,
"wind_gust_kph":"6.4",
"pressure_mb":"1017",
"pressure_in":"30.04",
"pressure_trend":"0",
"dewpoint_string":"44 F (7 C)",
"dewpoint_f":44,
"dewpoint_c":7,
"heat_index_string":"NA",
"heat_index_f":"NA",
"heat_index_c":"NA",
"windchill_string":"NA",
Photo of christopher corn

christopher corn

  • 1 Post
  • 0 Reply Likes

Posted 4 years ago

  • 1

Be the first to post a reply!