leoherzog / WundergroundStationForwarder

🌦️ Google Apps Script code to send your weather station data to Wunderground, Windy, PWSWeather, Weathercloud, OpenWeatherMap, WindGuru, Met (UK) WOW, and/or CWOP
55 stars 9 forks source link

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

Closed MattLugar closed 1 year ago

MattLugar commented 1 year 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 1 year 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!