https://forum.rainmeter.net/viewtopic.php?p=111684#p111684
It works really well and it makes it easy to get a overview of all the drives connected to the system.
But the suite i made it for is two toned, so i can't color code it like this example shows, and just have the drives listed in the middle.
No, I need the text's x and y to stick to an imaginary ring around the bar graph, at the halfway point for the corresponding slice of pie, like the C: and D: drive does in the example image.
I did set the C: and D: drive x and y manually just to show you what i mean.
I am almost certain that the measures in the skin can be used in the calculations, but my math kung-fu was not stong enough to figure it out.
I tried different things like the rotate measure and straight calc measures to no avail.
So i am jut hoping i can snag one of you math guru's to help me out here.
Took a lot of courage to ask for help, and i hope you understand my question.
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
[Variables]
Color1=60,242,24
Color2=80,160,240
Color3=220,60,90
Color4=220,250,30
Color5=255,255,255
PieSize=200
LineStart=(#PieSize#/2)-10
Drive1=C
Drive2=D
Drive3=J
Drive4=X
[mDriveUsed1]
Measure=FreeDiskSpace
Drive=#Drive1#:
InvertMeasure=1
IgnoreRemovable=0
[mDriveUsed2]
Measure=FreeDiskSpace
Drive=#Drive2#:
InvertMeasure=1
IgnoreRemovable=0
[mDriveUsed3]
Measure=FreeDiskSpace
Drive=#Drive3#:
InvertMeasure=1
IgnoreRemovable=0
[mDriveUsed4]
Measure=FreeDiskSpace
Drive=#Drive4#:
InvertMeasure=1
IgnoreRemovable=0
[mDriveFree1]
Measure=FreeDiskSpace
Drive=#Drive1#:
IgnoreRemovable=0
[mDriveFree2]
Measure=FreeDiskSpace
Drive=#Drive2#:
IgnoreRemovable=0
[mDriveFree3]
Measure=FreeDiskSpace
Drive=#Drive3#:
IgnoreRemovable=0
[mDriveFree4]
Measure=FreeDiskSpace
Drive=#Drive4#:
IgnoreRemovable=0
[mTotalFree]
Measure=Calc
Formula=( mDriveFree1 + mDriveFree2 + mDriveFree3 + mDriveFree4 )
[mPercent1]
Measure=Calc
Formula=( mDriveUsed1 / ( mDriveUsed1 + mDriveUsed2 + mDriveUsed3 + mDriveUsed4 + mTotalFree ))
[mPercent2]
Measure=Calc
Formula=( mDriveUsed2 / ( mDriveUsed1 + mDriveUsed2 + mDriveUsed3 + mDriveUsed4 + mTotalFree ))
[mPercent3]
Measure=Calc
Formula=( mDriveUsed3 / ( mDriveUsed1 + mDriveUsed2 + mDriveUsed3 + mDriveUsed4 + mTotalFree ))
[mPercent4]
Measure=Calc
Formula=( mDriveUsed4 / ( mDriveUsed1 + mDriveUsed2 + mDriveUsed3 + mDriveUsed4 + mTotalFree ))
[mPercent5]
Measure=Calc
Formula=( mTotalFree / ( mDriveUsed1 + mDriveUsed2 + mDriveUsed3 + mDriveUsed4 + mTotalFree ))
[mPercent1%]
Measure=Calc
Formula=( 100 * mPercent1 )
[mPercent2%]
Measure=Calc
Formula=( 100 * mPercent2 )
[mPercent3%]
Measure=Calc
Formula=( 100 * mPercent3 )
[mPercent4%]
Measure=Calc
Formula=( 100 * mPercent4 )
[mPercent5%]
Measure=Calc
Formula=( 100 * mPercent5 )
[MeterNumber1]
Meter=Roundline
MeasureName=mPercent1
X=100
Y=100
W=#PieSize#
H=#PieSize#
StartAngle=0
RotationAngle=6.283
LineStart=#LineStart#
LineLength=(#PieSize#/2)
LineColor=#Color1#
Solid=1
AntiAlias=1
DynamicVariables=1
[MeterNumber2]
Meter=Roundline
MeasureName=mPercent2
X=r
Y=r
W=#PieSize#
H=#PieSize#
StartAngle=(2*PI*[mPercent1])
RotationAngle=6.283
LineStart=#LineStart#
LineLength=(#PieSize#/2)
LineColor=#Color2#
Solid=1
AntiAlias=1
DynamicVariables=1
[MeterNumber3]
Meter=Roundline
MeasureName=mPercent3
X=r
Y=r
W=#PieSize#
H=#PieSize#
StartAngle=(2*PI*([mPercent1]+[mPercent2]))
RotationAngle=6.283
LineStart=#LineStart#
LineLength=(#PieSize#/2)
LineColor=#Color3#
Solid=1
AntiAlias=1
DynamicVariables=1
[MeterNumber4]
Meter=Roundline
MeasureName=mPercent4
X=r
Y=r
W=#PieSize#
H=#PieSize#
StartAngle=(2*PI*([mPercent1]+[mPercent2]+[mPercent3]))
RotationAngle=6.283
LineStart=#LineStart#
LineLength=(#PieSize#/2)
LineColor=#Color4#
Solid=1
AntiAlias=1
DynamicVariables=1
[MeterNumber5]
Meter=Roundline
MeasureName=mPercent5
X=r
Y=r
W=#PieSize#
H=#PieSize#
StartAngle=(2*PI*([mPercent1]+[mPercent2]+[mPercent3]+[mPercent4]))
RotationAngle=6.283
LineStart=#LineStart#
LineLength=(#PieSize#/2)
LineColor=#Color5#,100
Solid=1
AntiAlias=1
DynamicVariables=1
[MeterString1]
MeasureName=mPercent1%
Meter=STRING
X=320
Y=220
FontColor=#Color1#
SolidColor=0,0,0
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTERCENTER
NumOfDecimals=0
AntiAlias=1
Text=#Drive1#: %1%
DynamicVariables=1
[MeterString2]
MeasureName=mPercent2%
Meter=STRING
X=265
Y=300
FontColor=#Color2#
SolidColor=0,0,0
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTERCENTER
NumOfDecimals=0
AntiAlias=1
Text=#Drive2#: %1%
DynamicVariables=1
[MeterString3]
MeasureName=mPercent3%
Meter=STRING
X=200
Y=180
FontColor=#Color3#
SolidColor=0,0,0
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTERCENTER
NumOfDecimals=0
AntiAlias=1
Text=#Drive3#: %1%
DynamicVariables=1
[MeterString4]
MeasureName=mPercent4%
Meter=STRING
X=0r
Y=4R
FontColor=#Color4#
SolidColor=0,0,0
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTERCENTER
NumOfDecimals=0
AntiAlias=1
Text=#Drive4#: %1%
DynamicVariables=1
[MeterString5]
MeasureName=mPercent5%
Meter=STRING
X=0r
Y=4R
FontColor=#Color5#,130
SolidColor=0,0,0
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=CENTERCENTER
NumOfDecimals=0
AntiAlias=1
Text=Free %1%
DynamicVariables=1