@saxnpaule said in New plugin [pimatic-wunderground]:
version 0.2.1 released 2018-04-06
- fixed calculation of correct historical observation entry
- refactoring
Now everything seems to work again. The values are refreshed on the frontend.
But im totally confused right now ^^ Calculating with different timezones is absolutely brain fuck
These are the last lines of your json request:
"date": {
"pretty": "5:00 PM +07 on April 06, 2018",
"year": "2018",
"mon": "04",
"mday": "06",
"hour": "17",
"min": "00",
"tzname": "Asia/Ho_Chi_Minh"
},
"utcdate": {
"pretty": "10:00 AM GMT on April 06, 2018",
"year": "2018",
"mon": "04",
"mday": "06",
"hour": "10",
"min": "00",
"tzname": "UTC"
},
"tempm":"20.0", "tempi":"68.0","dewptm":"12.0", "dewpti":"53.6","hum":"60","wspdm":"24.1", "wspdi":"15.0","wgustm":"-9999.0", "wgusti":"-9999.0","wdird":"10","wdire":"North","vism":"10.0", "visi":"6.2","pressurem":"1019", "pressurei":"30.09","windchillm":"-999", "windchilli":"-999","heatindexm":"-9999", "heatindexi":"-9999","precipm":"-9999.00", "precipi":"-9999.00","conds":"Mostly Cloudy","icon":"mostlycloudy","fog":"0","rain":"0","snow":"0","hail":"0","thunder":"0","tornado":"0","metar":"METAR VVNB 061000Z 01013KT 9999 FEW010 BKN076 20/12 Q1019 NOSIG" },
{
"date": {
"pretty": "5:30 PM +07 on April 06, 2018",
"year": "2018",
"mon": "04",
"mday": "06",
"hour": "17",
"min": "30",
"tzname": "Asia/Ho_Chi_Minh"
},
"utcdate": {
"pretty": "10:30 AM GMT on April 06, 2018",
"year": "2018",
"mon": "04",
"mday": "06",
"hour": "10",
"min": "30",
"tzname": "UTC"
},
"tempm":"20.0", "tempi":"68.0","dewptm":"13.0", "dewpti":"55.4","hum":"64","wspdm":"18.5", "wspdi":"11.5","wgustm":"-9999.0", "wgusti":"-9999.0","wdird":"10","wdire":"North","vism":"10.0", "visi":"6.2","pressurem":"1019", "pressurei":"30.09","windchillm":"-999", "windchilli":"-999","heatindexm":"-9999", "heatindexi":"-9999","precipm":"-9999.00", "precipi":"-9999.00","conds":"Mostly Cloudy","icon":"mostlycloudy","fog":"0","rain":"0","snow":"0","hail":"0","thunder":"0","tornado":"0","metar":"METAR VVNB 061030Z 01010KT 9999 FEW010 BKN078 20/13 Q1019 NOSIG" },
{
"date": {
"pretty": "6:00 PM +07 on April 06, 2018",
"year": "2018",
"mon": "04",
"mday": "06",
"hour": "18",
"min": "00",
"tzname": "Asia/Ho_Chi_Minh"
},
"utcdate": {
"pretty": "11:00 AM GMT on April 06, 2018",
"year": "2018",
"mon": "04",
"mday": "06",
"hour": "11",
"min": "00",
"tzname": "UTC"
},
"tempm":"19.0", "tempi":"66.2","dewptm":"13.0", "dewpti":"55.4","hum":"68","wspdm":"13.0", "wspdi":"8.1","wgustm":"-9999.0", "wgusti":"-9999.0","wdird":"10","wdire":"North","vism":"-9999.0", "visi":"-9999.0","pressurem":"1020", "pressurei":"30.12","windchillm":"-999", "windchilli":"-999","heatindexm":"-9999", "heatindexi":"-9999","precipm":"-9999.00", "precipi":"-9999.00","conds":"Clear","icon":"clear","fog":"0","rain":"0","snow":"0","hail":"0","thunder":"0","tornado":"0","metar":"METAR VVNB 061100Z 01007KT 330V040 CAVOK 19/13 Q1020 NOSIG" }
As you can see, the latest entry is from 11:00 UTC and 18:00 Asia/Ho_Chi_Minh.
At the moment its not possible to see the actual temperatures in UTC time. There should be an entry with 14:30 UTC and 21:00 Asia/Ho_Chi_Minh time.
Best regards,
André