4.0.945 PWS Enabled via WU, Mini-8 Gets Wrong Location Weather Data
FixedI have a PWS and have it ID entered in my Mini-8.
Looking through the logs today, I see that retrieval of the correct WU ID data is successful.
Curious of the data, I took the URL used as shown in the log and entered it into a browser.
This is the URL and the resulting data.
https://stationdata.wunderground.com/cgi-bin/stationdata?v=2.0&type=ICAO%2CPWS&units=metric&format=json&maxage=1800&maxstations=20&minstations=1¢erLat=42.220391¢erLon=-72.638608&height=400&width=400&iconsize=2&callback=__ng_jsonp__.__req1.finished
__ng_jsonp__.__req1.finished(
{"stations": [
{"id":"ILIAONIN2","latitude":0.00000,"longitude":0.00000,"rtfreq":null,"updated":1532697028,"ageh":0,"agem":0,"ages":1,"type":"PWS","adm1":"[299 Changsong Road]","adm2":"[LIAONING]","neighborhood":"Hengli Petrochemical","country":"[CHINA]","dateutc":"2018-07-27 13:08:55","weather":"","icon":"","clouds":"","flightrule":"","name":"","softwaretype":"WS-1002 V2.4.5","maxtemp_time":"09:21AM","mintemp_time":"17:46PM","wind_dir_degrees":76,"wind_speed":0,"wind_gust_speed":0,"humidity":99,"temperature":27.5,"precip_rate":0,"precip_today":0,"pressure":1002.26,"dewpoint":27.4,"windchill":30.2,"heatindex":33.5,"visibility":null,"snow":null,"elevation":0,"sst":null,"max_temperature":28.3,"min_temperature":24.9,"max_dewpoint":28.2,"min_dewpoint":24.8,"max_pressure":1003.61,"min_pressure":1001.24,"max_wind_speed":24.8,"max_wind_gust_speed":28,"max_precip_rate":null,"max_heatindex":36.5,"max_windchill":null}]}
);
Note that I'm not in China, but the returned data is.
-
I see that the retrieved data is from some other station. These values are not close to what I see here or looking at the station on WU.
2018-07-29 17:45:53,232 - INFO - noaa-parser:83 - Fetching Hourly data from https://noaa.rainmachine.com/xml/sample_products/browser_interface/ndfdXMLclient.php 2018-07-29 17:45:58,004 - INFO - noaa-parser:87 - Fetching Daily data from https://noaa.rainmachine.com/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php 2018-07-29 17:46:00,108 - INFO - wunderground-parser:165 - Downloading station data from: https://stationdata.wunderground.com/cgi-bin/stationdata?v=2.0&type=ICAO%2CPWS&units=metric&format=json&maxage=1800&maxstations=20&minstations=1¢erLat=42.220391¢erLon=-72.638608&height=400&width=400&iconsize=2&callback=__ng_jsonp__.__req1.finished 2018-07-29 17:46:01,635 - INFO - wunderground-parser:77 - WUnderground: station data retrieved for KMAHOLYO15 2018-07-29 17:46:05,705 - INFO - rmMixer:123 - *** DATA IN THE PAST: 2018-07-28 00:00:00 2018-07-29 17:46:05,720 - INFO - rmMixer:124 - *** Received data: ('2018-07-28 00:00:00', temp=24.3/1, minTemp=None/0, maxTemp=None/0, rh=85/1, minRh=None/0, maxRh=None/0, wind=0.28000000000000006/1, solarRad=None/0, skyCover=None/0, rain=0.5/1, et0=None/0, pop=None/0, qpf=None/0, condition=None/0, pressure=101.9/1, dewPoint=20.4/1, userData=None, minTemp=18.5/0, maxTemp=30.2/0, minRH=56/0, maxRH=99/0, et0cal=None, et0final=None) 2018-07-29 17:46:05,763 - INFO - rmMixer:131 - *** Added Existing data: '2018-07-28 00:00:00', temp=24.13/1, minTemp=None/0, maxTemp=None/0, rh=86/1, minRh=None/0, maxRh=None/0, wind=0.12/1, solarRad=None/0, skyCover=None/0, rain=0.5/1, et0=None/0, pop=16/1, qpf=0/1, condition=3/1, pressure=101.9/1, dewPoint=20.41/1, userData=None, minTemp=18.37/1, maxTemp=30.08/1, minRH=60/1, maxRH=96/1, et0cal=4.6097003064500004, et0final=4.6100000000000006 -
Hi,
That's a query to get the nearby weather stations. The actual data is taken from a different URL. The URL seems to be changed, maybe because of browser as it adds some UTF characters that shouldn't be there:
¢erLat=42.220391¢erLon=-72.638608
correct:
centerLat=42.220391centerLon=-72.638608
Even so the data should be correctly retrieved as the actual data URL is different.
Please sign in to leave a comment.
Comments
5 comments