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

    Trigger event on forecast bar change

    Scheduled Pinned Locked Moved Windy API v4
    5 Posts 2 Posters 2.0k 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.
    • G Offline
      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
      • siimS Offline
        siim
        last edited by

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

        redrawFinished & paramsChanged?

        1 Reply Last reply Reply Quote 0
        • G Offline
          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
          • siimS Offline
            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 Offline
              gregora @siim
              last edited by

              @siim perfect this works yes. Thank you!

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