It is currently April 27th, 2024, 6:27 pm

HDD activity indicators

Get help with creating, editing & fixing problems with skins
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: HDD activity indicators

Post by sl23 »

Sorry no. I currently have drives C, D and E showing as just letters that with your original skin, would flash each according to drive activity. Since changing it to just the FontColor, it still worked fine. But now I've changed from the PerfMon to the UsageMonitor plugin, they all light up in sync with whatever it is that is triggering them. They all light up red or yellow or green at the same time.

Here's the full code down to E: only, which is as far as I have got as I only have the 3 drives connected at the moment:

Code: Select all

[Rainmeter]
Update=250
BackgroundMode=2
SolidColor=0,0,0,1
AccurateText=1
DynamicWindowSize=1
SkinHeight=40

[Metadata]
Name=Disk Activity
Author=Balala (blaci75@gmail.com)
Version=1.1
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Information=Displays all hard disk activity.

[Variables]
CE=#PROGRAMPATH#..\..\SyMenuSuite\CubicExplorer_sps\CubicExplorer.exe

========================================
; STYLES
========================================
[sText]
FontFace=Corbel
StringStyle=Bold
StringAlign=Center
FontSize=10
FontColor=150,150,150,150
AntiAlias=1
X=5R
Y=5

========================================
; DISK 1 - C:
========================================
[mTotalDisk1]
Measure=FreeDiskSpace
Drive=C:
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(mTotalDisk1=0)
IfTrueAction=[!HideMeterGroup "Disk1"]
IfFalseAction=[!ShowMeterGroup "Disk1"]

[mDiskRead1]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Disk Read Bytes/sec
Instance=C:

[mDiskWrite1]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Disk Write Bytes/sec 
Instance=C:
IfCondition=((mDiskRead1=0)&&(mDiskWrite1=0))
IfTrueAction=[!SetOption Disk1 FontColor "150,150,150,150"][!UpdateMeter "Disk1"][!Redraw]
IfCondition2=((mDiskRead1>0)&&(mDiskWrite1=0))
IfTrueAction2=[!SetOption Disk1 FontColor "0,255,0,255"][!UpdateMeter "Disk1"][!Redraw]
IfCondition3=((mDiskRead1=0)&&(mDiskWrite1>0))
IfTrueAction3=[!SetOption Disk1 FontColor "255,0,0,255"][!UpdateMeter "Disk1"][!Redraw]
IfCondition4=((mDiskRead1>0)&&(mDiskWrite1>0))
IfTrueAction4=[!SetOption Disk1 FontColor "255,240,0,255"][!UpdateMeter "Disk1"][!Redraw]

[Disk1]
Meter=String
MeterStyle=sText
Text=C:
Group=Disk1
LeftMouseUpAction=["#CE#" "C:\"]
X=10

========================================
; DISK 2 - D:
========================================
[mTotalDisk2]
Measure=FreeDiskSpace
Drive=D:
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(mTotalDisk2=0)
IfTrueAction=[!HideMeterGroup "Disk2"]
IfFalseAction=[!ShowMeterGroup "Disk2"]

[mDiskRead2]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Disk Read Bytes/sec
Instance=D:

[mDiskWrite2]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Disk Write Bytes/sec 
Instance=D:
IfCondition=((mDiskRead2=0)&&(mDiskWrite2=0))
IfTrueAction=[!SetOption Disk2 FontColor "150,150,150,150"][!UpdateMeter "Disk2"][!Redraw]
IfCondition2=((mDiskRead2>0)&&(mDiskWrite2=0))
IfTrueAction2=[!SetOption Disk2 FontColor "0,255,0,255"][!UpdateMeter "Disk2"][!Redraw]
IfCondition3=((mDiskRead2=0)&&(mDiskWrite2>0))
IfTrueAction3=[!SetOption Disk2 FontColor "255,0,0,255"][!UpdateMeter "Disk2"][!Redraw]
IfCondition4=((mDiskRead2>0)&&(mDiskWrite2>0))
IfTrueAction4=[!SetOption Disk2 FontColor "255,240,0,255"][!UpdateMeter "Disk2"][!Redraw]

[Disk2]
Meter=String
MeterStyle=sText
Text=D:
Group=Disk2
LeftMouseUpAction=["#CE#" "D:\"]

========================================
; DISK 3 - E:
========================================
[mTotalDisk3]
Measure=FreeDiskSpace
Drive=E:
Total=1
UpdateDivider=3
IgnoreRemovable=0
IfCondition=(mTotalDisk3=0)
IfTrueAction=[!HideMeterGroup "Disk3"]
IfFalseAction=[!ShowMeterGroup "Disk3"]

[mDiskRead3]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Disk Read Bytes/sec
Instance=E:

[mDiskWrite3]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Disk Write Bytes/sec
Instance=E:
IfCondition=((mDiskRead3=0)&&(mDiskWrite3=0))
IfTrueAction=[!SetOption Disk3 FontColor "150,150,150,150"][!UpdateMeter "Disk3"][!Redraw]
IfCondition2=((mDiskRead3>0)&&(mDiskWrite3=0))
IfTrueAction2=[!SetOption Disk3 FontColor "0,255,0,255"][!UpdateMeter "Disk3"][!Redraw]
IfCondition3=((mDiskRead3=0)&&(mDiskWrite3>0))
IfTrueAction3=[!SetOption Disk3 FontColor "255,0,0,255"][!UpdateMeter "Disk3"][!Redraw]
IfCondition4=((mDiskRead3>0)&&(mDiskWrite3>0))
IfTrueAction4=[!SetOption Disk3 FontColor "255,240,0,255"][!UpdateMeter "Disk3"][!Redraw]

[Disk3]
Meter=String
MeterStyle=sText
Text=E:
Group=Disk3
LeftMouseUpAction=["#CE#" "E:\"]
- MuLab -
User avatar
balala
Rainmeter Sage
Posts: 16178
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: HDD activity indicators

Post by balala »

sl23 wrote: January 14th, 2021, 7:25 pm Sorry no. I currently have drives C, D and E showing as just letters that with your original skin, would flash each according to drive activity. Since changing it to just the FontColor, it still worked fine. But now I've changed from the PerfMon to the UsageMonitor plugin, they all light up in sync with whatever it is that is triggering them. They all light up red or yellow or green at the same time.
Two things you should update:
  • Replace the Category=PhysicalDisk options in all plugin measures with Category=LogicalDisk. The partitions of a hard-drive (SSD or whatever) are not physical drives, but logical drives.
  • Replace the Instance=X: options with Name=X: (X: being C:, D: and E:, accordingly). If you don't add the Name option, I suppose the measures are using all the C: (some kind of default value, even if according to the manual this option doesn1t have a default value), so all of them are returning the same value.
User avatar
sl23
Posts: 1140
Joined: February 17th, 2011, 7:45 pm
Location: a Galaxy S7 far far away

Re: HDD activity indicators

Post by sl23 »

Thank you balala :thumbup:

That's solved it, 3 years in the making ! :Whistle :welcome:
- MuLab -
User avatar
balala
Rainmeter Sage
Posts: 16178
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: HDD activity indicators

Post by balala »

sl23 wrote: January 14th, 2021, 11:22 pm That's solved it, 3 years in the making ! :Whistle :welcome:
Glad if you got it working well.