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

    Convert data from API request

    Windy API v4
    1
    1
    506
    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.
    • D
      Dawn Patrol Surf
      last edited by

      When doing API request using the v4 API, we do get data back.
      For wind, i requested and there are :

      • wind_u-surface array
      • wind_v-surface array

      These correspond to the ts array (with timestamps) in the return data.
      Maybe i miss it but how can i convert the data in the wind_u/v-surface arrays to "wind" objects (direction / speed)?

      I'm calling this from a service so no browser/map is present.
      Is there a package i must include? Or should i write the conversion method myself, if so is there any pointer in how to?

      If i did miss it on the site, please let me know ;-)

      1 Reply Last reply Reply Quote 3
      • 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