It is currently June 24th, 2024, 12:09 am

System up time with other time not working in the same ini

Get help with creating, editing & fixing problems with skins
KatoPlato
Posts: 1
Joined: May 21st, 2024, 5:15 am

System up time with other time not working in the same ini

Post by KatoPlato »

I can not get this skin ini to give me an accurate system up time. I think maybe using multiple measure=Time things is somehow overwriting the MeasureUpTimeString method. If I separate it out it works. But I would really like to keep it all in one ini. Please help.

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=00000001
MouseScrollUpAction=[!SetVariable size "(#size#+0.05)"][!WriteKeyValue Variables size "(#size#+0.05)"][!Refresh] 
MouseScrollDownAction=[!SetVariable size "(#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)"][!WriteKeyValue Variables size "(#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)"][!Refresh]

[Variables]
@Include=#@#Variables.inc
size=1.25


; Measures
;=================================================

[MeasureTime]
Measure=Time

[MeasureUserLoginTime]
Measure=Plugin
Plugin=SysInfo
SysInfoType=USER_LOGONTIME
UpdateDivider=-1

[MeasureUpTime]
Measure=UpTime
Format="%4!02i! : %3!02i! : %2!02i! : %1!02i!"
;DynamicVariables=1

[MeasureUpTimeString]
Measure=UpTime
TimeStamp=([MeasureTime:] - [MeasureUserLoginTime:])
;Format=%A, %B %#d, %Y at %I:%M:%S %p
Format="%4!02i! : %3!02i! : %2!02i! : %1!02i!"
DynamicVariables=1


[Refresh]
Measure=Calc
Formula=Refresh+1 % 2
IfAboveValue=1
IfAboveAction=!Refresh
DynamicVariables=1

[MeasureSecond]
Measure=Time
Format=%S
DynamicVariables=1

[MeasureMinute]
Measure=Time
Format=%M
DynamicVariables=1

[MeasureHour]
Measure=Time
Format=%H
DynamicVariables=1

[MeasureDay]
Measure=Time
Format=%d
DynamicVariables=1

[MeasureWeekday]
Measure=Time
Format=%A
DynamicVariables=1

[MeasureMonth]
Measure=Time
Format=%B
DynamicVariables=1

[MeasureYear]
Measure=Time
Format=%Y
DynamicVariables=1

[MeasureDayTime]
Measure=Time
Format=%H:%M:%S
DynamicVariables=1

[MeasureSecondBar]
Measure=Calc
Formula=MeasureSecond / 60
DynamicVariables=1

[MeasureMinuteBar]
Measure=Calc
Formula=MeasureMinute / 60
DynamicVariables=1

[MeasureHourBar]
Measure=Calc
Formula=MeasureHour / 24
DynamicVariables=1

[MeasureAMPM]
Measure=Time
Format=%p
DynamicVariables=1


; Meters
;=================================================

[MeterBackground]
Meter=Image
;ImageName=#@#Images\3.png
X=(#size#*0)
Y=(#size#*0)
W=(#size#*401)
H=(#size#*401)
SolidColor=#NoColor#
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[MeterUpTime]
Meter=String
MeasureName=MeasureUpTimeString
X=(#size#*200)
Y=(#size#*295)
FontFace=Ink Free
FontColor=#Grey1Color#
FontSize=(#size#*10)
FontEffectColor=#FontEffectColor#
StringAlign=CenterCenter
Text=%1
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[MeterWeekday]
Meter=String
MeasureName=MeasureWeekday
X=(#size#*200)
Y=(#size#*130)
FontFace=Ink Free
FontColor=#HeadTopColor#
FontSize=(#size#*28)
StringAlign=CenterCenter
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[MeterMonthYear]
Meter=String
MeasureName=MeasureMonth
MeasureName2=MeasureYear
MeasureName3=MeasureDay
X=(#size#*200)
Y=(#size#*265)
FontFace=Ink Free
FontColor=#HeadBottomColor#
FontSize=(#size#*14)
StringAlign=CenterCenter
Text=%3, %1, %2
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDayTime
X=(#size#*200)
Y=(#size#*200)
FontFace=Ink Free
FontSize=(#size#*48)
FontColor=#HeadingColor#
StringAlign=CenterCenter
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[Variables]
size=((((((((((((((#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)-0.05 < 0.2 ? 0.2 : (#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)-0.05)-0.05 < 0.2 ? 0.2 : ((#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)-0.05 < 0.2 ? 0.2 : (#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)-0.05)-0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)

Last edited by Brian on May 21st, 2024, 5:56 am, edited 1 time in total.
Reason: Changed [Snippet] tags for [Code] tags. It's the </> button.
User avatar
Yincognito
Rainmeter Sage
Posts: 7491
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: System up time with other time not working in the same ini

Post by Yincognito »

KatoPlato wrote: May 21st, 2024, 5:27 am I can not get this skin ini to give me an accurate system up time. I think maybe using multiple measure=Time things is somehow overwriting the MeasureUpTimeString method. If I separate it out it works. But I would really like to keep it all in one ini. Please help.
It works for me, gives the same value as the Task Manager (added the missing variables, since you didn't post the @included ...\@Resources\Variables.inc file):

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=00000001
MouseScrollUpAction=[!SetVariable size "(#size#+0.05)"][!WriteKeyValue Variables size "(#size#+0.05)"][!Refresh] 
MouseScrollDownAction=[!SetVariable size "(#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)"][!WriteKeyValue Variables size "(#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)"][!Refresh]

[Variables]
@Include=#@#Variables.inc
size=1.25

; In case Variables.inc above is missing
NoColor=0,0,0,255
Grey1Color=128,128,128,255
FontEffectColor=0,0,0,255
HeadTopColor=255,0,0,255
HeadBottomColor=0,255,0,255
HeadingColor=0,0,255,255
; End of Variables.inc alternative

; Measures
;=================================================

[MeasureTime]
Measure=Time

[MeasureUserLoginTime]
Measure=Plugin
Plugin=SysInfo
SysInfoType=USER_LOGONTIME
UpdateDivider=-1

[MeasureUpTime]
Measure=UpTime
Format="%4!02i! : %3!02i! : %2!02i! : %1!02i!"
;DynamicVariables=1

[MeasureUpTimeString]
Measure=UpTime
TimeStamp=([MeasureTime:] - [MeasureUserLoginTime:])
;Format=%A, %B %#d, %Y at %I:%M:%S %p
Format="%4!02i! : %3!02i! : %2!02i! : %1!02i!"
DynamicVariables=1


[Refresh]
Measure=Calc
Formula=Refresh+1 % 2
IfAboveValue=1
IfAboveAction=!Refresh
DynamicVariables=1

[MeasureSecond]
Measure=Time
Format=%S
DynamicVariables=1

[MeasureMinute]
Measure=Time
Format=%M
DynamicVariables=1

[MeasureHour]
Measure=Time
Format=%H
DynamicVariables=1

[MeasureDay]
Measure=Time
Format=%d
DynamicVariables=1

[MeasureWeekday]
Measure=Time
Format=%A
DynamicVariables=1

[MeasureMonth]
Measure=Time
Format=%B
DynamicVariables=1

[MeasureYear]
Measure=Time
Format=%Y
DynamicVariables=1

[MeasureDayTime]
Measure=Time
Format=%H:%M:%S
DynamicVariables=1

[MeasureSecondBar]
Measure=Calc
Formula=MeasureSecond / 60
DynamicVariables=1

[MeasureMinuteBar]
Measure=Calc
Formula=MeasureMinute / 60
DynamicVariables=1

[MeasureHourBar]
Measure=Calc
Formula=MeasureHour / 24
DynamicVariables=1

[MeasureAMPM]
Measure=Time
Format=%p
DynamicVariables=1


; Meters
;=================================================

[MeterBackground]
Meter=Image
;ImageName=#@#Images\3.png
X=(#size#*0)
Y=(#size#*0)
W=(#size#*401)
H=(#size#*401)
SolidColor=#NoColor#
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[MeterUpTime]
Meter=String
MeasureName=MeasureUpTimeString
X=(#size#*200)
Y=(#size#*295)
FontFace=Ink Free
FontColor=#Grey1Color#
FontSize=(#size#*10)
FontEffectColor=#FontEffectColor#
StringAlign=CenterCenter
Text=%1
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[MeterWeekday]
Meter=String
MeasureName=MeasureWeekday
X=(#size#*200)
Y=(#size#*130)
FontFace=Ink Free
FontColor=#HeadTopColor#
FontSize=(#size#*28)
StringAlign=CenterCenter
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[MeterMonthYear]
Meter=String
MeasureName=MeasureMonth
MeasureName2=MeasureYear
MeasureName3=MeasureDay
X=(#size#*200)
Y=(#size#*265)
FontFace=Ink Free
FontColor=#HeadBottomColor#
FontSize=(#size#*14)
StringAlign=CenterCenter
Text=%3, %1, %2
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[MeterTime]
Meter=String
MeterStyle=TextStyle
MeasureName=MeasureDayTime
X=(#size#*200)
Y=(#size#*200)
FontFace=Ink Free
FontSize=(#size#*48)
FontColor=#HeadingColor#
StringAlign=CenterCenter
AntiAlias=1
DynamicWindowSize=1
DynamicVariables=1

[Variables]
size=((((((((((((((#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)-0.05 < 0.2 ? 0.2 : (#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)-0.05)-0.05 < 0.2 ? 0.2 : ((#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)-0.05 < 0.2 ? 0.2 : (#size#-0.05 < 0.2 ? 0.2 : #size#-0.05)-0.05)-0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)+0.05)
Uptime.jpg
You do not have the required permissions to view the files attached to this post.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth