HELP: Illustro disk.ini.....not showing D: info

Help with creating, editing & fixing problems with skins

HELP: Illustro disk.ini.....not showing D: info

July 11th, 2018, 8:41 pm
belzey
   [2 posts]

Guys,

I have modified the standard Illustro skin to suit my liking, but I cannot seem to get the 2nd disk functioning correctly in the Disk.ini skin. See below. Let me know what I am doing wrong please and thank you.

Illustro 2Disks Screenshot.PNG


Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

; NOTE! If you want to add more disks, take a look at 'Disks 2.ini'.

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Author=poiru
AppVersion=1003000
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
; Contains basic information of the skin.
Name=Disk
Description=Displays the usage of your disks.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontname=Trebuchet MS
textSize=8
colorBar=0,255,0,255
colorText=255,255,255,205
width=190
disk1=C:
disk2=D:

; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------

[measureAccessDisk1]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="#disk1#"

[measureTotalDisk1]
; This measure returns the total disk space
Measure=FreeDiskSpace
Drive=#disk1#
Total=1
UpdateDivider=120

[measureUsedDisk1]
; Returns inverted value of free disk space (i.e. used disk space)
Measure=FreeDiskSpace
Drive=#disk1#
InvertMeasure=1
UpdateDivider=120

[measureAccessDisk2]
Measure=Plugin
Plugin=Plugins\PerfMon.dll
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Bytes/sec"
PerfMonInstance="#disk2#"

[measureTotalDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
Total=1
UpdateDivider=120

[measureUsedDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
InvertMeasure=1
UpdateDivider=120

[styleTitle]
StringAlign=CENTER
StringCase=UPPER
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontname#
FontSize=10
AntiAlias=1
ClipString=1

[styleLeftText]
StringAlign=LEFT
; Meters using styleLeftText will be left-aligned.
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontname#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontname#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,25

[styleSeperator]
SolidColor=255,255,255,25

; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------

[meterBackground]
Meter=IMAGE
ImageName=#SKINSPATH#\illustro\SHARED\Background2Line.png
; #SKINSPATH# is a global variable that stands for your skin path. It is
; usually Documents\Rainmeter\Skins.
X=0
Y=0

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=100
Y=12
W=(#width#*0.5)
H=18
Text="Disks"
; Even though the text is set to Disk, Rainmeter will display
; it as DISK, because styleTitle contains StringCase=UPPER.

[meterLabelDisk1]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text="#disk1#\"

[meterValueDisk1]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk1
MeasureName2=measureTotalDisk1
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text="%1B  /  %2B used"
; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
; %2 stands for the value of MeasureName2.
NumOfDecimals=1
AutoScale=1
; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
LeftMouseUpAction=!Execute ["#disk1#\"]
; Open #disk1# on click

[meterBarDisk1]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk1
X=10
Y=52
W=190
H=1

;---------------------------------------------------------------------------------------------------------------------------------
[meterLabelDisk2]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text="#disk2#\"

[meterValueDisk2]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedDisk2
MeasureName2=measureTotalDisk2
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text="%1B  /  %2B used"
; %1 stands for the value of MeasureName (measureUsedDisk2 in this case).
; %2 stands for the value of MeasureName2.
NumOfDecimals=1
AutoScale=1
; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
LeftMouseUpAction=!Execute ["#disk2#\"]
; Open #disk2# on click

[meterBarDisk2]
Meter=BAR
MeterStyle=styleBar
MeasureName=measureUsedDisk2
X=10
Y=72
W=190
H=1
;--------------------------------------------------------------------------------------------------------------------------------------------
[meterAccessLabelDisk1]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=85
W=190
H=14
Text="Activity"

[meterAccessBarDisk1]
Meter=Line
MeasureName=measureAccessDisk1
X=60
Y=85
H=13
W=140
LineCount=1
LineColor=#colorbar#
AutoScale=0
AntiAlias=#AA#

[meterSeperator]
Meter=IMAGE
MeterStyle=styleSeperator
X=10
Y=97
W=190
H=1
You do not have the required permissions to view the files attached to this post.
User avatar

Re: HELP: Illustro disk.ini.....not showing D: info

July 11th, 2018, 8:53 pm
balala
Rainmeter Sage   [6678 posts]

I'm not sure what to say, because for me your code works perfectly, showing what it has to show. The free / used spaces (for both disks) are in accord to the reality.
See the attached image.
You do not have the required permissions to view the files attached to this post.

Re: HELP: Illustro disk.ini.....not showing D: info

July 11th, 2018, 9:42 pm
belzey
   [2 posts]

Crap, why won't it work?! Agh.

The Illustro Pulsar skin picks up the D: drive perfectly, but I don't like the looks. Can I rob the code from it work something?

Code: Select all

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro Pulsar xx\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,13
Update=1000
AccurateText=1

[Metadata]
Information=Displays disk drive usage.
Name=illustro Pulsar (Disk Drive skin)
Version=2.2
Author=Pul53dr1v3r
Licence=Creative Commons Attribution 3.0 License.


[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
FontFamily=Trebuchet MS
textSize=8
colorBar=255,140,0,200
ColorR=255,140,0,200
colorText=255,255,255,205
EmptyBarColor=255,255,255,25
HD1=D:
; UpdateInterval is set to divide update time of Disk Drive Label, Used and Total space
UpdateInterval=5
SkinState=0
DiskMeasureState=0

;[""""""""""""""""""""""""""""""[[Styles]]""""""""""""""""""""""""""""""]

[styleTitle]
StringAlign=CENTER
StringStyle=Bold
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#FontFamily#
FontSize=10
AntiAlias=1
ClipString=1

[styleCenterText]
StringAlign=Center
StringCase=NONE
StringStyle=BOLD
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#FontFamily#
FontSize=8
AntiAlias=1
;ClipString=1

[styleLeftText]
StringAlign=LEFT
; Meters using styleLeftText will be left-aligned.
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#FontFamily#
FontSize=8
AntiAlias=1

[styleRightText]
StringAlign=RIGHT
StringCase=NONE
StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#FontFamily#
FontSize=8
AntiAlias=1

;[""""""""""""""""""""""""""""""[[Title]]""""""""""""""""""""""""""""""]

[meterTitle]
Meter=STRING
MeterStyle=styleTitle
MeasureName=MeasureDiskLabel
X=104
Y=12
W=159
H=28
Text=%1(#HD1#)
LeftMouseUpAction=[#HD1#]
MouseOverAction= [!SetOption "meterTitle" "FontColor" "#ColorR#"][!SetOption "meterTitle" "Text" "OPEN"] [!UpdateMeter "meterTitle"][!Redraw]
MouseLeaveAction= [!SetOption "meterTitle" "FontColor" "#colorText#"][!SetOption "meterTitle" "Text"  "%1(#HD1#)"] [!UpdateMeter "meterTitle"][!Redraw]
DynamicVariables=1

;[""""""""""""""""""""""""""""""[[Disk_Usage]]""""""""""""""""""""""""""""""]

[measureDiskMeasureState]
Measure=Calc
Formula=#DiskMeasureState#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!ShowMeterGroup "UsedHD1"][!HideMeterGroup "FreeHD1"][!DisableMeasure "measureFreeHD1"][!EnableMeasure "measureUsedHD1"][!Update]
IfFalseAction=[!ShowMeterGroup "FreeHD1"][!HideMeterGroup "UsedHD1"][!DisableMeasure "measureUsedHD1"][!EnableMeasure "measureFreeHD1"][!Update]
DynamicVariables=1

[meterUsedHD1]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureUsedHD1
X=10
Y=40
Text="Used: %1B"
Hidden=1
NumOfDecimals=1
Autoscale=1
LeftMouseUpAction=[!SetVariable "DiskMeasureState" "1"][!WriteKeyValue "Variables" "DiskMeasureState" "1"][!UpdateMeasureGroup "UsedHD1"][!UpdateMeasureGroup "FreeHD1"][!UpdateMeasure "measureDiskMeasureState"]
MouseOverAction=[!SetOption "meterUsedHD1" "FontColor" "#ColorR#"][!UpdateMeter "meterUsedHD1"][!Redraw]
MouseLeaveAction=[!SetOption "meterUsedHD1" "FontColor" "#colorText#"][!UpdateMeter "meterUsedHD1"][!Redraw]
Group=UsedHD1

[meterFreeHD1]
Meter=STRING
MeterStyle=styleLeftText
MeasureName=measureFreeHD1
X=10
Y=40
Text="Free: %1B"
Hidden=1
NumOfDecimals=1
Autoscale=1
LeftMouseUpAction=[!SetVariable "DiskMeasureState" "0"][!WriteKeyValue "Variables" "DiskMeasureState" "0"][!UpdateMeasureGroup "UsedHD1"][!UpdateMeasureGroup "FreeHD1"][!UpdateMeasure "measureDiskMeasureState"]
MouseOverAction=[!SetOption "meterFreeHD1" "FontColor" "#ColorR#"][!UpdateMeter "meterFreeHD1"][!Redraw]
MouseLeaveAction=[!SetOption "meterFreeHD1" "FontColor" "#colorText#"][!UpdateMeter "meterFreeHD1"][!Redraw]
Group=FreeHD1

[MeasureDiskLabel]
Measure=FreeDiskSpace
Drive=#HD1#
Label=1
IgnoreRemovable=0
UpdateDivider=#UpdateInterval#

[meterValueHD1]
Meter=STRING
MeterStyle=styleRightText
MeasureName=measureUsedHD1
MeasureName2=measureTotalHD1
X=199
Y=r
Text="Total: %2B"
NumOfDecimals=1
AutoScale=1

[meterUsedBarHD1]
Meter=BAR
MeasureName=measureUsedHD1
BarColor=[UsedBarWarn]
SolidColor=255,255,255,25
X=10
Y=52
W=190
H=1
Flip=0
BarOrientation=HORIZONTAL
DynamicVariables=1
Group=UsedHD1

[meterFreeBarHD1]
Meter=BAR
MeasureName=measureFreeHD1
BarColor=[FreeBarWarn]
SolidColor=255,255,255,25
X=10
Y=52
W=190
H=1
Flip=1
BarOrientation=HORIZONTAL
DynamicVariables=1
Group=FreeHD1

[meterBarEmptyHD1]
Meter=Image
SolidColor=#EmptyBarColor#
X=0r
Y=0r
W=190
H=1
Hidden=1

[UsedBarWarn]
Measure=Calc
Formula=DriveUsagePercent< 75 ? -1 : -2
Substitute="-1":"#colorBar#","-2":"220,20,60,200"

[FreeBarWarn]
Measure=Calc
Formula=DriveFreePercent> 25 ? -1 : -2
Substitute="-1":"192,192,192,200","-2":"220,20,60,200"

[DriveUsagePercent]
Measure=Calc
Formula=( measureHD1UsedBarWarn * 100 / ( measureTotalHD1 + 0.000001 ))
MinValue=0
MaxValue=100

[DriveFreePercent]
Measure=Calc
Formula=( measureHD1FreeBarWarn * 100 / ( measureTotalHD1 + 0.000001 ))
MinValue=0
MaxValue=100

[measureHD1UsedBarWarn]
Measure=FreeDiskSpace
Drive=#HD1#
InvertMeasure=1
IgnoreRemovable=0
UpdateDivider=#UpdateInterval#

[measureHD1FreeBarWarn]
Measure=FreeDiskSpace
Drive=#HD1#
IgnoreRemovable=0
UpdateDivider=#UpdateInterval#

[measureTotalHD1]
Measure=FreeDiskSpace
Drive=#HD1#
Total=1
IgnoreRemovable=0
UpdateDivider=#UpdateInterval#

[measureUsedHD1]
Measure=FreeDiskSpace
Drive=#HD1#
InvertMeasure=1
IgnoreRemovable=0
IfCondition=measureUsedHD1=0
IfTrueAction=[!HideMeter "meterUsedBarHD1"][!ShowMeter "meterBarEmptyHD1"]
IfFalseAction=[!ShowMeter "meterUsedBarHD1"][!HideMeter "meterBarEmptyHD1"]
UpdateDivider=#UpdateInterval#
Group=UsedHD1

[measureFreeHD1]
Measure=FreeDiskSpace
Drive=#HD1#
;InvertMeasure=0
IgnoreRemovable=0
IfCondition=measureFreeHD1=0
IfTrueAction=[!HideMeter "meterFreeBarHD1"][!ShowMeter "meterBarEmptyHD1"]
IfFalseAction=[!ShowMeter "meterFreeBarHD1"][!HideMeter "meterBarEmptyHD1"]
UpdateDivider=#UpdateInterval#
Group=FreeHD1

;[""""""""""""""""""""""""""""""[[Reading]]""""""""""""""""""""""""""""""]

;For the graph
[MeasureHD1DiskReads]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Reads/sec"
PerfMonInstance="#HD1#"
PerfMonDifference=1
IfEqualValue=0
IfEqualAction=[!SetOption meterReadCircle1 ImageTint 255,255,255,100][!SetOption meterReadCircle2 ImageTint 255,255,255,100]
IfAboveValue=0
IfAboveAction=[!SetOption meterReadCircle1 ImageTint 204,0,0,255][!SetOption meterReadCircle2 ImageTint 204,0,0,255]
Group=measureRW

;for the string
[MeasureHD1DiskReadsSec]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Read Bytes/sec"
PerfMonInstance=#HD1#

[MeterHD1ReadSpeedLabel]
Meter=String
MeterStyle=styleLeftText
FontColor=255,255,255,50
X=27
Y=56
Text="Read:"

[MeterHD1ReadSpeed]
Meter=String
MeasureName=MeasureHD1DiskReadsSec
MeterStyle=styleRightText
FontColor=255,255,255,50
X=196
Y=r
Autoscale=1

[MeterReadLine]
Meter=Histogram
MeasureName=MeasureHD1DiskReads
GraphStart=Left
X=27
;Y=58
W=170
H=25
Autoscale=1
Antialias=1
PrimaryColor=176,196,222,150
SolidColor=255,255,255,15
Group=Graph

;[""""""""""""""""""""""""""""""[[Writing]]""""""""""""""""""""""""""""""]

;For the graph
[MeasureHD1DiskWrites]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Writes/sec"
PerfMonInstance="#HD1#"
PerfMonDifference=1
IfEqualValue=0
IfEqualAction=[!SetOption meterWriteCircle1 ImageTint 255,255,255,100][!SetOption meterWriteCircle2 ImageTint 255,255,255,100]
IfAboveValue=0
IfAboveAction=[!SetOption meterWriteCircle1 ImageTint 204,0,0,255][!SetOption meterWriteCircle2 ImageTint 255,0,0,255]
Group=measureRW

;for the string
[MeasureHD1DiskWritesSec]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Write Bytes/sec"
PerfMonInstance=#HD1#

[MeterHD1WritesSpeedLabel]
Meter=String
MeterStyle=styleLeftText
FontColor=255,255,255,50
X=[MeterHD1ReadSpeedLabel:X]
Y=80
Text="Write:"

[MeterHD1WritesSpeed]
Meter=String
MeasureName=MeasureHD1DiskWritesSec
MeterStyle=styleRightText
FontColor=255,255,255,50
X=196
Y=r
Autoscale=1

[MeterWriteLine]
Meter=Histogram
MeasureName=MeasureHD1DiskWrites
GraphStart=Left
X=[MeterReadLine:X]
;Y=([MeterReadLine:Y]+26)
W=[MeterReadLine:W]
H=25
Autoscale=1
Antialias=1
PrimaryColor=176,196,222,150
SolidColor=255,255,255,15
Group=Graph

;[""""""""""""""""""""""""""""""[[Activity_Indicators]]""""""""""""""""""""""""""""""]

[meterReadCircle1]
Meter=image
ImageName=#@#Images\Arrow.png
X=11
;Y=65
Group=Graph

[meterWriteCircle1]
Meter=image
ImageName=#@#Images\Arrow.png
X=r
;Y=21r
ImageFlip=VERTICAL
Group=Graph

;[""""""""""""""""""""""""""""""[[Collapse-Expand]]""""""""""""""""""""""""""""""]

[meterHideGraphs]
Meter=Button
ButtonImage=#@#Images\left.png
X=185
Y=15
ImageTint=255,255,255,150
LeftMouseUpAction=[!SetVariable SkinState "0"][!WriteKeyValue Variables SkinState "0"][!UpdateMeasure "MeasureSkinState"]
TooltipText=Hide graph

[meterShowGraphs]
Meter=Button
ButtonImage=#@#Images\right.png
X=r
Y=r
ImageTint=255,255,255,150
LeftMouseUpAction=[!SetVariable SkinState "1"][!WriteKeyValue Variables SkinState "1"][!UpdateMeasure "MeasureSkinState"]
TooltipText=Show graph
Hidden=1

[MeasureSkinState]
Measure=Calc
Formula=#SkinState#
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!HideMeterGroup "Graph"][!ShowMeter "meterShowGraphs"][!HideMeter "meterHideGraphs"][!SetOption "MeterHD1ReadSpeedLabel" "X" "10"][!SetOption "MeterHD1WritesSpeedLabel" "X" "10"][!SetOption "MeterHD1WritesSpeedLabel" "Y" "69"][!DisableMeasureGroup "measureRW"][!SetOption "MeterReadLine" "Y" "1"][!SetOption "MeterWriteLine" "Y" "1"][!SetOption "meterReadCircle1" "Y" "1"][!SetOption "meterWriteCircle1" "Y" "1"][!Update]
IfFalseAction=[!ShowMeterGroup "Graph"][!HideMeter "meterShowGraphs"][!ShowMeter "meterHideGraphs"][!SetOption "MeterHD1ReadSpeedLabel" "X" "27"][!SetOption "MeterHD1WritesSpeedLabel" "X" "27"][!SetOption "MeterHD1WritesSpeedLabel" "Y" "82"][!EnableMeasureGroup "measureRW"][!SetOption "MeterReadLine" "Y" "58"][!SetOption "MeterWriteLine" "Y" "84"][!SetOption "meterReadCircle1" "Y" "65"][!SetOption "meterWriteCircle1" "Y" "86"][!Update]
DynamicVariables=1
User avatar

Re: HELP: Illustro disk.ini.....not showing D: info

July 12th, 2018, 3:49 pm
balala
Rainmeter Sage   [6678 posts]

belzey wrote:The Illustro Pulsar skin picks up the D: drive perfectly, but I don't like the looks. Can I rob the code from it work something?

This second code is also working for me, exactly same way as the first one did.
On the other hand what you mean by "rob the code"?

Return to “Help: Rainmeter Skins”



Who is online

Users browsing this forum: CommonCrawler [Bot] and 1 guest