Windy Community

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

    Autoload plugin

    Windy Plugins
    3
    5
    617
    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

      Please, please, please, add the option to automatically load a plugin specified in the URL. It's annoying to always need to find my plugin in the list and open it manually. Also, it's hard to refer a plugin to other people, I need to give them instructions instead of just a URL.

      I understand that there are some security concerns but can you allow this at least for the official plugins that show in the UI?

      When doing it, please allow loading more plugins at the same time, the URL could be e.g. windy.com/?plugin=pg-mapa&plugin=airspaces.

      1 Reply Last reply Reply Quote 7
      • jakubvrana
        jakubvrana | Premium last edited by jakubvrana

        I've created a poor man solution to load the plugins I always use with a bookmarklet. Create a browser bookmark with this URL (strip the newlines if need to but e.g. Chrome does that automatically, keep javascript:):

        javascript:
        function loadPlugin(id) {
          document.querySelector('[href="#load"]').click();
          setTimeout(() => {
            const input = document.querySelector('[placeholder="Example: windy-plugin-hello-world"]');
            input.value = id;
            input.dispatchEvent(new InputEvent('input'));
            input.nextElementSibling.children[1].click();
          });
        }
        loadPlugin('windy-plugin-pg-mapa');
        setTimeout(() => {
          W.broadcast.fire('rqstOpen', 'plugins');
          setTimeout(() => loadPlugin('windy-plugin-flymet'));
        }, 3000);
        

        Then open https://www.windy.com/plugins and click this bookmark. It will open the plugins I use.

        idefix37 1 Reply Last reply Reply Quote 2
        • idefix37
          idefix37 Sailor Moderator @jakubvrana last edited by idefix37

          @jakubvrana
          Thanks, this allows me to get plugins also on iPad and cell phone which was not possible with the app nor the mobile web. As it automatically opens the app I can’t save a bookmark. So I put your post in favorite.

          1 Reply Last reply Reply Quote 0
          • 3
            3wingweather last edited by

            @jakubvrana works great, this is a very novel solution. However I have ran into trouble loading other plugins with this method. Is it due to plugin size?

            The plugin I particularly want to test is windy-plugin-airspaces by MIT.

            jakubvrana 1 Reply Last reply Reply Quote 0
            • jakubvrana
              jakubvrana @3wingweather | Premium last edited by

              @3wingweather You can now use an URL: https://www.windy.com/plugins/windy-plugin-airspaces.

              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