It is currently April 24th, 2024, 7:09 am

Multiple CPU Meters issue

Get help with creating, editing & fixing problems with skins
Davox1313
Posts: 1
Joined: September 20th, 2019, 12:18 am

Multiple CPU Meters issue

Post by Davox1313 »

Hello all. I'm a bit new to this.

Any advice would be appreciated. After trying a lot of Google fu and reading the Manual, as well as downloading skins to look at what others have done, I'm stuck....

I have a AMD box with 12 cores (threads) I'm trying to display the "Cores/Threads" in horizontal groups of 2.
For instance: core 1: 0% core 3: 0%
core 2: 0% core 4: 0% Etc..

Why groups of two? I noticed when I displayed them in a row the entire row will shift when any percentage used more than 2 spaces. I was hoping that grouping them could set the correct amount of space and cut back on the shifting.

Example:
core 1: 0% core 2: 0% core 3: 0%
core 1: 0% core 2: 100% core 3: 0% << I want them to stay aligned like above.

The config I am attempting to use will not work and I am not sure why (Well I know that its likely that I'm a noob)
I can see the text for the meters but its only showing %3% or %4% while %1% and %2% show active monitoring.

Code: Select all


[Rainmeter]
Update=1000
;--------------Style-------------------
[style2]
StringCase=None
FontFace=Sansation Regular
FontSize=11
FontColor=230, 233, 235
ClipString=1
ClockStringCase=Upper
AutoScale=1
AntiAlias=2

;--------------core1-2-------------------

[MeasureAverageCPU]
Measure=CPU

[MeasureCPU1]
Measure=CPU
Processor=1

[MeasureCPU2]
Measure=CPU
Processor=2

[MeterText]
Meter=String
MeterStyle=style2
MeasureName=MeasureAverageCPU
MeasureName1=MeasureCPU1
MeasureName2=MeasureCPU2
Mx=100
y=3
NumOfDecimals=0
Text=Core 1: %1%#CRLF#Core 2: %2%
;--------------core3-4-------------------

[MeasureAverageCPU]

[MeasureCPU3]
Measure=CPU
Processor=3

[MeasureCPU4]
Measure=CPU
Processor=4

[MeterText1]
meter=String
MeterStyle=style2
MeasureName=MeasureAverageCPU1
MeasureName3=MeasureCPU3
MeasureName4=MeasureCPU4
x=160
y=3
NumOfDecimals=0
Text=Core 3: %3%#CRLF#Core 4: %4%

Please & Thanks.
User avatar
balala
Rainmeter Sage
Posts: 16164
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Multiple CPU Meters issue

Post by balala »

Davox1313 wrote: September 20th, 2019, 1:07 am The config I am attempting to use will not work and I am not sure why
First of all, there is an issue with the String meters. The MeasureName options must be numbered in each of these meters, individually. This means that in [MeterText]for instance you have to have the MeasureName options as MeasureName, MeasureName2 and MeasureName3, not MeasureName, MeasureName1 and MeasureName2. A MeasureName1 option doesn't exist. Same way in [MeterText1] you can't have a MeasureName3 and MeasureName4 options, without MeasureName2. These options must be numbered in order. So:

Code: Select all

[MeterText]
...
MeasureName=MeasureAverageCPU
MeasureName2=MeasureCPU1
MeasureName3=MeasureCPU2
...

...

[MeterText1]
...
MeasureName=MeasureAverageCPU1
MeasureName2=MeasureCPU3
MeasureName3=MeasureCPU4
...
Also note that the X option of the [MeterText] meter is mistakenlly written as Mx=100.
I'd position those meters relatively to each other. Later I'll post a sample code on how to do this.