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

    Day-night terminator plugin

    Windy Plugins
    2
    6
    2.5k
    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.
    • rittelsR
      rittels Code contributor | Premium
      last edited by rittels

      windy-plugin-day-night

      A day-night terminator plugin, using Vladimir Agafonkin's SunCalc library. (This is also used for the sun-position plugin, by @jacobsjo) .

      Changes: v 0.0.36 (21-12-2020):

      1. It is possible to either close the left pane and keep the lines active, or uninstall the plugin complete. (Few plugins uninstall cleanly.)
      2. Windy style time progress bar added for Full year (desktop and mobile).
      3. Different terminator times, for the picker position, displayed in left pane as the picker is moved.
      4. Click on a time-pair to display this in the picker if you want.
      5. Time zone name, daylight saving time rules and offset displayed.
      6. Terminator lines are responsive to the satellite of radar overlay timestamps.
      7. Use the URL to open at a location or time like this:
        https://www.windy.com/plugins/windy-plugin-day-night?lat=-42.5&lng=146.3&date=2020-11-18T06:00Z

      7-Jan-21: Optimized plotting the lines, now smoother and a bit faster.

      1 Reply Last reply Reply Quote 5
      • jmh2002J
        jmh2002 Moderator Mariners - Seafarers Sailor
        last edited by jmh2002

        @rittles

        Thanks! for this new plugin.

        I see the URL there https://www.windy.com/plugins/windy-plugin-day-night opens windy and the plugin screen directly which is really nice to load plugins faster, but it is possible to add a particular lat/long to the URL instead of my default location?

        I tried a few combinations but couldn't manage to figure it out?

        Windy_ Install Windy plugin - Google Chrome 2020-1.jpg

        WINDY is everywhere :)

        rittelsR 1 Reply Last reply Reply Quote 0
        • rittelsR
          rittels Code contributor @jmh2002 | Premium
          last edited by

          @jmh2002

          You can now:

          https://www.windy.com/plugins/windy-plugin-day-night?lat=-42.5&lng=146.3&date=2020-11-18T06:00Z

          jmh2002J 1 Reply Last reply Reply Quote 1
          • jmh2002J
            jmh2002 Moderator Mariners - Seafarers Sailor @rittels
            last edited by jmh2002

            @rittels said in Day-night terminator plugin:

            @jmh2002

            You can now:

            https://www.windy.com/plugins/windy-plugin-day-night?lat=-42.5&lng=146.3&date=2020-11-18T06:00Z

            Thanks that's great, but I guess this is custom code for your plugin(s) ?

            I was hoping there might be a standard that would work with all the Windy Plugins so that I can make URL Favourites in my browser that would both open the location as well as the correct plugin. eg, something like this:

            (I used a similar format as with other layers, eg: https://www.windy.com/-Rain-thunder-rain?rain,-36.851,174.768,5,i:pressure)

            to give me this:

            https://www.windy.com/plugins/windy-plugin-day-night,-36.851,174.768,5,i:pressure

            That doesn't quite work but does get me close, displaying both the right location and opening the plugins sidebar at the same time (see screenshot).

            Combined with rearranging the plugins, so that the ones I like most are at the top (like you suggested in the other thread) that's a work around for the moment I suppose.

            But I still think it would be great if this worked in a standard way in Windy for all plugins.

            It would also be very helpful to be able to give a complete link to another person whereby one click of the URL opens everything as desired.

            Sorry for getting a bit off topic in your Day-night thread :)

            Thanks again.

            Windy_ Install Windy plugin - Google Chrome 2020-1.jpg

            WINDY is everywhere :)

            rittelsR 1 Reply Last reply Reply Quote 1
            • rittelsR
              rittels Code contributor @jmh2002 | Premium
              last edited by

              Hi @jmh2002

              This is how the query string works: https://community.windy.com/topic/13421/updated-plugins-system

              The author of the plugin has to handle to query string within the plugin. There is no standard, but ..../windy-plugin-name?lat=xxx&lng=xxx to set the map center and open the picker seems logical.

              1 Reply Last reply Reply Quote 0
              • rittelsR
                rittels Code contributor | Premium
                last edited by

                New version:

                1. It is possible to either close the left pane and keep the lines active, or uninstall the plugin complete. (Few plugins uninstall cleanly.)
                2. Windy style time progress bar added for Full year (desktop and mobile).
                3. Different terminator times, for the picker position, displayed in left pane as the picker is moved.
                4. Click on a time-pair to display this in the picker if you want.
                5. Time zone name, daylight saving time rules and offset displayed.
                6. Terminator lines are responsive to the satellite of radar overlay timestamps.
                7. Previously added (see above): use the URL to open at a location or time like this:
                  https://www.windy.com/plugins/windy-plugin-day-night?lat=-42.5&lng=146.3&date=2020-11-18T06:00Z
                1 Reply Last reply Reply Quote 2
                • First post
                  Last post
                Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
                NodeBB & contributors, OSM & contributors, HERE maps
                Terms of Use     Privacy Policy