WeatherCat > WeatherCat Integration

Uploading from WeatherCat to Windy.com

(1/2) > >>

testmatch:
Hi,

Has anyone done this? See https://community.windy.com/topic/8168/report-you-weather-station-data-to-windy for the announcement, and (further down the thread) a comment that they'd still like people to do that if our data is already there via CWOP (which mine is, at https://www.windy.com/station/madis-E7347). There's also a forum on https://www.wxforum.net/index.php?board=141.0 discussing it.

I was thinking it would make an appropriate Bank Holiday, but I find I'm not sure sure how to do it from WeatherCat. Any thoughts - and even better, instructions on how to do it - would be very welcome.

Thanks,

John

xairbusdriver:
Thanks for the news! Wow, that IS an active forum! :o I can't even keep the list of replies on the screen as it is constantly updating the list. :headbash:

There is at least one javascript programmer on there who supports WC (and several other WX software apps), so there may be something he creates that can take data directly from your WX hardware and/or WC.

Apparently Mr. Crossley discovered that many values need to be integers (whole numbers). I think Davis uses decimal numbers for almost all values, whether they need them or not. [ do we really need to know the temp is 78.4 not 78.3? ;+) ] Many of these types of details are bound to change while the service is being built. So some dev's may not see this as a high priority in their plans. [computer]

If CWOP is already sending my data, I'm not sure I see the need to do it again. ???

testmatch:
I've now got a string that seems to put together all the data they want:


--- Code: ---winddir=[winddir]&windspeedmph=[windspeedmph]&windgustmph=[windgustmph]&tempf=[tempf]&rainin=[raininch]&baromin=[baroinch]&dewpointf=[dewptf]&humidity=[humidity]&uv=[UV]
--- End code ---

which gives:


--- Code: ---winddir=144&windspeedmph=0&windgustmph=3&tempf=72.1&rainin=0&baromin=30.369&dewpointf=47.1&humidity=41&uv=1.5
--- End code ---

under the current conditions here. I think I should be able to use custom CGI with cURL in a PHP script to send


--- Code: ---https://stations.windy.com./pws/update/API-KEY?winddir=[winddir]&windspeedmph=[windspeedmph]&windgustmph=[windgustmph]&tempf=[tempf]&rainin=[raininch]&baromin=[baroinch]&dewpointf=[dewptf]&humidity=[humidity]&uv=[UV]
--- End code ---
through to Windy - with API-KEY replaced by my key.
 
My understanding of PHP and cURL is gradually increasing, so I'll see how far I get over the next few days.

I've not seen anything about them needing integers - and the example on their announcement includes decimal points - so I'll see how I get on.



mcrossley:
Despite what it says on the initial API post on Windy about instantaneous values, they are expecting the wind speed and direction be 3 minute averages, and gust the max in the last ten minutes. In reality if you use 5 or 10 minute averages I think that will be fine.

Instantaneous readings every 5 minutes aren't that useful!

xairbusdriver:

--- Quote ---needing integers
--- End quote ---


--- Quote ---TomSlavkovsky
...You need to select location in map, not by using lat/lon. Also, the height of wind and tempmeters must be in whole numbers.
--- End quote ---
I think "tempmeters" is probably "temperatures"?

PHP sounds like the easiest way to go. ThU32:-)

Navigation

[0] Message Index

[#] Next page

Go to full version