Unable to send data via Google code.gs script.
-
I am trying to send data for my station via a code.gs script that was provided to me.
When I run the script, it is able send data a several other weather sites but fails on the upload to Windy. com with the following execution error:Exception: Request failed for https://stations.windy.com returned code 400. Truncated server response: {"observations":[{"index":1,"errors":[{"value":null,"property":"stationId","children":[],"constraints":{"max":"station id must be positive 32-bit i... (use muteHttpExceptions option to examine full response)
at updateWindy_(Code:1174:30)Can you help with this?
-
@cfrank01 Thank you for the report. It seems that code.gs is not an official Windy implementation, so unfortunately we are not able to help with it directly.
Based on the error you shared, it appears that code.gs is trying to use the legacy API together with the new API payload, which cannot work. Please see https://stations.windy.com/api-reference for more details.
I would recommend contacting the author of code.gs and kindly asking them to update the script to support the new API.