12-03-2016, 12:42 PM
Par contre sur le site "wunderground", il y aurait tes infos ;)
Avec ton Api , tu pourras rÃcupÃrer ces info là :
{
"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":"Lyon, CA",
"city":"Lyon",
"state":"CA",
"state_name":"California",
"country":"US",
"country_iso3166":"US",
"zip":"92679",
"magic":"8",
"wmo":"99999",
"latitude":"33.61335373",
"longitude":"-117.59116364",
"elevation":"273.0"
},
"observation_location": {
"full":"Dove Canyon California, Dove Canyon, California",
"city":"Dove Canyon California, Dove Canyon",
"state":"California",
"country":"US",
"country_iso3166":"US",
"latitude":"33.619907",
"longitude":"-117.567444",
"elevation":"1093 ft"
},
"estimated": {
},
"station_id":"KCAMISSI1",
"observation_time":"Last Updated on December 3, 2:34 AM PST",
"observation_time_rfc822":"Sat, 03 Dec 2016 02:34:50 -0800",
"observation_epoch":"1480761290",
"local_time_rfc822":"Sat, 03 Dec 2016 02:39:23 -0800",
"local_epoch":"1480761563",
"local_tz_short":"PST",
"local_tz_long":"America/Los_Angeles",
"local_tz_offset":"-0800",
"weather":"Clear",
"temperature_string":"53.8 F (12.1 C)",
"temp_f":53.8,
"temp_c":12.1,
"relative_humidity":"20%",
"wind_string":"From the WNW at 2.0 MPH Gusting to 12.0 MPH",
"wind_dir":"WNW",
"wind_degrees":303,
"wind_mph":2.0,
"wind_gust_mph":"12.0",
"wind_kph":3.2,
"wind_gust_kph":"19.3",
"pressure_mb":"1018",
"pressure_in":"30.07",
"pressure_trend":"0",
"dewpoint_string":"14 F (-10 C)",
"dewpoint_f":14,
"dewpoint_c":-10,
"heat_index_string":"NA",
"heat_index_f":"NA",
"heat_index_c":"NA",
"windchill_string":"NA",
"windchill_f":"NA",
"windchill_c":"NA",
"feelslike_string":"53.8 F (12.1 C)",
"feelslike_f":"53.8",
"feelslike_c":"12.1",
"visibility_mi":"10.0",
"visibility_km":"16.1",
"solarradiation":"--",
"UV":"0","precip_1hr_string":"0.00 in ( 0 mm)",
"precip_1hr_in":"0.00",
"precip_1hr_metric":" 0",
"precip_today_string":"0.00 in (0 mm)",
"precip_today_in":"0.00",
"precip_today_metric":"0",
"icon":"clear",
"icon_url":"http://icons.wxug.com/i/c/k/nt_clear.gif",
"forecast_url":"http://www.wunderground.com/US/CA/Lyon.html",
"history_url":"http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KCAMISSI1",
"ob_url":"http://www.wunderground.com/cgi-bin/findweather/getForecast?query=33.619907,-117.567444",
"nowcast":""
}
}
Avec ton Api , tu pourras rÃcupÃrer ces info là :
{
"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":"Lyon, CA",
"city":"Lyon",
"state":"CA",
"state_name":"California",
"country":"US",
"country_iso3166":"US",
"zip":"92679",
"magic":"8",
"wmo":"99999",
"latitude":"33.61335373",
"longitude":"-117.59116364",
"elevation":"273.0"
},
"observation_location": {
"full":"Dove Canyon California, Dove Canyon, California",
"city":"Dove Canyon California, Dove Canyon",
"state":"California",
"country":"US",
"country_iso3166":"US",
"latitude":"33.619907",
"longitude":"-117.567444",
"elevation":"1093 ft"
},
"estimated": {
},
"station_id":"KCAMISSI1",
"observation_time":"Last Updated on December 3, 2:34 AM PST",
"observation_time_rfc822":"Sat, 03 Dec 2016 02:34:50 -0800",
"observation_epoch":"1480761290",
"local_time_rfc822":"Sat, 03 Dec 2016 02:39:23 -0800",
"local_epoch":"1480761563",
"local_tz_short":"PST",
"local_tz_long":"America/Los_Angeles",
"local_tz_offset":"-0800",
"weather":"Clear",
"temperature_string":"53.8 F (12.1 C)",
"temp_f":53.8,
"temp_c":12.1,
"relative_humidity":"20%",
"wind_string":"From the WNW at 2.0 MPH Gusting to 12.0 MPH",
"wind_dir":"WNW",
"wind_degrees":303,
"wind_mph":2.0,
"wind_gust_mph":"12.0",
"wind_kph":3.2,
"wind_gust_kph":"19.3",
"pressure_mb":"1018",
"pressure_in":"30.07",
"pressure_trend":"0",
"dewpoint_string":"14 F (-10 C)",
"dewpoint_f":14,
"dewpoint_c":-10,
"heat_index_string":"NA",
"heat_index_f":"NA",
"heat_index_c":"NA",
"windchill_string":"NA",
"windchill_f":"NA",
"windchill_c":"NA",
"feelslike_string":"53.8 F (12.1 C)",
"feelslike_f":"53.8",
"feelslike_c":"12.1",
"visibility_mi":"10.0",
"visibility_km":"16.1",
"solarradiation":"--",
"UV":"0","precip_1hr_string":"0.00 in ( 0 mm)",
"precip_1hr_in":"0.00",
"precip_1hr_metric":" 0",
"precip_today_string":"0.00 in (0 mm)",
"precip_today_in":"0.00",
"precip_today_metric":"0",
"icon":"clear",
"icon_url":"http://icons.wxug.com/i/c/k/nt_clear.gif",
"forecast_url":"http://www.wunderground.com/US/CA/Lyon.html",
"history_url":"http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KCAMISSI1",
"ob_url":"http://www.wunderground.com/cgi-bin/findweather/getForecast?query=33.619907,-117.567444",
"nowcast":""
}
}
-------------------------