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

    All wind vectors data is null

    Windy API v4
    2
    5
    797
    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.
    • V
      Vsevol0d
      last edited by

      Hi. I have a question regarding Point Forecast API request return values -
      POST Request is successfull but wind speed vectors are just 'null' for each altitude
      "wind_u-surface": [
      null,
      null,
      "wind_u-1000h": [
      null,
      null,
      null,
      and so on for other altitudes. Previously it worked fine, but stopped work starting from the last week
      What could be the reason of it?

      Filip_KF 1 Reply Last reply Reply Quote 1
      • Filip_KF
        Filip_K Developers @Vsevol0d
        last edited by

        Hi @Vsevol0d, could You please send whole body of POST request (except for the key)? I do get values for wind when I send my request.

        V 1 Reply Last reply Reply Quote 0
        • V
          Vsevol0d @Filip_K
          last edited by

          Hi @Filip_K
          Sure -
          Request:
          POST https://api.windy.com/api/point-forecast/v2
          Headers: {Content-Type: application/json; charset=utf-8 Content-Length: 198}
          Content: {"lat": "45,6248922", "lon": "14,2649134", "model": "gfs", "parameters": ["wind"], "key": "RvnKEo0VvicDBOE3wjgowmGNtHAWEpaO", "levels": ["surface","1000h","950h","925h","900h","850h","800h","700h"]}

          Response:
          Headers:
          {StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
          {
          X-Powered-By: api4-6b99df476b-68lwg: v5.22.0 api4
          Access-Control-Allow-Origin: *
          Access-Control-Allow-Credentials: true
          Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE
          Cache-Control: private, no-cache, no-store, must-revalidate
          Pragma: no-cache
          Vary: Accept-Encoding
          Date: Tue, 10 Sep 2024 08:45:21 GMT
          Via: 1.1 google
          Alt-Svc: h3=":443"; ma=2592000
          Alt-Svc: h3-29=":443"; ma=2592000
          Expires: -1
          Content-Type: application/json; charset=utf-8
          Content-Length: 8162
          }}

          Content:
          {
          "ts": [
          1725872400000,
          1725883200000,
          ...
          ],
          "units": {
          "wind_u-surface": "ms-1",
          "wind_u-1000h": "m
          s-1",
          "wind_u-950h": "ms-1",
          "wind_u-925h": "m
          s-1",
          "wind_u-900h": "ms-1",
          "wind_u-850h": "m
          s-1",
          "wind_u-800h": "ms-1",
          "wind_u-700h": "m
          s-1",
          "wind_v-surface": "ms-1",
          "wind_v-1000h": "m
          s-1",
          "wind_v-950h": "ms-1",
          "wind_v-925h": "m
          s-1",
          "wind_v-900h": "ms-1",
          "wind_v-850h": "m
          s-1",
          "wind_v-800h": "ms-1",
          "wind_v-700h": "m
          s-1"
          },
          "wind_u-surface": [
          null,
          null,
          ...
          ],
          "wind_u-1000h": [
          null,
          null,
          ...
          ],
          "wind_u-950h": [
          null,
          null,
          ...
          ],
          "wind_u-925h": [
          null,
          null,
          ...
          ],
          "wind_u-900h": [
          null,
          null,
          ...
          ],
          "wind_u-850h": [
          null,
          null,
          ...
          ],
          "wind_u-800h": [
          null,
          null,
          ...
          ],
          "wind_u-700h": [
          null,
          null,
          ...
          ],
          "wind_v-surface": [
          null,
          null,
          ...
          ],
          "wind_v-1000h": [
          null,
          null,
          ...
          ],
          "wind_v-950h": [
          null,
          null,
          ...
          ],
          "wind_v-925h": [
          null,
          null,
          ...
          ],
          "wind_v-900h": [
          null,
          null,
          ...
          ],
          "wind_v-850h": [
          null,
          null,
          ...
          ],
          "wind_v-800h": [
          null,
          null,
          ...
          ],
          "wind_v-700h": [
          null,
          null,
          ...
          ]
          }

          Filip_KF 1 Reply Last reply Reply Quote 0
          • Filip_KF
            Filip_K Developers @Vsevol0d
            last edited by

            @Vsevol0d
            Aha, I see the problem. The coordinates are actually in wrong format, they need to use decimal point, not decimal comma.

            So ... "lat": "45,6248922", "lon": "14,2649134" ... doesn't work but ... "lat": "45.6248922", "lon": "14.2649134" ... does.

            I'm not sure if the API worked with decimal comma before, but it is possible.

            V 1 Reply Last reply Reply Quote 1
            • V
              Vsevol0d @Filip_K
              last edited by

              @Filip_K Thanks! Format fixing helped

              1 Reply Last reply Reply Quote 1
              • First post
                Last post
              Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
              NodeBB & contributors, OSM & contributors, HERE maps
              Terms of Use     Privacy Policy