Виж и
ТОВА.., а
ТУК е дадена полезна инструкция за ползването на готови данни от метеостанции в цял свят, от разработчици или за собствени цели.. Например аз съм си вдигнал уеб приложението за автоматизация на домашен сървър и извличам и съхранявам в него, данните от местната метеостанция..
Прикачен файл:
Прикачен файл:
Сървъра ми получава данните от избраната станция в този вид:
{
"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":"Plovdiv, Bulgaria",
"city":"Plovdiv",
"state":"16",
"state_name":"Bulgaria",
"country":"BU",
"country_iso3166":"BG",
"zip":"00000",
"magic":"1",
"wmo":"15625",
"latitude":"42.15000153",
"longitude":"24.75000000",
"elevation":"166.1"
},
"observation_location": {
"full":"Plovdiv, Central District, 16",
"city":"Plovdiv, Central District",
"state":"16",
"country":"BU",
"country_iso3166":"BG",
"latitude":"42.138905",
"longitude":"24.746584",
"elevation":"0 ft"
},
"estimated": {
},
"station_id":"I16CENTR2",
"observation_time":"Last Updated on January 20, 5:11 AM EET",
"observation_time_rfc822":"Sat, 20 Jan 2018 05:11:14 +0200",
"observation_epoch":"1516417874",
"local_time_rfc822":"Sat, 20 Jan 2018 05:12:02 +0200",
"local_epoch":"1516417922",
"local_tz_short":"EET",
"local_tz_long":"Europe/Sofia",
"local_tz_offset":"+0200",
"weather":"Clear",
"temperature_string":"37.9 F (3.3 C)",
"temp_f":37.9,
"temp_c":3.3,
"relative_humidity":"65%",
"wind_string":"From the NNE at 1.2 MPH Gusting to 3.1 MPH",
"wind_dir":"NNE",
"wind_degrees":33,
"wind_mph":1.2,
"wind_gust_mph":"3.1",
"wind_kph":1.9,
"wind_gust_kph":"5.0",
"pressure_mb":"1012",
"pressure_in":"29.89",
"pressure_trend":"0",
"dewpoint_string":"27 F (-3 C)",
"dewpoint_f":27,
"dewpoint_c":-3,
"heat_index_string":"NA",
"heat_index_f":"NA",
"heat_index_c":"NA",
"windchill_string":"38 F (3 C)",
"windchill_f":"38",
"windchill_c":"3",
"feelslike_string":"38 F (3 C)",
"feelslike_f":"38",
"feelslike_c":"3",
"visibility_mi":"6.2",
"visibility_km":"10.0",
"solarradiation":"--",
"UV":"-1","precip_1hr_string":"-999.00 in ( 0 mm)",
"precip_1hr_in":"-999.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/global/stations/15625.html",
"history_url":"
http://www.wunderground.com/weatherstat ... =I16CENTR2",
"ob_url":"
http://www.wunderground.com/cgi-bin/fin ... ,24.746584",
"nowcast":""
}
}