It is currently February 20th, 2019, 8:30 pm

trying to create a 2nd meter

Help with creating, editing & fixing problems with skins
tarbear123
Posts: 8
Joined: July 15th, 2018, 10:17 pm

trying to create a 2nd meter

tarbear123 » February 6th, 2019, 1:54 am

i'm trying to create a second meter for the D drive, plz help

Code: Select all

[Rainmeter]
Update=1000

[Variables]
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
LightBlue=207,224,255,255
LightRed=250,148,135,255
AlmostBlack=40,40,40,255
CurrentDrive=C:
Drive1=C:
Drive2=D:

[MeasureCPU]
Measure=CPU
IfAboveValue=24
IfAboveAction=[!SetOption MeterCPUPercent FontColor #LightRed#][!UpdateMeter *][!Redraw]
IfBelowValue=25
IfBelowAction=[!SetOption MeterCPUPercent FontColor #LightGreen#][!UpdateMeter *][!Redraw]

[MeasureDriveTotal]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=-1

[MeasureDriveFree]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed]
Measure=FreeDiskSpace
Drive=#CurrentDrive#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeterBackground]
Meter=Image
X=0
Y=0
W=500
H=110
SolidColor=#AlmostBlack#


[MeterCPUCircleBack]
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterCPUPercent]
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%

[MeterCPULine]
Meter=Line
MeasureName=MeasureCPU
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#AlmostBlack#
SolidColor=#DarkBlue#

[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU

[MeterDriveCircleBack]
Meter=Roundline
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterDriveCircle]
Meter=Roundline
MeasureName=MeasureDriveUsed
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=26
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#CurrentDrive#

[drive2]

[MeterDriveBack]
Meter=Image
X=50
Y=61
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[drive2]

[MeterDriveBack]
Meter=Image
X=80
Y=61
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=80
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeasureCPU]
Measure=CPU
IfCondition=MeasureCPU > 60
IfTrueAction=[!SetOption MeterCPU FontColor "255,0,0"]
IfFalseAction=[!SetOption MeterCPU FontColor "0,255,0"]
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3213
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: trying to create a 2nd meter

eclectic-tech » February 6th, 2019, 2:51 am

"Dive D:" on most systems is the CD/DVD drive...
But you may have missed this note in the manaul...
Note: FreeDiskSpace does not support CD or DVD drives other than with Type and Label.

So I changed the Variable for 'Drive2' to 'E:'...

You copied the sections to create a second set of meters, but you must give every section a unique name; I just added '2' to the names. You created meters for the second drive, but did not create a second set of measures for the second drive; I created those and added '2' to those section names. You had a duplicate [MeasureCPU] at the very bottom of your code; I simply commented it out for now.

Finally, I modified the X positions to place the new meters to the right of the original. I am not sure if you wanted the circle meters because you did not copy those :???: I added them because without them the 2nd drive info is undefined...
drive2A.png
So here is your code with those changes. If you need more or have a question, let us know.

Code: Select all

[Rainmeter]
Update=1000

[Variables]
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
LightBlue=207,224,255,255
LightRed=250,148,135,255
AlmostBlack=40,40,40,255
CurrentDrive=C:
Drive1=C:
Drive2=E:

[MeasureCPU]
Measure=CPU
IfAboveValue=24
IfAboveAction=[!SetOption MeterCPUPercent FontColor #LightRed#][!UpdateMeter *][!Redraw]
IfBelowValue=25
IfBelowAction=[!SetOption MeterCPUPercent FontColor #LightGreen#][!UpdateMeter *][!Redraw]

[MeasureDriveTotal]
Measure=FreeDiskSpace
Drive=#Drive1#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveFree]
Measure=FreeDiskSpace
Drive=#Drive1#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed]
Measure=FreeDiskSpace
Drive=#Drive1#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveTotal2]
Measure=FreeDiskSpace
Drive=#Drive2#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveFree2]
Measure=FreeDiskSpace
Drive=#Drive2#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed2]
Measure=FreeDiskSpace
Drive=#Drive2#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeterBackground]
Meter=Image
X=0
Y=0
W=500
H=110
SolidColor=#AlmostBlack#


[MeterCPUCircleBack]
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterCPUPercent]
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%

[MeterCPULine]
Meter=Line
MeasureName=MeasureCPU
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#AlmostBlack#
SolidColor=#DarkBlue#

[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU

[MeterDriveCircleBack]
Meter=Roundline
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterDriveCircle]
Meter=Roundline
MeasureName=MeasureDriveUsed
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=26
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#CurrentDrive#

[MeterDriveBack]
Meter=Image
X=50
Y=61
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

;[drive2]

[MeterDriveCircleBack2]
Meter=Roundline
X=205
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterDriveCircle2]
Meter=Roundline
MeasureName=MeasureDriveUsed2
X=205
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel2]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=226
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#Drive2#

[MeterDriveBack2]
Meter=Image
X=250
Y=61
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel2]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=250
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal2]
Meter=String
MeasureName=MeasureDriveTotal2
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=380
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel2]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=250
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree2]
Meter=String
MeasureName=MeasureDriveFree2
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=380
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

; [MeasureCPU]
; Measure=CPU
; IfCondition=MeasureCPU > 60
; IfTrueAction=[!SetOption MeterCPU FontColor "255,0,0"]
; IfFalseAction=[!SetOption MeterCPU FontColor "0,255,0"]
You do not have the required permissions to view the files attached to this post.
tarbear123
Posts: 8
Joined: July 15th, 2018, 10:17 pm

Re: trying to create a 2nd meter

tarbear123 » February 12th, 2019, 6:29 pm

i copied this exacly how it is in the 2nd drive but i can't get it to show up plz help

Code: Select all

[MeterDriveFree2]
Meter=String
MeasureName=MeasureDriveFree2
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=380
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B
Last edited by balala on February 12th, 2019, 6:39 pm, edited 1 time in total.
Reason: Please use [code] tags when posting code snippets. It's the </> button.
User avatar
balala
Rainmeter Sage
Posts: 7674
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: trying to create a 2nd meter

balala » February 12th, 2019, 6:44 pm

tarbear123 wrote:
February 12th, 2019, 6:29 pm
i copied this exacly how it is in the 2nd drive but i can't get it to show up plz help
Have you tried out eclectic-tech's code?
Also, please post the whole code which you have right now, because I think you've updated it since your initial post. You had no a [MeterDriveFree2] meter there. And this last posted [MeterDriveFree2] meter has nothing which would make it not to be shown.
tarbear123
Posts: 8
Joined: July 15th, 2018, 10:17 pm

Re: trying to create a 2nd meter

tarbear123 » February 12th, 2019, 10:36 pm

this is the code im using

Code: Select all

[Rainmeter]
Update=1000

[Variables]
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
LightBlue=207,224,255,255
LightRed=250,148,135,255
AlmostBlack=40,40,40,255
CurrentDrive=C:
Drive1=C:
Drive2=E:

[MeasureCPU]
Measure=CPU
IfAboveValue=24
IfAboveAction=[!SetOption MeterCPUPercent FontColor #LightRed#][!UpdateMeter *][!Redraw]
IfBelowValue=25
IfBelowAction=[!SetOption MeterCPUPercent FontColor #LightGreen#][!UpdateMeter *][!Redraw]

[MeasureDriveTotal]
Measure=FreeDiskSpace
Drive=#Drive1#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveFree]
Measure=FreeDiskSpace
Drive=#Drive1#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed]
Measure=FreeDiskSpace
Drive=#Drive1#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveTotal2]
Measure=FreeDiskSpace
Drive=#Drive2#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveFree2]
Measure=FreeDiskSpace
Drive=#Drive2#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed2]
Measure=FreeDiskSpace
Drive=#Drive2#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeterBackground]
Meter=Image
X=0
Y=0
W=500
H=110
SolidColor=#AlmostBlack#


[MeterCPUCircleBack]
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterCPUPercent]
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%

[MeterCPULine]
Meter=Line
MeasureName=MeasureCPU
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#AlmostBlack#
SolidColor=#DarkBlue#

[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU

[MeterDriveCircleBack]
Meter=Roundline
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterDriveCircle]
Meter=Roundline
MeasureName=MeasureDriveUsed
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=26
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#CurrentDrive#

[MeterDriveBack]
Meter=Image
X=50
Y=61
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

;[drive2]

[MeterDriveCircleBack2]
Meter=Roundline
X=205
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterDriveCircle2]
Meter=Roundline
MeasureName=MeasureDriveUsed2
X=205
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel2]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=226
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#Drive2#

[MeterDriveBack2]
Meter=Image
X=250
Y=61
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel2]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=250
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal2]
Meter=String
MeasureName=MeasureDriveTotal2
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=380
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel2]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=250
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree2]
Meter=String
MeasureName=MeasureDriveFree2
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=380
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

; [MeasureCPU]
; Measure=CPU
; IfCondition=MeasureCPU > 60
; IfTrueAction=[!SetOption MeterCPU FontColor "255,0,0"]
; IfFalseAction=[!SetOption MeterCPU FontColor "0,255,0"]
You do not have the required permissions to view the files attached to this post.
Last edited by Brian on February 12th, 2019, 10:42 pm, edited 1 time in total.
Reason: Please use [code] tags when posting skin code. Thanks.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3213
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: trying to create a 2nd meter

eclectic-tech » February 12th, 2019, 11:45 pm

The code posted is looking for drives C: and E:.

You need to set the drive letters you want see in the [Variables] section as the value for 'Drive1' and 'Drive2'.
All you need to do to see F: instead of E:, is set the value of Drive2=F:.

Here is the code with that change...

Code: Select all

[Rainmeter]
Update=1000

[Variables]
DarkBlue=27,63,107,255
MediumBlue=92,135,209,255
LightBlue=207,224,255,255
LightRed=250,148,135,255
AlmostBlack=40,40,40,255
Drive1=C:
Drive2=F:

[MeasureCPU]
Measure=CPU
IfAboveValue=24
IfAboveAction=[!SetOption MeterCPUPercent FontColor #LightRed#][!UpdateMeter *][!Redraw]
IfBelowValue=25
IfBelowAction=[!SetOption MeterCPUPercent FontColor #LightGreen#][!UpdateMeter *][!Redraw]

[MeasureDriveTotal]
Measure=FreeDiskSpace
Drive=#Drive1#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveFree]
Measure=FreeDiskSpace
Drive=#Drive1#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed]
Measure=FreeDiskSpace
Drive=#Drive1#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveTotal2]
Measure=FreeDiskSpace
Drive=#Drive2#
Total=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveFree2]
Measure=FreeDiskSpace
Drive=#Drive2#
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeasureDriveUsed2]
Measure=FreeDiskSpace
Drive=#Drive2#
InvertMeasure=1
IgnoreRemovable=0
DynamicVariables=1
UpdateDivider=5

[MeterBackground]
Meter=Image
X=0
Y=0
W=500
H=110
SolidColor=#AlmostBlack#


[MeterCPUCircleBack]
Meter=Roundline
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterCPUCircle]
Meter=Roundline
MeasureName=MeasureCPU
X=5
Y=8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterCPUPercent]
Meter=String
MeasureName=MeasureCPU
FontFace=Segoe UI
FontSize=8
FontColor=#LightBlue#
X=26
Y=28
StringAlign=CenterCenter
StringStyle=Bold
AntiAlias=1
Text=%1%

[MeterCPULine]
Meter=Line
MeasureName=MeasureCPU
X=49
Y=8
W=130
H=38
LineCount=1
LineColor=#LightBlue#
LineWidth=1
HorizontalLines=1
HorizontalLineColor=#AlmostBlack#
SolidColor=#DarkBlue#

[MeterCPUText]
Meter=String
FontFace=Segoe UI
FontSize=15
FontColor=#LightBlue#
X=48
Y=4
StringStyle=Bold
AntiAlias=1
Text=CPU

[MeterDriveCircleBack]
Meter=Roundline
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterDriveCircle]
Meter=Roundline
MeasureName=MeasureDriveUsed
X=5
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=26
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#Drive1#

[MeterDriveBack]
Meter=Image
X=50
Y=61
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal]
Meter=String
MeasureName=MeasureDriveTotal
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=50
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree]
Meter=String
MeasureName=MeasureDriveFree
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=180
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

;[drive2]

[MeterDriveCircleBack2]
Meter=Roundline
X=205
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#MediumBlue#
AntiAlias=1

[MeterDriveCircle2]
Meter=Roundline
MeasureName=MeasureDriveUsed2
X=205
Y=63
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=15
LineLength=20
Solid=1
LineColor=#LightBlue#
AntiAlias=1

[MeterDriveCircleLabel2]
Meter=String
FontFace=Segoe UI
FontSize=10
FontColor=#LightBlue#
X=226
Y=83
StringAlign=CenterCenter
StringStyle=Bold
Percentual=1
AntiAlias=1
DynamicVariables=1
Text=#Drive2#

[MeterDriveBack2]
Meter=Image
X=250
Y=61
W=130
H=38
SolidColor=#DarkBlue#

[MeterDriveTotalLabel2]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=250
Y=64
StringStyle=Bold
StringAlign=Left
AutoScale=1
AntiAlias=1
Text=Total:

[MeterDriveTotal2]
Meter=String
MeasureName=MeasureDriveTotal2
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=380
Y=64
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

[MeterDriveFreeLabel2]
Meter=String
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=250
Y=81
W=130
H=18
ClipString=1
StringStyle=Bold
AutoScale=1
AntiAlias=1
Text=Free:

[MeterDriveFree2]
Meter=String
MeasureName=MeasureDriveFree2
FontFace=Segoe UI
FontSize=11
FontColor=#LightBlue#
X=380
Y=81
StringStyle=Bold
StringAlign=Right
AutoScale=1
AntiAlias=1
Text=%1B

; [MeasureCPU]
; Measure=CPU
; IfCondition=MeasureCPU > 60
; IfTrueAction=[!SetOption MeterCPU FontColor "255,0,0"]
; IfFalseAction=[!SetOption MeterCPU FontColor "0,255,0"]
User avatar
balala
Rainmeter Sage
Posts: 7674
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: trying to create a 2nd meter

balala » February 13th, 2019, 2:17 pm

eclectic-tech wrote:
February 12th, 2019, 11:45 pm
The code posted is looking for drives C: and E:.

You need to set the drive letters you want see in the [Variables] section as the value for 'Drive1' and 'Drive2'.
All you need to do to see F: instead of E:, is set the value of Drive2=F:.
Probably D:, instead of E: or F:, because:
tarbear123 wrote:
February 6th, 2019, 1:54 am
i'm trying to create a second meter for the D drive, plz help
So:

Code: Select all

[Variables]
...
Drive1=C:
Drive2=D:
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3213
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: trying to create a 2nd meter

eclectic-tech » February 13th, 2019, 4:07 pm

balala wrote:
February 13th, 2019, 2:17 pm
Probably D:, instead of E: or F:, because:

So:

Code: Select all

[Variables]
...
Drive1=C:
Drive2=D:
According to the screenshot, they are looking to see Drive F:
driveF.png
I see it appears to be a VHD (virtual Hard Drive), so it must be 'Mounted', then they should be able to see it in the skin.
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 7674
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: trying to create a 2nd meter

balala » February 13th, 2019, 4:21 pm

eclectic-tech wrote:
February 13th, 2019, 4:07 pm
According to the screenshot, they are looking to see Drive F:
Yeah and according to tarbear123's initial request, he's looking for drive D:
tarbear123 wrote:
February 6th, 2019, 1:54 am
i'm trying to create a second meter for the D drive, plz help
Who knows? But doesn't even matter too much, importan is that he has to modify the Drive2 variable according to his needs.