ozarour
1
Hi everyone
I am working on a new face and decided to do rotating wheels for day/date
For the day I used this expression: ((((#DOW#+((#DH#+(#Dm#/60))/24))/7)*-360))
For the date rotation I used this expression: ((((#Dd#+((#DH#+(#Dm#/60))/24))/31)*-360)+11.61)
Thank you @Mellin for the expressions
The problem is the smooth rotation runs for 24h, so mid day the wheels are not centered in the window
I want the rotation to run say; from 10pm to 2am then the day/date wheels stop rotating and centre in the window the rest of the 24h
Any suggestions is appreciated
1 Like
Interesting problem …
Not a full solution but maybe a start …
Perhaps a test on the hour using a 24hr tag and if it is between 2am and 10pm then just use a simple date formula like
(((#Dd#/31)*360)+11.613)
else
use the complex, continuously varying one - although it would need to be adjusted for a full day’s rotation in 4 hours instead of 24.
ozarour
3
Thank you very much @mikeoday for your advice… however I am afraid I cannot follow you…
1 Like
I think I have found a way but only with two date wheels …
1st wheel opacity: $#DH#>=2?100:0$
Rotation: $#DH#<22?(((#Dd#/31)-360)+11.613):((((#Dd#+6((#DH#-22+(#Dm#/60))/24))/31)*-360)+11.61)$
2nd wheel opacity: $#DH#<2?100:0$
Rotation: ((((#Dd#-0.5+6*((#DH#+(#Dm#/60))/24))/31)*-360)+11.61)
I think that will work…
1 Like
ozarour
5
Thank you very much @mikeoday for the efforts
I just tested it
The 1st wheel opacity is working fine between 02:00 and 00:00 but it is not showing the correct date; at 22:00 the date turns to the next date
The 2nd wheel opacity turns it on at 00:00 to 02:00 and it is showing the correct date with smooth rotation
If you have time I would appreciate a look at the test face I created
OZ
There is an error in the first expression - a paste/forum issue I think
The “*” symbol immediately before the -360 is missing
Should be:
" $#DH#<=22?(((#Dd#/31)-360)+11.613):((((#Dd#+6((#DH#-22+(#Dm#/60))/24))/31)-360)+11.61)$ "
Please let me know if that fixes the problem.
edit: Damn, still happening …
Should be: $ #DH# <= 22 ? ((( #Dd# / 31) * -360) + 11.613): etc.
edit: Try again
$#DH#<=22?(((#Dd#/31)X-360)+11.613):((((#Dd#+6((#DH#-22+(#Dm#/60))/24))/31)X-360)+11.61)$
replace the two X’s with *
What is it with the forum - why can’t I paste the formula with " * " in it ?!!!
ozarour
8
It’s working now, however once the clock is 23:00 to 23:59 the wheel returns to 1 then the second wheel kicks in (whic is working fine)
I’m guessing its related to “#DH#<=22” and “#DH#-22” parts…
Can you post the link to the watch again, it is not working.
Also, please check the formula again to make sure all the * symbols are there. There should be one after the 6. As in 6*(
You are right - should be < 22 not <= 22
ozarour
11
Yep, it’s working now after the last two fixes…
check it out…
1 Like
I am glad it is working now!
The link still does not work for me but that might be because I’m on my IPAD …
edit: I managed to copy and tweak the link so I can now load your face - it is looking good!
ozarour
13
It’s working fine now, I am trying to apply the same to week day wheels by replacing Dd with DOW
I will keep you posted
Thank you very much for your help…
1 Like