Windy Community
    • Unread
    • Categories
    • Groups
    • Go to windy.com
    • Register
    • Login
    1. Home
    2. Στάθης Σταθόπουλος
    • Profile
    • Following 0
    • Followers 1
    • Topics 4
    • Posts 8
    • Best 2
    • Controversial 0
    • Groups 0

    Στάθης Σταθόπουλος

    @Στάθης Σταθόπουλος

    2
    Reputation
    9
    Profile views
    8
    Posts
    1
    Followers
    0
    Following
    Joined Last Online

    Στάθης Σταθόπουλος Unfollow Follow

    Best posts made by Στάθης Σταθόπουλος

    • Windy integration with React

      Hello there,

      I would like to ask for some guidance of how I might be able to integrate your service with a React application since our client would like to use your service but there is no clear way of doing that and their existing code base is already build with React.

      Is there a way we can get official support on integrating it or is that something Windy doesn't offer ?

      Thanks in advance.

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος
    • RE: Windy integration with React

      @Suty After hours of work I finally figured it out and integrated with react! A small bug took me ages to find but it was the global event handler you use for the click. Added on a local copy of the libBoot script a clean up function and it works like a charm. (in a hacky way of charm)

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος

    Latest posts made by Στάθης Σταθόπουλος

    • RE: Windy integration with React

      @Aurelia12 My solution is a modified version of the lib library (de-obfuscated) which I am not sure is allowed. Its one thing to use it for personal use and another to distribute it. Maybe @Suty can shine some light. Pretty sure I cannot upload my mod on github. You can add me on Discord if you want so I can help you in the meantime. Discord: stathis21098

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος
    • RE: Windy integration with React

      @Suty After hours of work I finally figured it out and integrated with react! A small bug took me ages to find but it was the global event handler you use for the click. Added on a local copy of the libBoot script a clean up function and it works like a charm. (in a hacky way of charm)

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος
    • RE: Windy Integration with React: Seeking Help with Plugin Initialization

      @Στάθης-Σταθόπουλος I finally found it. The ClickHandler module adds a global event on click to bubble and get picked up by the menu with data-do="rqstOpen,menu" for example and anything that may have events. When you unmount the component this event handler sticks and on remount it adds again a second time which breaks things because when you loadScript from @plugins/menu it re-defines it causing an error. I will make a public script real soon with the code to integrade windy with React unofficially. 15 hours of de obfuscating paid off :P

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος
    • RE: Windy Integration with React: Seeking Help with Plugin Initialization

      @Στάθης-Σταθόπουλος After de-obfuscating around 4000 lines of the 15000 I realized the problem is double event handles that are left over from the first initialization and even though I clean things after an un-mount the event listeners are still there and for example on menu click the fetch the new W.define and reload the script. I will keep this post updated when I figure it out. Maybe write a script for the rest of the people struggling with it.

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος
    • Windy Integration with React: Seeking Help with Plugin Initialization

      Hello there,

      After spending several hours trying to add Windy to a React project, I managed to hack my way into React-ifying Windy and got it to work. I’m planning on releasing the library once it's ready. However, I’ve hit a snag that I could really use some help with.

      The Issue:
      I can't seem to figure out where the @plugin-menu plugin is initialized so that I can reset it properly. The problem arises when the component unmounts and mounts again. Without resetting, I encounter an error when the plugin tries to reinitialize. I've found and reset some global variables (like window.W) that were causing issues, but I can't locate where the plugins are initialized.

      The Error:
      When I remount the object multiple times and try to open the menu, I get the same error as many times as I’ve remounted the map. This suggests that some data is stored every time the plugin is initialized—perhaps in a callback function? I’m considering downloading Chromium to dive deeper, but it’s quite heavy, so I wanted to check here first.

      I also downloaded the library and slowly and painfully de-obfuscating to maybe understand what it does with the plugins after all the variables are a little more readable.

      What I Need:
      Does anyone know a hacky way to reset the plugin? Any insights would save me a ton of time and effort. Regardless, I need to figure this out for the project I'm working on.

      Thanks in advance for any help!

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος
    • Can I display the default leaflet map before I deside to enable the wind/temp layers?

      I have made already some trip planing with markers and lines which is not that visible with all of that on them map and I would like to have the default leaflet white open street map layer while drawing and enable the winds later.

      posted in Windy API v4
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος
    • Windy integration with React

      Hello there,

      I would like to ask for some guidance of how I might be able to integrate your service with a React application since our client would like to use your service but there is no clear way of doing that and their existing code base is already build with React.

      Is there a way we can get official support on integrating it or is that something Windy doesn't offer ?

      Thanks in advance.

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος
    • Query on Windy Premium Features - Custom Data and API Usage

      Hey Windy Community,

      I've been fascinated by the capabilities of the platform, and as an avid ship enthusiast planning trips, the wealth of data provided here is truly amazing. I'm considering upgrading to Windy Premium, but before I make the leap, I have a few questions. I would really appreciate any help or pointers on these topics.

      First, does Windy Premium allow me to upload custom data programmatically? Specifically, I'm thinking of pulling data from a third-party website and integrating it into my Windy map. Would this be feasible with the premium package?

      Second, is there an option to download data from windy.com, preferably data of the current day, and view it later through an upload? It would be a great feature to have, allowing me to access and analyze the wind patterns and weather conditions when I'm offline.

      Third, I'm curious if the API provided by Windy supports drawing or annotating directly on the map. I've done some web development in the past, but I'm not looking to write any custom WebGL. I'm hoping for a simple, straightforward method of adding my own notes to the map.

      Lastly, what kind of support comes with Windy Premium? If I run into any issues or technical glitches, where would I go for help? Would this forum be the right place to seek assistance or is there a dedicated support channel for premium users?

      Thanks in advance for any information you can provide. I'm really excited about the potential of Windy Premium and can't wait to see how it could enhance my ship trips.

      Cheers,

      Stathis Stathopoulos.

      posted in Developers
      Στάθης ΣταθόπουλοςΣ
      Στάθης Σταθόπουλος