Mor3bane wrote: ↑August 22nd, 2020, 7:13 pmI think there may be some variance in my version. This is due to the rotator not being a big sundial sized image but a little one that has a particular aspect which indicates toward the middle of the sundial, just for aesthetics sake, but ya, I am always open to making things more precise.
Yep, I was getting a bit ahead of myself on your:
Code: Select all
StartAngle=(RAD(135))
RotationAngle=((RAD(225+([SinceMoonset]/86400))-0.5))
options. For some reason I was thinking of them as being in the place of
MeasureName (and value) - which they are obviously not. They are still pointless though, as
[SinceMoonset] value being nearly always between 0 and 1 (you can check the Log to be sure about that) and 1/86400 is more or less 0, the value of
RotationAngle will be in effect
(RAD(225)-0.5) all the time as it can be seen below, where the behavior and values are simulated:
Code: Select all
[Variables]
[Rainmeter]
Update=100
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=47,47,47,255
---Measures---
[SinceMoonset]
Measure=Calc
Formula=(SinceMoonset>1?0:(SinceMoonset+0.01))
DynamicVariables=1
[RotationAngle]
Measure=Calc
Formula=((RAD(225+(SinceMoonset/86400))-0.5))
DynamicVariables=1
[RotationAngleSimple]
Measure=Calc
Formula=(RAD(225)-0.5)
DynamicVariables=1
[RotationAngleRadiansOnly]
Measure=Calc
Formula=(RAD(196.3521))
DynamicVariables=1
---Meters---
[MeterTest]
Meter=STRING
X=0
Y=0
FontFace=Consolas
FontColor=255,255,255,255
SolidColor=47,47,47,255
Padding=5,5,5,5
FontSize=16
AntiAlias=1
Text="SinceMoonset = [SinceMoonset]#CRLF#RotationAngle = [RotationAngle]#CRLF#RotationAngleSimple = [RotationAngleSimple]#CRLF#RotationAngleRadiansOnly = [RotationAngleRadiansOnly]"
DynamicVariables=1
[RotationAngle] is what you now calculate,
[RotationAngleSimple] is the actual result of the calculation, and it's clear that they are both the same, irrespective of the value of
[SinceMoonset]. That being said, I have no idea of what that 0.5 means, the whole thing could be even more simplified by just setting the RotationAngle to
(RAD(196.3521)), because that's what you get in the end (not that 196.3521 degrees would make any sense either)...