Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Wunderground upload
#1

Hi
While getting my WeatherDuino Pro2+ to upload to Wunderground I found that they do not appear to send “success” in the http reply as their documentation shows and the Pro2+ code looks for.
 
I changed in NET.ino
about line 208
if (strstr((char *)temp_buffer, "200 OK") != NULL) WU_uploadDone = true; //look for "200 OK" not "success"
 
With a few other changes to the code my debug output now shows
09:41:54.071 -> Create tcp OK
09:41:54.376 -> Waiting for WU response...
09:41:54.376 -> WU reply: success
09:41:54.410 ->
09:41:54.410 -> WU replied: HTTP/1.1 200 OK
09:41:54.410 -> Date: Thu, 15 Sep 2022 21:42:02 GMT
09:41:54.444 -> Content-Type: text/plain; charset=utf-8
09:41:54.444 -> Content-Length: 8
09:41:54.478 -> Connection: close
09:41:54.478 -> Cache-Control: max-age=0, no-cache, must-revalidate, proxy-revalidate
09:41:54.512 -> Expires: Thu, 15 Sep 2022 21:42:02 GMT
09:41:54.512 -> Last-M
09:41:54.545 -> WU upload took: 1375 mS
09:41:54.545 ->
 
As well I have added code to also upload to WOW - WeatherObservationsWebsite but that needs documenting yet.
 
Ian
Reply




Users browsing this thread: