Sunrise/Sunset hands

Hi

I’m trying to make 2 hands (1 for sunrise, 1 for sunset) to rotate on the outside ring of the watch face (over the rick marks)

I tired to use #WSUNRISE# & #WSUNSET# but they only work to show digits

Any help on the expression to use is appreciated

Hi mate the only problem i can see is that you will only be able to show the hour and not the mins to show the hour use ((#WRh#/12)*360) that changes the 1-12 hours into rotation for a hand ok.

Or you could use
(((#WRh#/12)*360)+(#WRm#/60)*30)
that will give you the position the hour hand would be in if it was on a clock face at the time of the sunrise

just replace the WRm With WSm and the WRh With WSh For Sunset ok

2 Likes

Thank you @dazstacey, much appreciated…

Works great in 12 hour format. How about on a 24 hour clock face? Every change I made to get it to work had me off by an hour.

Thanks!

((#WRH#/23)*360)

Try that it should work remember when working with 24hr clock divide by 23 not 24 as the first number should be 0 ok

Here’s my sunrise and sunset:

(((#WRH#/23)*360)+(#WRm#/60)*30)

(((#WSH#/23)*360)+(#WSm#/60)*30)

It’s still off. For example, it showed this morning’s sunrise at about 8am when it should have been about 7am. Could it be a DST issue?

Thanks!

-M

My guess would be, that if you change the hours to 24, a minute would also be less, so *15 instead of *30
(((#WRH#/23)*360)+(#WRm#/60)*15)
(((#WSH#/23)*360)+(#WSm#/60)*15)

1 Like