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

WindGust is missing for PWSWeather #4

Closed judgetom closed 3 years ago

judgetom commented 3 years ago

Hello,

in the function updatePWSWeather_() the following line is missing: if (station.imperial.windGust != null) request += '&windgustmph=' + station.imperial.windGust;

By adding this line the windGust will also be provided.

Best regards, and thanks for the script, judgetom

leoherzog commented 3 years ago

Thanks! I was basing this built URL off of the PWSWeather uploader in acuparse.

https://gitlab.com/acuparse/acuparse/-/blob/dev/src/fcn/cron/uploaders/pwsweather.php

Is this parameter actually supported by PWSWeather? They don't have any API docs :(

leoherzog commented 3 years ago

Seems to be referenced by other projects!

https://github.com/OurColonial/WeatherLink-to-PWSweather

https://pywws.readthedocs.io/en/latest/api/pywws.service.pwsweather.html

judgetom commented 3 years ago

Yes, it works well since I added it.

leoherzog commented 3 years ago

Thanks again!