Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Display weather detail in API

    Developers
    4
    5
    2291
    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.
    • jakubvrana
      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
      • ivo
        ivo Administrator 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
        • marekd
          marekd Administrator 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
          • jakubvrana
            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
            • KairosAerospace
              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

              woof

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