Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login

    Unable to send data via Google code.gs script.

    Scheduled Pinned Locked Moved Windy Stations
    2 Posts 2 Posters 72 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C Offline
      cfrank01
      last edited by

      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?

      marekdM 1 Reply Last reply Reply Quote 0
      • marekdM Offline
        marekd Windy Staff @cfrank01
        last edited by

        @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.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Windy Community  |  Powered by excellent NodeBB
        Terms of Use     Privacy Policy     Windy.com