Day-night terminator plugin
-
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):
- It is possible to either close the left pane and keep the lines active, or uninstall the plugin complete. (Few plugins uninstall cleanly.)
- Windy style time progress bar added for Full year (desktop and mobile).
- Different terminator times, for the picker position, displayed in left pane as the picker is moved.
- Click on a time-pair to display this in the picker if you want.
- Time zone name, daylight saving time rules and offset displayed.
- Terminator lines are responsive to the satellite of radar overlay timestamps.
- 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.
-
@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?
-
-
@rittels said in Day-night terminator plugin:
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.
-
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.
-
New version:
- It is possible to either close the left pane and keep the lines active, or uninstall the plugin complete. (Few plugins uninstall cleanly.)
- Windy style time progress bar added for Full year (desktop and mobile).
- Different terminator times, for the picker position, displayed in left pane as the picker is moved.
- Click on a time-pair to display this in the picker if you want.
- Time zone name, daylight saving time rules and offset displayed.
- Terminator lines are responsive to the satellite of radar overlay timestamps.
- 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