I see the spot to fill in info for Weather Underground upload, and after filling it in (password included) I don't see updates on WU. Is there somewhere else to select this action to occur, or some spot to check for it working properly?
Announcement
Collapse
No announcement yet.
Weather Underground upload?
Collapse
X
-
I do not recall if the person who asked for this ever tested it. I can confirm that the URL being used is
Code:http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php
Code:?ID=A&PASSWORD=B&action=updateraw&softwaretype=mcsTemperature&dateutc=2010-05-19+19%3A04%3A47&WindDir=0&WindspeedMPH=5.0&WindGustMPH=5.0&Humidity=33
-
Seems there's a load of info here, and I see some difference in the shown Example URL and the one in your post. Any help is appreciated. I'd do some modding of your items, but I didn't see that URL in the INI or other couple files I looked in.
Comment
-
Originally posted by dhayner View PostSeems there's a load of info here, and I see some difference in the shown Example URL and the one in your post. Any help is appreciated. I'd do some modding of your items, but I didn't see that URL in the INI or other couple files I looked in.
Will turning on debugging (have to find that, if it exists) show the reply from the WU server?
Comment
-
There is no debug output in what you are running related to this
The value in the upload string for the UTC is
Code:Replace(Replace(Format(DateAdd("h", val(gUploadWU(2)), Now), "yyyy-mm-dd hh:mm:ss"), ":", "%3A"), " ", "+")
The plus and percent are used to encode special charcters for HTTP.
An easy way to independently test is to use a little script and something like the hs.GetURL method. If you are not familiar with scripts then I can give you one. If you do this I think you will not encode the special characters as this should automatically be done by GetURL.
The mcsTemperature upload string is formed by appending data from any of the fields that you have device codes entered into the setup. It will get the value from the DeviceString of the device unless it is empty and then it will use the DeviceValue.
I did not look at your reference, but some of the questions that may make a difference is if there is a minimum number of parameters. Is there some parameters that are required. Does a certain parameter need to be last. Since these are transmitted HTTP I suspect order and which one is last should not matter.
Comment
-
Thanks. I'm now uploading data to Weather Underground every minute (same interval as my database), but the data they receive doesn't make sense. It shows pressure and dew point, but I'm only sending temperature and humidity. Probably something wrong with the upload script or perhaps they changed something. The weather station I'm reporting is KCAPIONE4. I'm reporting the same data on a different computer using Virtual Weather Station as KCAPIONE1 and that seems to be fine.
Comment
-
The data is selected based upon a the forecast .ini file with the following keys
WUStationID,WUPassword,WUDateUTC,WUWindDir,WUWindspeedMPH,WU WindGustMPH,WUHumidity,WUTempF,WUDailyRainIn,WUBaromIn,WUDew ptF,WUSoilTempF,WULeafWetness,WUSolarRadiation,WUUV
where the value for the key is the device code that mcsTemperature should look to retrieve the data. Any values that are blank are not uploaded.
Make certain you are using WUHumidity and WUTempF keys in the .ini file.
Comment
Comment