I would like minute hand to move to the next minute only when second hand reaches 60th second
How can I do this?
Thanks
It is currently April 27th, 2024, 3:22 pm
Clock Question
-
- Posts: 868
- Joined: January 4th, 2018, 9:52 pm
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Clock Question
Code: Select all
[Rainmeter]
Update=1000
[MeasureTime]
Measure=Time
IfCondition=(MeasureTime % 60) = 0
IfTrueAction=[!UpdateMeter MeterMinutesHand]
[MeterBackground]
Meter=Image
ImageName=ClockFace.png
SolidColor=0,0,0,1
W=110
H=116
[MeterHoursHand]
Meter=ROTATOR
MeasureName=MeasureTime
X=0
Y=0
W=110
H=116
ImageName=Hours.png
OffsetX=3
OffsetY=3
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=43200
[MeterMinutesHand]
Meter=ROTATOR
MeasureName=MeasureTime
X=0
Y=0
W=110
H=116
ImageName=Minutes.png
OffsetX=3
OffsetY=3
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=3600
UpdateDivider=-1
[MeterSecondsHand]
Meter=ROUNDLINE
MeasureName=MeasureTime
X=0
Y=0
W=110
H=116
LineLength=52
LineColor=247,220,129,255
LineWidth=2
AntiAlias=1
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=60
Using the example .rmskin from https://docs.rainmeter.net/manual/meters/rotator/, and making those changes.
Note that when the skin is first loaded or refreshed, the hands will reflect the exact time to the second, but from then on will only move the minutes hand at the turn of the minute.
-
- Posts: 868
- Joined: January 4th, 2018, 9:52 pm
Re: Clock Question
Thank you very much !jsmorley wrote:See the IfCondition on [MeasureTime] and the UpdateDivider on [MeterMinutesHand].Code: Select all
[Rainmeter] Update=1000 [MeasureTime] Measure=Time IfCondition=(MeasureTime % 60) = 0 IfTrueAction=[!UpdateMeter MeterMinutesHand] [MeterBackground] Meter=Image ImageName=ClockFace.png SolidColor=0,0,0,1 W=110 H=116 [MeterHoursHand] Meter=ROTATOR MeasureName=MeasureTime X=0 Y=0 W=110 H=116 ImageName=Hours.png OffsetX=3 OffsetY=3 StartAngle=4.7124 RotationAngle=6.2832 ValueRemainder=43200 [MeterMinutesHand] Meter=ROTATOR MeasureName=MeasureTime X=0 Y=0 W=110 H=116 ImageName=Minutes.png OffsetX=3 OffsetY=3 StartAngle=4.7124 RotationAngle=6.2832 ValueRemainder=3600 UpdateDivider=-1 [MeterSecondsHand] Meter=ROUNDLINE MeasureName=MeasureTime X=0 Y=0 W=110 H=116 LineLength=52 LineColor=247,220,129,255 LineWidth=2 AntiAlias=1 StartAngle=4.7124 RotationAngle=6.2832 ValueRemainder=60
Using the example .rmskin from https://docs.rainmeter.net/manual/meters/rotator/, and making those changes.
Note that when the skin is first loaded or refreshed, the hands will reflect the exact time to the second, but from then on will only move the minutes hand at the turn of the minute.
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA