It is currently March 28th, 2024, 12:56 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 »

No worries, credit where it's due :thumbup:
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 »

Bloody hell! I've just found this bookmarked, I forgot all about it! :oops:

I just tried the link supplied above and found that it's no longer part of RM is that right? Seems to have been superceded by the UsageMonitor Plugin.
User avatar
jsmorley
Developer
Posts: 22628
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: HDD activity indicators

Post by jsmorley »

sl23 wrote: August 9th, 2019, 6:05 pm Bloody hell! I've just found this bookmarked, I forgot all about it! :oops:

I just tried the link supplied above and found that it's no longer part of RM is that right? Seems to have been superceded by the UsageMonitor Plugin.
The Perfmon plugin is still part of Rainmeter, but should be ditched in all new skins in favor of UsageMonitor.

https://docs.rainmeter.net/manual/plugins/deprecated/perfmon/

https://docs.rainmeter.net/manual/plugins/usagemonitor/
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, I'll look at that tomorrow
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 »

jsmorley wrote: June 20th, 2017, 7:24 pm Pretty easy to do with PerfMon

https://docs.rainmeter.net/manual/plugins/deprecated/perfmon/
3 years later and I finally got round to trying this out! :o
Although I actually used the RMskin from eclectic-tech using balala's code. Thanks to you both for supplying that.
I have tweaked it to get it working with changing the FontColor instead of using RoundMeter's, my preference. I did attempt to change the RoundMeter's for StrokeColor, but this proved difficult, so I opted for a more preferred minimalist approach and just changed FontColor instead. Works a treat! :D

One thing though, I noticed that the PerfMon plugin has been deprecated, so I'm trying to replace the code for use with the UsageMonitor plugin. However, I'm stuck getting the correct syntax to get it working. Any chance of some help please... Thanks

Currently I have this:

Code: Select all

========================================
; 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=Bytes Read/sec
PerfMonInstance=C:

[mDiskWrite1]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Bytes Write/sec
PerfMonInstance=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=StringStyle
Text=C:
Group=Disk1
LeftMouseUpAction=["#CE#" "C:\"]
X=10
I've changed the [mDiskRead1] & [mDiskWrite1]sections, but it's not doing what it should.
What do I do with the PerfMonInstance=C: line of code? How do I specify what Disk to monitor using UsageMonitor?
Is that all that is needed to get it to work?

EDIT:
I found the Instance=C: so I changed that. I was looking at the bottom in the blue sections of the manual and it's at the top! :?
Still not working though. Here's the updated code:

Code: Select all

========================================
; 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=Bytes Read/sec
Instance=C:

[mDiskWrite1]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Bytes Write/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
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: HDD activity indicators

Post by balala »

sl23 wrote: January 14th, 2021, 1:03 pm One thing though, I noticed that the PerfMon plugin has been deprecated, so I'm trying to replace the code for use with the UsageMonitor plugin. However, I'm stuck getting the correct syntax to get it working.
Try to replace the Counter option of both measures, [mDiskWrite1] and [mDiskRead1] (Counter=Bytes Write/sec and Counter=Bytes Read/sec) with Counter=Disk Write Bytes/sec respectivelly Counter=Disk Read Bytes/sec.
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 »

Thanks balala, that done the trick :thumbup:
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: HDD activity indicators

Post by balala »

sl23 wrote: January 14th, 2021, 7:01 pm Thanks balala, that done the trick :thumbup:
I'm glad, good job. :great:
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 »

Almost! :welcome:
Now for some reason they all light up the same colour at the same time. There's no independently working monitor!
Any ideas?
User avatar
balala
Rainmeter Sage
Posts: 16109
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: HDD activity indicators

Post by balala »

sl23 wrote: January 14th, 2021, 7:15 pm Now for some reason they all light up the same colour at the same time. There's no independently working monitor!
Any ideas?
Do you mean for more drives / partitions?
Post Reply