It is currently September 16th, 2019, 11:41 am

Will Usage Monitor plugin measure Disk Byte/sec on Mapped Drive

Get help with installing and using Rainmeter.
User avatar
siliconman01
Posts: 18
Joined: April 26th, 2015, 1:47 pm
Location: St. Albans, West Virginia USA

Will Usage Monitor plugin measure Disk Byte/sec on Mapped Drive

siliconman01 » May 27th, 2019, 8:41 am

I have 3 Western Digital My Cloud mapped drives along with 2 logical disk drives as my primary drives. I have custom rainmeter skins that display specific usage data and also the DIsk Byte/sec as a line graph. My line graph logic works fine for the 2 logical drives, but does not work at all for any of the mapped drives. In the code below, [Mse_DriveAccessP] and [Rl_DriveAccessP] are the two sections that "do not work" for mapped drives. Is my code incorrect for mapped drives or is this not possible for mapped drives.

Code: Select all

;===========================================
;  Rainmeter System WD MyCloud Disk configuration file
;===========================================

[Rainmeter]
Author=Tom
AppVersion=1.0
Update=5000
DynamicWindowSize=1
AccurateText=1

[Variables]
fontColor.Text=255, 255, 255, 255
bar.color=255, 255, 255, 255
graph.line1=255, 255, 255, 255
graph.line2=255, 255, 255, 255

FontName=Calibri
FontHeight=10
AntiAlias=1

[MeterBackground]
Meter=Shape
Shape=Rectangle 5,0,260,130,8 | StrokeWidth 3 | Stroke Color 0,128,128,255 | Fill Color 0,0,0,1
Shape2=Rectangle 10,5,250,120,8 | StrokeWidth 0 | Fill Color 0,0,0,255

;:::::::::::::::::::::::::::::::::::::
;
;      Physical Disc 0
;
;:::::::::::::::::::::::::::::::::::::

[Mse_DriveAccessP]
Measure=Plugin
Plugin=UsageMonitor
Category=PhysicalDisk
Counter=Disk Bytes/sec
Name=P:

[Mse_TotalP]
Measure=FreeDiskSpace
Drive=P:
Total=1

[Mse_FreeP]
Measure=FreeDiskSpace
Drive=P:

[Mse_UsedP]
Measure=FreeDiskSpace
Drive=P:
InvertMeasure=1

[MeterRightLine0]
Meter=IMAGE
X=0
Y=-3
W=110
H=110
ImageName=My Cloud PR2100.png
LeftMouseUpAction=["C:\Windows\System32\Diskmgmt.msc"]

[MeasureTotalSwapP]
Measure=SwapMemory
Total=1

[MeasureUsedSwapP]
Measure=SwapMemory

[MeasureFreeSwapP]
Measure=SwapMemory
InvertMeasure=1

[HDDP.txt]
Meter=STRING
X=120
Y=4
FontColor=255, 255, 0
FontSize=12
FontFace=#FontName#
StringStyle=BOLD
StringEffect=BORDER
FontEffectColor=0, 0, 0, 255
AntiAlias=1
Text="Mapped Drive P:"
LeftMouseDownAction=!Execute ["P:\"]

[MeterLineP]
Meter=Image
SolidColor=0,255,255,255
X=120
Y=22
W=120
H=1

[aHDDP.txt]
Meter=STRING
X=15
Y=100
FontColor=255,0,255,255
FontSize=11
FontFace=#FontName#
StringStyle=BOLD
StringEffect=BORDER
FontEffectColor=0, 0, 0, 255
AntiAlias=1
Text="My Cloud PR2100 (P:)"

[1HDDP.txt]
Meter=STRING
X=150
Y=52
FontColor=255, 255, 255,255
FontSize=10
FontFace=#FontName#
StringStyle=BOLD
StringEffect=BORDER
FontEffectColor=0, 0, 0, 255
AntiAlias=1
Text="Total:"

[DrivePTotal]
MeasureName=Mse_TotalP
Meter=STRING
X=248
Y=52
FontColor=0, 255, 255
StringStyle=BOLD
StringEffect=BORDER
FontEffectColor=0, 0, 0, 255
StringAlign=right
Fontsize=10
Fontface=Calibri
Text="%1B"
AntiAlias=1
NumOfDecimals=2
AutoScale=1

[2aHDDP.txt]
Meter=STRING
X=150
Y=66
FontColor=255, 255, 255,255
FontSize=10
FontFace=#FontName#
StringStyle=BOLD
StringEffect=BORDER
FontEffectColor=0, 0, 0, 255
AntiAlias=1
Text="Used:"

[DrivePUsed]
MeasureName=Mse_UsedP
Meter=STRING
X=248
Y=66
FontColor=0, 255, 255
StringStyle=BOLD
StringEffect=BORDER
FontEffectColor=0, 0, 0, 255
StringAlign=right
Fontsize=10
Fontface=calibri
Text="%1B"
AntiAlias=1
NumOfDecimals=2
AutoScale=1

[2HDDP.txt]
Meter=STRING
X=150
Y=80
FontColor=255, 255, 255,255
FontSize=10
FontFace=#FontName#
StringStyle=BOLD
StringEffect=BORDER
FontEffectColor=0, 0, 0, 255
AntiAlias=1
Text="Free:"

[DrivePFree]
MeasureName=Mse_FreeP
Meter=STRING
X=248
Y=80
FontColor=0, 255, 255
StringStyle=BOLD
StringEffect=BORDER
FontEffectColor=0, 0, 0, 255
StringAlign=right
Fontsize=10
Fontface=calibri
Text="%1B"
AntiAlias=1
NumOfDecimals=2
AutoScale=1

[Rl_DriveAccessP]
Meter=Line
MeasureName=Mse_DriveAccessP
X=169
Y=88
H=25
W=70
LineCount=1
LineColor=145, 255, 4, 255
AutoScale=1
AntiAlias=1
MappedDiskIO.png
You do not have the required permissions to view the files attached to this post.
Windows 10 x64 Pro on ASUS Maximus VIII Extreme motherboard, i7-6700k CPU,H220 X2 Liquid Cooler, 64 gbyte RipJaws DDR4 3200 RAM, Samsung 970 Pro NVMe M.2 512 gbyte SSD + Samsung 850 Pro 512 gbyte SSD, EVGA Nvidia GeForce 980 Titan card (Home Built System);  Windows 10 x64 Pro on Dell 8700 SE desktop, Intel i7 4770 CPU, 24 gbyte RAM, Samsung 850 EVO mSATA 512 gbyte SSD, Samsung 850 Pro 512 gbyte SSD, Nvidia 750 Ti:  Windows 10 x64 Pro on Dell XPS 410 desktop, 16 gbyte RAM, Intel CPU, GeForce Nvidia 750 Ti graphics:  Windows 10x64 Pro on 128 gbyte MS Surface Pro tablet:  Windows 10x64 Pro on 512 gigabyte Dell XPS 15 2-in-1 Laptop/tablet.  ASUS RT-AC88U router, 8 tbyte WD My Cloud PR2100 NAS Server, 200 Mbps cable Internet, ExpressVPN, Google Chrome, MS Office 2019 (Local), Casper 10, DisplayFusion (3 Flat Panel Displays per system):   Norton Security Deluxe 2019, Malwarebytes 3, Sticky Password 8, WD Smartware, PowerDVD18, MSI Burner, Rainmeter, Windows Sidebar, and many more.
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Will Usage Monitor plugin measure Disk Byte/sec on Mapped Drive

balala » May 27th, 2019, 3:56 pm

siliconman01 wrote:
May 27th, 2019, 8:41 am
My line graph logic works fine for the 2 logical drives, but does not work at all for any of the mapped drives. In the code below, [Mse_DriveAccessP] and [Rl_DriveAccessP] are the two sections that "do not work" for mapped drives. Is my code incorrect for mapped drives or is this not possible for mapped drives.
I think it should have to be possible, but unfortunately I don't have such mapped drives, so I can't check out your code. However I see two things which probably worth to be mentioned:
  • First try to replace the Category=PhysicalDisk option of the [Mse_DriveAccessP] measure with Category=LogicalDisk. I just think that a mapped drive isn't a physical drive.
  • Secondly try to reduce the Update value of the code to the default Update=1000 ([Rainmeter] section). Update=5000 (as you have it right now) means one update per five seconds, so in some cases you have to wait up to five seconds to get the skin reacting.
User avatar
siliconman01
Posts: 18
Joined: April 26th, 2015, 1:47 pm
Location: St. Albans, West Virginia USA

Re: Will Usage Monitor plugin measure Disk Byte/sec on Mapped Drive

siliconman01 » May 27th, 2019, 7:47 pm

balala wrote:
May 27th, 2019, 3:56 pm
I think it should have to be possible, but unfortunately I don't have such mapped drives, so I can't check out your code. However I see two things which probably worth to be mentioned:
  • First try to replace the Category=PhysicalDisk option of the [Mse_DriveAccessP] measure with Category=LogicalDisk. I just think that a mapped drive isn't a physical drive.
  • Secondly try to reduce the Update value of the code to the default Update=1000 ([Rainmeter] section). Update=5000 (as you have it right now) means one update per five seconds, so in some cases you have to wait up to five seconds to get the skin reacting.
Thanks for your feedback. Neither of the above suggestions resolved the issue. Any additional assistance will be greatly appreciated.
Windows 10 x64 Pro on ASUS Maximus VIII Extreme motherboard, i7-6700k CPU,H220 X2 Liquid Cooler, 64 gbyte RipJaws DDR4 3200 RAM, Samsung 970 Pro NVMe M.2 512 gbyte SSD + Samsung 850 Pro 512 gbyte SSD, EVGA Nvidia GeForce 980 Titan card (Home Built System);  Windows 10 x64 Pro on Dell 8700 SE desktop, Intel i7 4770 CPU, 24 gbyte RAM, Samsung 850 EVO mSATA 512 gbyte SSD, Samsung 850 Pro 512 gbyte SSD, Nvidia 750 Ti:  Windows 10 x64 Pro on Dell XPS 410 desktop, 16 gbyte RAM, Intel CPU, GeForce Nvidia 750 Ti graphics:  Windows 10x64 Pro on 128 gbyte MS Surface Pro tablet:  Windows 10x64 Pro on 512 gigabyte Dell XPS 15 2-in-1 Laptop/tablet.  ASUS RT-AC88U router, 8 tbyte WD My Cloud PR2100 NAS Server, 200 Mbps cable Internet, ExpressVPN, Google Chrome, MS Office 2019 (Local), Casper 10, DisplayFusion (3 Flat Panel Displays per system):   Norton Security Deluxe 2019, Malwarebytes 3, Sticky Password 8, WD Smartware, PowerDVD18, MSI Burner, Rainmeter, Windows Sidebar, and many more.
User avatar
balala
Rainmeter Sage
Posts: 8617
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Will Usage Monitor plugin measure Disk Byte/sec on Mapped Drive

balala » May 27th, 2019, 8:02 pm

siliconman01 wrote:
May 27th, 2019, 7:47 pm
Thanks for your feedback. Neither of the above suggestions resolved the issue. Any additional assistance will be greatly appreciated.
Sorry, no more ideas.