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

    Display weather detail in API

    Scheduled Pinned Locked Moved Developers
    5 Posts 4 Posters 3.8k 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.
    • jakubvranaJ Offline
      jakubvrana | Premium
      last edited by

      Is it possible to display the weather detail (and wind, meteogram, airgram and waves) in the Windy API? It's possible in a plugin using broadcast.fire('rqstOpen', 'detail', {lat, lon}). Trying this in the API throws:

      lib.js:77 Uncaught (in promise) TypeError: Cannot read property 'parentElement' of null
          at Object.createNode (lib.js:77)
          at Object._mount (lib.js:57)
          at Object.open (lib.js:57)
      

      Do I need to somehow register the detail panel first or is it simply not possible?

      1 Reply Last reply Reply Quote 0
      • ivoI Offline
        ivo Windy Staff
        last edited by

        Jase bojim ze v knihovne lib.js neni detail vubec uvazovan. Je to omezeny subset kodu.

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

          Je to jak píše @ivo, z bundle API knihovny tento kus kódu vyhazujeme. Cílem API je mapa, nikoliv forecast.

          1 Reply Last reply Reply Quote 0
          • jakubvranaJ Offline
            jakubvrana | Premium
            last edited by

            Díky, nechám tam tedy odkaz na windy.com/lat/lon[/wind].

            1 Reply Last reply Reply Quote 0
            • KairosAerospaceK Offline
              KairosAerospace | Premium
              last edited by

              Will "detail" forecast plugin be added to the Windy API?

              Here it looks like it is possible, but only "picker" and "menu" are able to opened using: broadcast.fire('rqstOpen')

              https://github.com/windycom/windy-plugins/blob/master/docs/WINDY_API.md#module-picker

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