Navigation

    Windy Community

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

    Trigger event on forecast bar change

    Windy API v4
    2
    5
    470
    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.
    • G
      gregora last edited by

      Is it possible and how to trigger event which returns timestamp when forecast animation is playing or when you click on part of it in the forecast bar?

      I would like to use the timestamp to fetch some of my own data which I can use while the animation plays.

      1 Reply Last reply Reply Quote 0
      • siim
        siim last edited by

        https://api4.windy.com/examples/bcast/

        redrawFinished & paramsChanged?

        1 Reply Last reply Reply Quote 0
        • G
          gregora last edited by

          Ok so redrawFinished will be called every time the forecast changes? How do I get back the object with the timestamp then?

          1 Reply Last reply Reply Quote 0
          • siim
            siim last edited by siim

            store.get('timestamp');

            To see all stored value names:
            console.log(W.store.getAll());

            G 1 Reply Last reply Reply Quote 1
            • G
              gregora @siim last edited by

              @siim perfect this works yes. Thank you!

              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 and Conditions     Privacy Policy