Announcement

Collapse
No announcement yet.

Weather Underground upload?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Weather Underground upload?

    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?
    Attached Files

    #2
    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
    and a sample set of dummy data at the start of the updload string is

    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
    If you have any information that indicates there is something that needs to be changed then I can try to help. It was a few years ago and WU's requirements could have changed.

    Comment


      #3
      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


        #4
        Originally posted by dhayner View Post
        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.
        I might just be seeing the difference in the order of items in your string versus the example... still checking...

        Will turning on debugging (have to find that, if it exists) show the reply from the WU server?

        Comment


          #5
          One more item - can I use a literal -5 in the DateUTC Hr Offset field? I'm south Florida, generally -5, but not sure if MCSTemp uses it properly? Tried with it earlier, no result.... tried with 0... no result (would be sent incorrectly & maybe rejected if it was taken in)...

          Comment


            #6
            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"), " ", "+")
            This translatess to adding the numeric input you provided (e.g. -5 or 0) as an hour value to the current date and formatting it as YYYY-MM-DD+HH%3AMM%3ASS.
            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


              #7
              How often does mcsTemperature upload to Weather Underground? I don't see anywhere to set/change this interval. Or perhaps I need to have my eyes checked.

              Thanks in advance,
              Craig

              Comment


                #8
                At the same rate you save data to the database per the Interface Page. If driven by the Temp05/08 then this will determine the update interval.

                Comment


                  #9
                  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


                    #10
                    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

                    Working...
                    X