leoherzog / WundergroundStationForwarder

🌦️ Google Apps Script code to send your weather station data to Wunderground, Windy, PWSWeather, Weathercloud, OpenWeatherMap, WindGuru, and/or CWOP
42 stars 6 forks source link

Tempest Wind Speeds are mps in JSON but treated as mph in receiver code #15

Closed MattLugar closed 11 months ago

MattLugar commented 11 months ago

Noticed that my tempest station was sending extremely low wind values... Looking at the JSON from my station, as well as the API documentation, the API returns wind in mps and not mph.

Tempest API Docs

The code on the receiver needs to be adjusted to convert to mph and use mps as default...

leoherzog commented 11 months ago

Thanks so much! I saw the station_units part of the JSON response from their API, and for me, it contained "units_wind": "mph", so I had made an assumption that the observations were in those units as well. Thanks for finding my oversight!