Sun position plugin
-
just following up on my post above with an example below
-
Hi @stitch ,
I have just published a new version (v0.1.1) that fixes this problem. Now, times are displayed in the timezone of the position selected. If you want to see the times in UTC, you need to enable the "Display all times in UTC" option (zuluMode) in the windy settings.
Jochen
-
@jacobjo
Very cool plugin!!
for mobile: hook to "contextmenu" //menu doesnt work????
and remove class "plugin-mobile-fullscreen" from config.js. //you then have the left pane and not full screen.
or you can use your own class for mobile: classNameMobile: 'this-is-other-class' -
THIS ROCKS THANK YOU
-
@rittels I am not sure how plugins work on mobile. I do not even find the place where you load plugins!? If I directly enter windy.com/plugins into the address bar, I can load the plugin (and also via windy.com/dev), but I can't find the hook in the menu on the right... If I use the contextmenu hook, it does work on mobile but I would prefer to keep it in the menu.
Also, without the "plugin-mobile-fullscreen" the left pane is too large for mobile (having the picker behind the pane). Ideally, I would like to be able to open and close the full-screen page from the script. Is this possible?
-
@jacobjo
Unfortunately, the contextmenu seems to be the only way to open the plugin on mobile.
It is possible to:
this.open() this.close()
You can style the mobile plugin content so that the upper half of the screen is open, to see the picker. Picker is fixed on mobile at 180px. so maybe:
.my-mobile-plugin-div{ position:absolute; top:220px; bottom:0px; width:100% !important; }
hope it helps.
-
I have just released version 0.2.0 of the plugin. It hides the times that do not exist in the detail pane and now supports the mobile page (see changelog in the post on top). To facilitate mobile usage the hook to access the plugin has changed from the Overlay menu to the context menu. Simply right-click the map (or tap and hold on mobile) and click on "Sun Position" to open the plugin
-
@jacobjo
Hello
The plugin on my phone doesn’t work because when I download it it says it’s still on the version 0.1.0
-
@marco-1v Ehm, I am not sure how that could happen. Maybe some caching problem? That seems to be more of a bug inside windy. Try to specify the version by entering
windy-plugin-sun-position@0.2.0
as the plugin nameBesides that, I have made a mistake such that is shows that it is on version 0.1.1 while it is actually on version 0.2.0 (and 0.1.0 if it is actually on version 0.1.1).
-
I have just released version 0.3.0 of the plugin! This update adds details about the moon position. The moon position is shown on the map similar to the sun position. Additional dotted lines show the moonrise and moonset directions. The detail pane also includes the moonrise and moonset times and some details about the current position of the moon. The moon display can be hidden by clicking the moon button the top of the details pane.
Furthermore, I have added options to hide some sun details, grouped by Astronomical and Photography. Astronomical shows astronomical, nautical and civil twilight times and Photography shows blue and golden hour times. Both groups can be enabled together, showing all times as before the update (nautical twilight was wrongly labeled blue hour before the update, while blue hour really is part of the civil twilight).
-
I've just released version 0.3.1 to fix the sidebar issue caused by windy changes.
-
@jacobsjo
A question: at noon I see the azimuth at zero degrees. Is it correct?I thought the azimuth defined as
a horizontal angle measured clockwise from the north
not from the local meridian. -
... a second thought ... are you in the southern hemisphere?
-
@Gkikas-LGPZ
It could be because in Astronomy the azimuth may refer to the South, instead of North (but I am not an astronomy specialist). The South reference was used in former times, but today this is not clear because sometime it refers to North and sometime still to South....
https://en.m.wikipedia.org/wiki/Azimuth
-See Astronomy section-
With this plugin if you take a point far in south hemisphere at near 12:00Z, you see the azimuth of the sun close to 180°. It varies from 180° to -180°, not from 0° to 360°, as shown in this example (-172°):
https://community.windy.com/topic/9017/sun-position-plugin/5
So it’s different from what is used in navigation technic. -
@idefix37 I think this makes things clearer
https://en.wikipedia.org/wiki/Solar_azimuth_angle -
@Gkikas-LGPZ
This is the best link that explains this convention.
BTW in traditional astronavigation or celestial navigation, the solar azimuth is measured from the north... -
Dear jacobsjo,
I am trying to install sun position plugin, but despite it says that plugin was installed, it does not appear menu. i tried it on my laptop (windows) and iPhone. Do you have an idea what might be the problem?
Thanks!
Olga -
I tried too, and it appears it only works on dektop as one-shot action, i.e. only when left panel info is displayed (screenshot); on closing left panel, next click on map returns usual results...
-
@Oilyan @vsinceac I'm not sure what the problem is. I just tried it again and for me, it still works for me (both on PC and on mobile). You should be able to find the option to open it in the context menu (right-click on the map on PC; long tap on the map on mobile). You can move the picker afterward as well, just make sure not to clock on a city label as that opens the weather forecast and closes the plugin pane.
-
Hello
Am I right in thinking this doesn't work on the iPhone app?
I went to www.windy.com/plugins on my phone browser and searched for windy-plugin-sun-position, then installed it, but when I log in on the browser it switches to the app since I am already logged in there. On my app the plugin doesn't appear anywhere.Would appreciate any ideas. Thank you