Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    1. Home
    2. gfay63
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 12
    • Best 1
    • Groups 0

    gfay63

    @gfay63

    1
    Reputation
    5
    Profile views
    12
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website gregfay.com Location Overland Park, KS Age 59

    gfay63 Unfollow Follow

    Best posts made by gfay63

    • Mac Weathersnoop software Windy Weather Station Upload!

      Hey all. I have created a way to upload data from the awesome Weathersnoop software which runs on the Mac OS. That's the good news. The bad news is there is something not quite working yet. But appears to be 99.9% there? I am hoping for some help from all you experts. I must be missing something ridiculously simple.

      Here is the scoop. (And the AppleScript code is provided further below for those interested. I am in touch will the developer for Weathersnoop and will provide them details to hopefully add Windy Upload to the product once this is working.)

      Summary: I have created a station, gotten an API key, and have been uploading every 7 minutes for two+ weeks whilst trying everything to fix. The station shows on Windy, and even shows when the latest update had occurred (e.g., 3 mins ago), but no weather data.

      The details: I am uploading via the API documentation:

      https://stations.windy.com/pws/update/MYAPIKEY?winddir=113&windspeedmph=7.0&windgustmph=11.0&tempf=54.0&rainin=0.41&baromin=28.68&dewptf=49.9&humidity=86&stationId=0

      I am getting "SUCCESS" replies back (or other messages if I try to do so under 5 mins) so I know it's communicating.

      It shows within the Windy.com UI, for example (see the "pws Round Hill, Overland Park, KS" on the lower right:

      f2023ca4-265f-4077-8dbf-4f36fbf1c2f3-image.png

      However, obviously no weather data. And here is what I get as well when I go to my station:

      9e48ecf9-dd6c-4e32-b03d-a0874d573633-image.png

      Here is what I get when I retrieve my station data back from the API:

      From: https://stations.windy.com/pws/station/[myAPIKey]/0

      {"header":{"name":"Round Hill, Overland Park, KS","content":{"url":"","text":"Greg Fay"},"agl_temp":10,"agl_wind":10,"elev_m":322.48,"lat":38.97056060774817,"lon":-94.64931964874268,"stationType":"Davis Vantage Pro 2","shareOption":"Open","id":"f065e403","stationId":0,"type":"pws","updated":"2020-05-04T08:00:55.962Z","observation":{"avgFreqMin":7.054794520547945,"records":1,"avgDelayMin":5,"sumRows":146,"default":false,"latestObs":"2020-05-04T04:15:39.629Z"},"observationUpdated":"2020-05-04T04:15:39.629Z"},"data":null}

      I'm assuming "data" being "null" is a bad thing. ;)

      Things I've tried based on dozens of other articles of people having issues:

      • Waiting days.
      • Forum posts (in the wrong area I think).
      • Adding stationid.
      • Adding the latitude and longitude.
      • Using a new API Key.
      • Deleting and recreating the entire station and using the new API Key.
      • Waiting weeks. ;)

      FYI, here is the code. I've added lots of debugging logic to it:

      tell application "WeatherSnoop 5"
      	tell agent of first document
      		--display dialog "Temp: " & value of weather property "Outdoor Temperature"
      		set MyAPIKey to "[myAPIKey]"
      		set WeatherParams to ¬
      			"winddir=" & value of weather property "Wind Direction" & ¬
      			"&windspeedmph=" & value of weather property "Wind Speed" & ¬
      			"&windgustmph=" & value of weather property "10 Minute Wind Gust" & ¬
      			"&tempf=" & value of weather property "Outdoor Temperature" & ¬
      			"&rainin=" & value of weather property "Day Rain" & ¬
      			"&baromin=" & value of weather property "Barometric Pressure (Absolute)" & ¬
      			"&dewptf=" & value of weather property "Outdoor Dew Point" & ¬
      			"&humidity=" & value of weather property "Outdoor Humidity"
      		set WindyURL to "curl https://stations.windy.com/pws/update/" & MyAPIKey & "?" & WeatherParams & "&stationId=0"
      		set WindyURLsafe to "https://stations.windy.com/pws/update/" & "MYAPIKEY" & "?" & WeatherParams & "&stationId=0"
      		
      		set myResult to do shell script WindyURL
      		
      	end tell
      end tell
      
      set myTime to do shell script "date "
      set myString to "----------Timestamp: " & myTime & "-----------" & linefeed & WindyURLsafe & linefeed & myResult
      copy myString to stdout
      

      ...and here is a sample output (intentionally showing one with a "too soon" error:

      ----------Timestamp: Mon May 4 13:45:16 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=120&windspeedmph=7.0&windgustmph=13.0&tempf=53.5&rainin=0.41&baromin=28.70&dewptf=49.4&latitude=-94.64931964874268&longiture=38.97056060774817&humidity=86&stationId=0
      SUCCESS
      ----------Timestamp: Mon May 4 13:52:18 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=123&windspeedmph=9.0&windgustmph=13.0&tempf=53.8&rainin=0.41&baromin=28.69&dewptf=49.7&latitude=-94.64931964874268&longiture=38.97056060774817&humidity=86&stationId=0
      SUCCESS
      ----------Timestamp: Mon May 4 15:09:59 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=131&windspeedmph=4.0&windgustmph=10.0&tempf=56.4&rainin=0.41&baromin=28.69&dewptf=50.6&humidity=81&stationId=0
      SUCCESS
      NOTICE: Measurements not inserted to database because cooldown time 4 minutes (time since previous insertion is 1.07 minutes)!
      ----------Timestamp: Mon May 4 15:17:00 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=129&windspeedmph=5.0&windgustmph=8.0&tempf=56.5&rainin=0.41&baromin=28.69&dewptf=50.7&humidity=81&stationId=0
      SUCCESS
      ----------Timestamp: Mon May 4 15:24:01 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=144&windspeedmph=6.0&windgustmph=7.0&tempf=56.7&rainin=0.41&baromin=28.68&dewptf=51.3&humidity=82&stationId=0
      SUCCESS

      Thanks in advance!!

      Greg

      posted in Windy Stations
      gfay63
      gfay63

    Latest posts made by gfay63

    • RE: Report your Weather Station Data to Windy

      @gobris @Korina

      Tom helped me out and the developers had me put double quotes around the entire URL, e.g., curl "https://......". That fixed it. The "&" separating parameters was causing problems without the quotes so only the first parameter was being seen.

      Regards.
      Greg

      posted in Windy Stations
      gfay63
      gfay63
    • RE: Mac Weathersnoop software Windy Weather Station Upload!

      @TomSlavkovsky Excellent. Thanks, Tom. Much appreciated! :)

      posted in Windy Stations
      gfay63
      gfay63
    • RE: Mac Weathersnoop software Windy Weather Station Upload!

      Got a reply from Weathersnoop:

      "Greg,
      Thanks for letting me know about this. I was aware of this site, but didn't see any way to upload. I would certainly be interested in adding support for this as a sharing plug-in. Let me know when you hear back from them.
      "

      Can someone please take a peek at this and see why the data isn't appearing? I'll work to get this added to their product if so.

      Thanks,
      Greg

      posted in Windy Stations
      gfay63
      gfay63
    • Mac Weathersnoop software Windy Weather Station Upload!

      Hey all. I have created a way to upload data from the awesome Weathersnoop software which runs on the Mac OS. That's the good news. The bad news is there is something not quite working yet. But appears to be 99.9% there? I am hoping for some help from all you experts. I must be missing something ridiculously simple.

      Here is the scoop. (And the AppleScript code is provided further below for those interested. I am in touch will the developer for Weathersnoop and will provide them details to hopefully add Windy Upload to the product once this is working.)

      Summary: I have created a station, gotten an API key, and have been uploading every 7 minutes for two+ weeks whilst trying everything to fix. The station shows on Windy, and even shows when the latest update had occurred (e.g., 3 mins ago), but no weather data.

      The details: I am uploading via the API documentation:

      https://stations.windy.com/pws/update/MYAPIKEY?winddir=113&windspeedmph=7.0&windgustmph=11.0&tempf=54.0&rainin=0.41&baromin=28.68&dewptf=49.9&humidity=86&stationId=0

      I am getting "SUCCESS" replies back (or other messages if I try to do so under 5 mins) so I know it's communicating.

      It shows within the Windy.com UI, for example (see the "pws Round Hill, Overland Park, KS" on the lower right:

      f2023ca4-265f-4077-8dbf-4f36fbf1c2f3-image.png

      However, obviously no weather data. And here is what I get as well when I go to my station:

      9e48ecf9-dd6c-4e32-b03d-a0874d573633-image.png

      Here is what I get when I retrieve my station data back from the API:

      From: https://stations.windy.com/pws/station/[myAPIKey]/0

      {"header":{"name":"Round Hill, Overland Park, KS","content":{"url":"","text":"Greg Fay"},"agl_temp":10,"agl_wind":10,"elev_m":322.48,"lat":38.97056060774817,"lon":-94.64931964874268,"stationType":"Davis Vantage Pro 2","shareOption":"Open","id":"f065e403","stationId":0,"type":"pws","updated":"2020-05-04T08:00:55.962Z","observation":{"avgFreqMin":7.054794520547945,"records":1,"avgDelayMin":5,"sumRows":146,"default":false,"latestObs":"2020-05-04T04:15:39.629Z"},"observationUpdated":"2020-05-04T04:15:39.629Z"},"data":null}

      I'm assuming "data" being "null" is a bad thing. ;)

      Things I've tried based on dozens of other articles of people having issues:

      • Waiting days.
      • Forum posts (in the wrong area I think).
      • Adding stationid.
      • Adding the latitude and longitude.
      • Using a new API Key.
      • Deleting and recreating the entire station and using the new API Key.
      • Waiting weeks. ;)

      FYI, here is the code. I've added lots of debugging logic to it:

      tell application "WeatherSnoop 5"
      	tell agent of first document
      		--display dialog "Temp: " & value of weather property "Outdoor Temperature"
      		set MyAPIKey to "[myAPIKey]"
      		set WeatherParams to ¬
      			"winddir=" & value of weather property "Wind Direction" & ¬
      			"&windspeedmph=" & value of weather property "Wind Speed" & ¬
      			"&windgustmph=" & value of weather property "10 Minute Wind Gust" & ¬
      			"&tempf=" & value of weather property "Outdoor Temperature" & ¬
      			"&rainin=" & value of weather property "Day Rain" & ¬
      			"&baromin=" & value of weather property "Barometric Pressure (Absolute)" & ¬
      			"&dewptf=" & value of weather property "Outdoor Dew Point" & ¬
      			"&humidity=" & value of weather property "Outdoor Humidity"
      		set WindyURL to "curl https://stations.windy.com/pws/update/" & MyAPIKey & "?" & WeatherParams & "&stationId=0"
      		set WindyURLsafe to "https://stations.windy.com/pws/update/" & "MYAPIKEY" & "?" & WeatherParams & "&stationId=0"
      		
      		set myResult to do shell script WindyURL
      		
      	end tell
      end tell
      
      set myTime to do shell script "date "
      set myString to "----------Timestamp: " & myTime & "-----------" & linefeed & WindyURLsafe & linefeed & myResult
      copy myString to stdout
      

      ...and here is a sample output (intentionally showing one with a "too soon" error:

      ----------Timestamp: Mon May 4 13:45:16 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=120&windspeedmph=7.0&windgustmph=13.0&tempf=53.5&rainin=0.41&baromin=28.70&dewptf=49.4&latitude=-94.64931964874268&longiture=38.97056060774817&humidity=86&stationId=0
      SUCCESS
      ----------Timestamp: Mon May 4 13:52:18 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=123&windspeedmph=9.0&windgustmph=13.0&tempf=53.8&rainin=0.41&baromin=28.69&dewptf=49.7&latitude=-94.64931964874268&longiture=38.97056060774817&humidity=86&stationId=0
      SUCCESS
      ----------Timestamp: Mon May 4 15:09:59 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=131&windspeedmph=4.0&windgustmph=10.0&tempf=56.4&rainin=0.41&baromin=28.69&dewptf=50.6&humidity=81&stationId=0
      SUCCESS
      NOTICE: Measurements not inserted to database because cooldown time 4 minutes (time since previous insertion is 1.07 minutes)!
      ----------Timestamp: Mon May 4 15:17:00 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=129&windspeedmph=5.0&windgustmph=8.0&tempf=56.5&rainin=0.41&baromin=28.69&dewptf=50.7&humidity=81&stationId=0
      SUCCESS
      ----------Timestamp: Mon May 4 15:24:01 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=144&windspeedmph=6.0&windgustmph=7.0&tempf=56.7&rainin=0.41&baromin=28.68&dewptf=51.3&humidity=82&stationId=0
      SUCCESS

      Thanks in advance!!

      Greg

      posted in Windy Stations
      gfay63
      gfay63
    • RE: Report your Weather Station Data to Windy

      @Korina Hi. Any thoughts on this? It seems to be posting perfectly. I am posting every 7 minutes now for a week. I get "SUCCESS" responses and other messages (e.g., if trying to do less than the 5 minutes). The site shows the updates are happening per the image above. But no data is being shown...I get the error in the screenshot in the post above.

      I'd think if this can be resolved, it could be a great, easy solution that I could write up for all Weathersnoop users to be able to push up their weather station data! I am familiar with the wifi logger but it would conflict with Weathersnoop which is very powerful and customizable.

      I'm a premium member. Can you or someone help me out, please? Thanks! I love Windy! :)

      Greg

      posted in Windy Stations
      gfay63
      gfay63
    • RE: Report your Weather Station Data to Windy

      @Korina Hi! Thanks for the reply. I used Weathersnoop on a Mac Pro, and wrote an Applescript to push up the data every 7 minutes:

      tell application "WeatherSnoop 5"
      tell agent of first document
      set MyAPIKey to "MyAPIKey"
      set WeatherParams to ¬
      "winddir=" & value of weather property "Wind Direction" & ¬
      "&windspeedmph=" & value of weather property "Wind Speed" & ¬
      "&windgustmph=" & value of weather property "10 Minute Wind Gust" & ¬
      "&tempf=" & value of weather property "Outdoor Temperature" & ¬
      "&rainin=" & value of weather property "Day Rain" & ¬
      "&baromin=" & value of weather property "Barometric Pressure (Absolute)" & ¬
      "&dewptf=" & value of weather property "Outdoor Dew Point" & ¬
      "&humidity=" & value of weather property "Outdoor Humidity"
      set WindyURL to "curl https://stations.windy.com/pws/update/" & MyAPIKey & "?" & WeatherParams & "&stationId=0"
      set WindyURLsafe to "https://stations.windy.com/pws/update/" & "MYAPIKEY" & "?" & WeatherParams & "&stationId=0"
      set myResult to do shell script WindyURL
      end tell
      end tell
      set myTime to do shell script "date "
      set myString to "----------Timestamp: " & myTime & "-----------" & linefeed & WindyURLsafe & linefeed & myResult
      copy myString to stdout

      It's been running every 7 minutes for quite a while now. It sure seems like it's working! Here is the output from a few minutes ago:
      ----------Timestamp: Fri Apr 17 08:18:35 CDT 2020-----------
      https://stations.windy.com/pws/update/MYAPIKEY?winddir=333&windspeedmph=3.0&windgustmph=9.0&tempf=34.1&rainin=0.42&baromin=28.97&dewptf=33.1&humidity=96&stationId=0
      SUCCESS

      ...and it sure looks like it's getting there!?
      92cc4606-71d2-4295-8739-63acc9f96202-image.png

      Thanks for your help. :)

      Greg

      posted in Windy Stations
      gfay63
      gfay63
    • RE: Report your Weather Station Data to Windy

      @Korina Hi, any thoughts on the above issue? Seems I'm doing everything right?! Thanks in advance!

      posted in Windy Stations
      gfay63
      gfay63
    • RE: Report your Weather Station Data to Windy

      Lastly, here is what I get when I retrieve my data. Per below, observation data is null...

      {"header":{"name":"Round Hill, Overland Park, KS","content":{"url":"","text":"FayIronmanWS"},"agl_temp":10,"agl_wind":10,"elev_m":322.48,"lat":38.970556,"lon":-94.649167,"stationType":"Davis Vantage Pro 2","shareOption":"Open","id":"f065e403","stationId":0,"type":"pws","updated":"2020-04-16T08:00:53.479Z","observation":{"avgFreqMin":7.231182795698925,"records":1,"avgDelayMin":5,"sumRows":186,"default":false,"latestObs":"2020-04-15T21:41:34.902Z"},"observationUpdated":"2020-04-15T21:41:34.902Z"},"data":null}

      posted in Windy Stations
      gfay63
      gfay63
    • RE: Report your Weather Station Data to Windy

      I also tried adding &stationId=0 and still no luck. Any ideas anyone?

      https://stations.windy.com/pws/update/MYAPIKEY?winddir=105&windspeedmph=8.0&windgustmph=13.0&tempf=47.2&rainin=0.00&baromin=28.90&dewptf=33.6&humidity=59&stationId=0
      SUCCESS

      posted in Windy Stations
      gfay63
      gfay63
    • RE: Report your Weather Station Data to Windy

      @TomSlavkovsky Hi Tom. Just pinging you on this post as I think I may have not replied to the right one (my first time using this forum) and wanted to make sure it is seen. 😬 Thanks in advance!

      posted in Windy Stations
      gfay63
      gfay63