Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Posting Data to WeatherUnderground.


cellectronic Jan 27, 2016 07:14 PM

Hi Guys,

I am currently trying, with some success to post my CR1000 weather data to WeatherUnderground (WU).

My glitch at the moment relates to air temp. The logger program is set to get the temp in Deg C but I can-not work out how to display the data as Deg C in WU. .

The declared variable is "Public AirTC" and my httpget line reads

"http_get_uri = http_get_uri & "&tempf=" & Round(AirTC,1)"

Example...

The sensor temp is 12 Deg C but I get -10 reading on Weather Underground unless I change the C/F display in WU page then the numerical data is correct but it is displayed in Deg F.

Any support would be greatly appreciated .

Steve.


jtrauntvein Jan 27, 2016 09:42 PM

Looking at the wiki page that describes the weather underground API, it looks like they are expecting the temperature to be reported in degrees F.  You can convert a measurement in degrees C to degrees F by multiplying the measurement by 1.8 and adding 32.


cellectronic Jan 27, 2016 09:51 PM

Hi, Thanks for the info.

Not sure how I would implement that into the CR1000 program, maybe someone out there does ??

Regards.


jtrauntvein Jan 28, 2016 02:56 PM

http_get_uri = http_get_uri & "&tempf=" & Round(AirTC * 1.8 + 32,1)


cellectronic Jan 28, 2016 07:36 PM

Hi , Many Thanks for the info.

Would it be possible for you to look over my part of the program to see if you can spot any errors , I am not sure if the date part of the program is correct.

I have tried to attach part in question , My station ID is  IUNITEDK425... Thank you for your time and help.

slowsequence
Scan(10, Min, 3, 0)

'create wunderground timestamp
SS1990 = Public.Timestamp(1,1)
SS1990 = SS1990 + UTC_OFFSET
UTCTime = SecsSince1990 (SS1990,4)
UTCTime = Left(UTCTime,19)
UTCTime = Replace(UTCTime," ","+")
UTCTime = Replace(UTCTime,":","%3A")

'HTTPGet information to wunderground.com
http_get_header = ""
http_get_response = ""
http_get_uri = "http://weatherstation.wunderground.com/weatherstation/updateweatherstation.php?action=updateraw"
http_get_uri = http_get_uri & "&ID=" & WUNDERGROUND_ID & "&PASSWORD=" & WUNDERGROUND_PASSWORD
http_get_uri = http_get_uri & "&dateutc=" & UTCTime
http_get_uri = http_get_uri & "&winddir=" & Round(WindDir,0)
http_get_uri = http_get_uri & "&windspeedmph=" & Round(WS_mph,1)
http_get_uri = http_get_uri & "&tempf=" & Round(AirTF,1)
http_get_uri = http_get_uri & "&dewptf=" & Round(TdF,1)
http_get_uri = http_get_uri & "&humidity=" & Round(RH,0)
http_get_uri = http_get_uri & "&solarradiation=" & Round(Slrkw,1)
http_get_uri = http_get_uri & "&baromin=" & Round(BP_mbar,1)
http_get_uri = http_get_uri & "&soiltempf=" & Round(T107_F,1)
http_get_uri = http_get_uri & "&softwaretype=cr1000"
http_get_socket = HTTPGet(http_get_uri, http_get_response, http_get_header)

'TCPClose(http_get_socket)

NextScan
EndProg


EndProg

 


Makada Aug 8, 2016 10:48 AM

am i right the CR1000 datalogger cant send those files to weather underground without an external device such as a modem?

How is it possible weather display can? My cr1000 datalogger is connected with weather display and with weather underground without an external device...


cellectronic Aug 8, 2016 02:24 PM

Hello,

That is correct .

The CR1000 would require either a modem or a network interface to post data directly to Weather Underground.

The programming of the communications would be different too. 

I myself use the NL115 which then connects to a router to access the internet.

Weather Display uses a file from the logger collected via Loggernet and stored on the PC hard drive .

This file is processed by Weather Display and forwarded to Weather underground.

Hope that helps.


cellectronic Aug 8, 2016 02:27 PM

Log in or register to post/reply in the forum.