It is currently September 20th, 2019, 10:39 am

Rainmeter CPU Usage

Help with creating, editing & fixing problems with skins
xenium
Posts: 363
Joined: January 4th, 2018, 9:52 pm

Rainmeter CPU Usage

xenium » May 29th, 2019, 3:33 pm

Hi,
I would like to display CPU Usage only for Rainmeter
How do I do this?

Thanks
User avatar
jsmorley
Developer
Posts: 19461
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Rainmeter CPU Usage

jsmorley » May 29th, 2019, 3:37 pm

Code: Select all

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

[Metadata]
Name=RainmeterProcess
Author=JSMorley
Information=Shows some process information for Rainmeter, using the new UsageMonitor plugin.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=July 25, 2018

[Variables]
Instance=Rainmeter

[MeasureDelay]
Measure=Calc
Formula=MeasureDelay + 1
IfCondition=MeasureDelay > 4
IfTrueAction=[!UpdateMeasureGroup "Starting"][!Delay 2000][!UpdateMeasureGroup "Starting"]

[MeasureStartTime]
Measure=Time
Group=Starting
Disabled=1
Format=%H:%M:%S
UpdateDivider=-1

[MeasureCurrentTime]
Measure=Time
Format=%H:%M:%S

[MeasureUsedCPU_Starting]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Alias=CPU
Name=#Instance#
UpdateDivider=-1

[MeasureUsedCPU]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Alias=CPU
Name=#Instance#

[MeasureIDProcess]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=ID Process
Name=#Instance#

; Handles and Threads

[MeasureHandleCount_Starting]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Handle Count
Name=#Instance#
UpdateDivider=-1

[MeasureHandleCount]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Handle Count
Name=#Instance#

[MeasureThreadCount_Starting]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Thread Count
Name=#Instance#
UpdateDivider=-1

[MeasureThreadCount]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Thread Count
Name=#Instance#

; Memory

[MeasurePrivateBytes_Starting]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Private Bytes
Name=#Instance#
UpdateDivider=-1

[MeasurePrivateBytes_Starting_Scaled]
Measure=Calc
Formula=MeasurePrivateBytes_Starting

[MeasurePrivateBytes]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Private Bytes
Name=#Instance#

[MeasurePrivateBytes_Scaled]
Measure=Calc
Formula=MeasurePrivateBytes

[MeasureWorkingSet_Starting]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Working Set
Name=#Instance#
UpdateDivider=-1

[MeasureWorkingSet_Starting_Scaled]
Measure=Calc
Formula=MeasureWorkingSet_Starting

[MeasureWorkingSet]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Working Set
Name=#Instance#

[MeasureWorkingSet_Scaled]
Measure=Calc
Formula=MeasureWorkingSet

[MeasureWorkingSetPrivate_Starting]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Working Set - Private
Name=#Instance#
UpdateDivider=-1

[MeasureWorkingSetPrivate_Starting_Scaled]
Measure=Calc
Formula=MeasureWorkingSetPrivate_Starting

[MeasureWorkingSetPrivate]
Group=Starting
Measure=Plugin
Plugin=UsageMonitor
Category=Process
Counter=Working Set - Private
Name=#Instance#

[MeasureWorkingSetPrivate_Scaled]
Measure=Calc
Formula=MeasureWorkingSetPrivate

; GPU

[MeasureInstanceGPU_Starting]
Measure=Plugin
Plugin=UsageMonitor
Group=Starting
Alias=GPU
Name=#Instance#
UpdateDivider=-1

[MeasureInstanceGPU]
Measure=Plugin
Plugin=UsageMonitor
Alias=GPU
Name=#Instance#

[MeasureInstanceVRAM_Starting]
Measure=Plugin
Plugin=UsageMonitor
Group=Starting
Alias=VRAM
Name=#Instance#
UpdateDivider=-1

[MeasureInstanceVRAM_Starting_Scaled]
Measure=Calc
Group=Starting
Formula=MeasureInstanceVRAM
UpdateDivider=-1

[MeasureInstanceVRAM]
Measure=Plugin
Plugin=UsageMonitor
Alias=VRAM
Name=#Instance#

[MeasureInstanceVRAM_Scaled]
Measure=Calc
Formula=MeasureInstanceVRAM

[MeasureInstanceVRAMSHARED_Starting]
Measure=Plugin
Plugin=UsageMonitor
Group=Starting
Alias=VRAMSHARED
Name=#Instance#
UpdateDivider=-1

[MeasureInstanceVRAMHARED_Starting_Scaled]
Measure=Calc
Group=Starting
Formula=MeasureInstanceVRAMSHARED_Starting
UpdateDivider=-1

[MeasureInstanceVRAMSHARED]
Measure=Plugin
Plugin=UsageMonitor
Group=Starting
Alias=VRAMSHARED
Name=#Instance#
UpdateDivider=-1

[MeasureInstanceVRAMHARED_Scaled]
Measure=Calc
Group=Starting
Formula=MeasureInstanceVRAMSHARED
UpdateDivider=-1

; Meters

[MeterBackground]
Meter=Image
W=320
H=261
SolidColor=0,0,0,255
SolidColor2=50,50,50,255
UpdateDivider=-1

[TextStyle]
FontSize=11
FontColor=200,200,200,255
AntiAlias=1

[LeftStyle]
X=5
Y=2R
StringAlign=Left

[NearRightStyle]
X=225
Y=0r
StringAlign=Right

[FarRightStyle]
X=315
Y=0r
StringAlign=Right

[MeterIDProcessL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Y=5
Text=#Instance# (pid [MeasureIDProcess:0])
DynamicVariables=1

[MeterTime]
Meter=String
MeterStyle=TextStyle | LeftStyle
Y=10R
Text=Start / Current

[MeterStartTime]
Meter=String
MeterStyle=TextStyle | NearRightStyle
MeasureName=MeasureStartTime
Text=%1

[MeterCurrentTime]
Meter=String
MeterStyle=TextStyle | FarRightStyle
MeasureName=MeasureCurrentTime
Text=%1

[MeterUsedCPUL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Y=10R
Percentual=1
NumOfDecimals=1
Text=Percent CPU

[MeterUsedCPUStarting]
Meter=String
MeterStyle=TextStyle | NearRightStyle
Text=[MeasureUsedCPU_Starting:1]%
DynamicVariables=1

[MeterUsedCPUCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
Text=[MeasureUsedCPU:1]%
DynamicVariables=1

[MeterHandleCountL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Y=10R
Text=Handle Count

[MeterHandleCountStarting]
Meter=String
MeterStyle=TextStyle | NearRightStyle
MeasureName=MeasureHandleCount_Starting
Text=[MeasureHandleCount_Starting:0]
DynamicVariables=1

[MeterHandleCountCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
Text=[MeasureHandleCount:0]
DynamicVariables=1

[MeterThreadCountL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Text=Thread Count

[MeterThreadCountStarting]
Meter=String
MeterStyle=TextStyle | NearRightStyle
Text=[MeasureThreadCount_Starting:0]
DynamicVariables=1

[MeterThreadCountCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
MeasureName=MeasureThreadCount
Text=[MeasureThreadCount:0]
DynamicVariables=1

[MeterPrivateBytesL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Y=10R
Text=Private Bytes

[MeterPrivateBytesStarting]
Meter=String
MeterStyle=TextStyle | NearRightStyle
MeasureName=MeasurePrivateBytes_Starting_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterPrivateBytesCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
MeasureName=MeasurePrivateBytes_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterWorkingSetL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Text=Working Set

[MeterWorkingSetStarting]
Meter=String
MeterStyle=TextStyle | NearRightStyle
MeasureName=MeasureWorkingSet_Starting_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterWorkingSetCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
MeasureName=MeasureWorkingSet_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterWorkingSetPrivateL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Text=Working Set Private

[MeterWorkingSetPrivateStarting]
Meter=String
MeterStyle=TextStyle | NearRightStyle
MeasureName=MeasureWorkingSetPrivate_Starting_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterWorkingSetPrivateCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
MeasureName=MeasureWorkingSetPrivate_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterInstanceGPUL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Y=10R
Text=Percent GPU

[MeterInstanceGPUStarting]
Meter=String
MeterStyle=TextStyle | NearRightStyle
Text=[MeasureInstanceGPU_Starting:1]%
DynamicVariables=1

[MeterInstanceGPUCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
AutoScale=1
NumOfDecimals=3
Text=[MeasureInstanceGPU:1]%
DynamicVariables=1

[MeterInstanceVRAMStartingL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Y=10R
Text=Video RAM Private

[MeterInstanceVRAMStartingScaled]
Meter=String
MeterStyle=TextStyle | NearRightStyle
MeasureName=MeasureInstanceVRAM_Starting_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterInstanceVRAMCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
MeasureName=MeasureInstanceVRAM_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterInstanceVRAMSHAREDStartingL]
Meter=String
MeterStyle=TextStyle | LeftStyle
Text=Video RAM Shared

[MeterInstanceVRAMSHAREDStartingScaled]
Meter=String
MeterStyle=TextStyle | NearRightStyle
MeasureName=MeasureInstanceVRAMHARED_Starting_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

[MeterInstanceVRAMSHAREDCurrent]
Meter=String
MeterStyle=TextStyle | FarRightStyle
MeasureName=MeasureInstanceVRAMHARED_Scaled
AutoScale=1
NumOfDecimals=3
Text=%1

1.png
You do not have the required permissions to view the files attached to this post.
xenium
Posts: 363
Joined: January 4th, 2018, 9:52 pm

Re: Rainmeter CPU Usage

xenium » May 29th, 2019, 3:43 pm

Thank you very much ! :bow: