It is currently September 19th, 2021, 10:50 pm

analog word clock

Clocks and timer skins
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

analog word clock

Post by moshi »

not sure if this has been done yet. for those having trouble to learn how to read an analog clock.
Untitled-1.jpg

Code: Select all

[Rainmeter]
AccurateText=1
Update=1000
BackgroundMode=1

[Metadata]
Name=Analog Word Clock
Information=
License=
Version=1.0
Author=Alex Becherer

[MeasureTextTimeM]
Measure=Time
Format="%M"
RegExpSubstitute=1
Substitute="00":"o clock","10":"ten","11":"eleven","12":"twelve","13":"thirteen","14":"fourteen","15":"fifteen","16":"sixteen","17":"seventeen","18":"eighteen","19":"nineteen","1$":"one","2$":"two","3$":"three","4$":"four","5$":"five","6$":"six","7$":"seven","8$":"eight","9$":"nine","0$":"","^0":"","^2":"twenty","^3":"thirty","^4":"forty","^5":"fifty"

[MeasureTextTimeH]
Measure=Time
Format="%I"
Substitute="01":"one","02":"two","03":"three","04":"four","05":"five","06":"six","07":"seven","08":"eight","09":"nine","10":"ten","11":"eleven","00":"twelve"

[MeasureTime]
Measure=Time

[MeasureTimeHours]
Measure=Calc
Formula=(-((MeasureTime / 43200) - (FLOOR (MeasureTime / 43200)))*360)+90

[MeasureTimeMinutes]
Measure=Calc
Formula=(-((MeasureTime / 3600) - (FLOOR (MeasureTime / 3600)))*360)+90

[MeasureSinAngle]
Measure=Calc
Formula=SIN((MeasureTimeHours)/360*2*PI)

[MeasureNegSinAngle]
Measure=Calc
Formula=-(MeasureSinAngle)

[MeasureCosAngle]
Measure=Calc
Formula=COS((MeasureTimeHours)/360*2*PI)

[MeasureTX]
Measure=Calc
Formula=110-MeasureCosAngle*110-MeasureSinAngle*110

[MeasureTY]
Measure=Calc
Formula=110-MeasureNegSinAngle*110-MeasureCosAngle*110

[MeasureSinAngleM]
Measure=Calc
Formula=SIN((MeasureTimeMinutes)/360*2*PI)

[MeasureNegSinAngleM]
Measure=Calc
Formula=-(MeasureSinAngleM)

[MeasureCosAngleM]
Measure=Calc
Formula=COS((MeasureTimeMinutes)/360*2*PI)

[MeasureTXM]
Measure=Calc
Formula=110-MeasureCosAngleM*110-MeasureSinAngleM*110

[MeasureTYM]
Measure=Calc
Formula=110-MeasureNegSinAngleM*110-MeasureCosAngleM*110

[MeterBack]
Meter=ROUNDLINE
X=0
Y=0
W=220
H=220
LineLength=50
Solid=1
UpdateDivider=-1
AntiAlias=1
LineColor=000000a5

[MeterHandHours]
Meter=ROUNDLINE
MeasureName=MeasureTime
X=0
Y=0
W=220
H=220
AntiAlias=1
LineWidth=20
LineLength=80
LineStart=0
StartAngle=(RAD(270))
RotationAngle=(RAD(360))
ValueRemainder=43200
LineColor=ff000050

[MeterH]
Meter=String
X=110
Y=110
MeasureName=MeasureTextTimeH
W=140
H=220
FontColor=ffffff
FontSize=12
FontFace=Segoe UI
AntiAlias=1
DynamicVariables=1
StringAlign=CENTERCENTER
TransformationMatrix=[MeasureCosAngle]; [MeasureNegSinAngle]; [MeasureSinAngle]; [MeasureCosAngle]; [MeasureTX]; [MeasureTY]
Padding=80,0,0,0
StringCase=Upper
StringEffect=BORDER
FontEffectColor=000000

[MeterHandMinutes]
Meter=ROUNDLINE
MeasureName=MeasureTime
X=0
Y=0
W=220
H=220
AntiAlias=1
LineWidth=20
LineLength=100
LineStart=0
StartAngle=(RAD(270))
RotationAngle=(RAD(360))
ValueRemainder=3600
LineColor=ff000050

[MeterM]
Meter=String
X=110
Y=110
MeasureName=MeasureTextTimeM
W=140
H=220
FontColor=ffffff
FontSize=10
FontFace=Segoe UI
AntiAlias=1
DynamicVariables=1
StringAlign=CENTERCENTER
TransformationMatrix=[MeasureCosAngleM]; [MeasureNegSinAngleM]; [MeasureSinAngleM]; [MeasureCosAngleM]; [MeasureTXM]; [MeasureTYM]
Padding=80,0,0,0
StringCase=Lower
StringEffect=BORDER
FontEffectColor=000000
You do not have the required permissions to view the files attached to this post.