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

    Day-night terminator plugin

    Scheduled Pinned Locked Moved Windy Plugins
    7 Posts 2 Posters 3.8k Views 2 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.
    • rittelsR Offline
      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 Offline
        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 Offline
          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 Offline
            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 Offline
              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 Offline
                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
                rittelsR 1 Reply Last reply Reply Quote 2
                • rittelsR Offline
                  rittels Code contributor @rittels | Premium
                  last edited by rittels

                  Updated the plugin:

                  Moon added:

                  • You can see the phase of the moon and the moon's orientation from the picker position.
                  • You can set altitude of the moon above the horizon, and the terminator line for that altitude will be shown. This can be useful if you need lunar illumination at night. (With the moon at least 20-30 ° above the horizon)

                  Updated the time zones.

                  The plugin is also responsive to the new internal windy plugin sun/moon position

                  More info here: https://rittels-windy-plugins.github.io/?day-night

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