It is currently October 18th, 2019, 12:12 pm

UsageMonitor plugin not working

Help with creating, editing & fixing problems with skins
eats7
Posts: 7
Joined: May 29th, 2013, 12:12 am

UsageMonitor plugin not working

eats7 » May 10th, 2019, 8:58 am

Hey I'm using 4.3 final, and no matter what I do I can't get the usage monitor plugin to work.
Any skin that uses it (I've tried many) just reports back all zeros for anything that uses the plugin.
I'm running windows 10 latest update. Not sure if I'm missing something simple?
User avatar
ikarus1969
Posts: 350
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: UsageMonitor plugin not working

ikarus1969 » May 10th, 2019, 9:13 am

As my usageMonitor skins are working (and i think they do for almost all users): could you please upload one of those not-working skins? Be sure to include any include-files, graphics etc.

The easiest way would be a rmskin-file of your skin.

So one could have a look what might goes wrong.
User avatar
jsmorley
Developer
Posts: 19579
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: UsageMonitor plugin not working

jsmorley » May 10th, 2019, 11:47 am

eats7
Posts: 7
Joined: May 29th, 2013, 12:12 am

Re: UsageMonitor plugin not working

eats7 » May 11th, 2019, 12:12 am

Yep! Those commands fixed it! Was searching forever to try and find a solution. Thank you!
User avatar
jsmorley
Developer
Posts: 19579
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: UsageMonitor plugin not working

jsmorley » May 11th, 2019, 12:22 am

Great. Glad to help.
eats7
Posts: 7
Joined: May 29th, 2013, 12:12 am

Re: UsageMonitor plugin not working

eats7 » May 11th, 2019, 1:19 am

Sorry to bother you again, I'm having an issue getting read and write speed for disks C and D. I tried implementing what you said in another thread, but I can't seem to get it to work.

Heres my code and an .rmskin. I'm not a programmer or anything but I've hacked this together.

Code: Select all

;===========================================
;  Rainmeter configuration file
;===========================================


BackgroundMode=1


[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata


[Variables]
FontName=arial
FontColour=255,50,50
FontHeight=8

AntiAlias=1





[MeasureTemp0]
Measure=Plugin
Plugin=Plugins\HWiNFO.dll
HWiNFOSensorId=0xe0002000
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x1000000
HWiNFOType=CurrentValue


[MeasureTemp1]
Measure=Plugin
Plugin=Plugins\HWiNFO.dll
HWiNFOSensorId=0xf0000400
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x1000000
HWiNFOType=CurrentValue

[MeasureTemp2]
Measure=Plugin
Plugin=Plugins\HWiNFO.dll
HWiNFOSensorId=0xf7067980
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x1000000
HWiNFOType=CurrentValue

[MeasureTemp3]
Measure=Plugin
Plugin=Plugins\HWiNFO.dll
HWiNFOSensorId=0xf3000002
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x1000001
HWiNFOType=CurrentValue

[MeasureTemp4]
Measure=Plugin
Plugin=Plugins\HWiNFO.dll
HWiNFOSensorId=0xf0000100
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x1000000
HWiNFOType=CurrentValue

[MeasureTemp5]
Measure=Plugin
Plugin=Plugins\HWiNFO.dll
HWiNFOSensorId=0xf0000100
HWiNFOSensorInstance=0x1
HWiNFOEntryId=0x1000000
HWiNFOType=CurrentValue

[MeasureTemp6]
Measure=Plugin
Plugin=Plugins\HWiNFO.dll
HWiNFOSensorId=0xf0000300
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x6000000
HWiNFOType=CurrentValue

[MeasureTemp7]
Measure=Plugin
Plugin=Plugins\HWiNFO.dll
HWiNFOSensorId=0xf0000301
HWiNFOSensorInstance=0x1
HWiNFOEntryId=0x6000000
HWiNFOType=CurrentValue


[MeasureCpu]
Measure=CPU

[MeasureRam]
Measure=PhysicalMemory

[MeasureSSD]
Measure=FreeDiskSpace
InvertMeasure=1
Drive=C:

[MeasureHDD]
Measure=FreeDiskSpace
InvertMeasure=1
Drive=D:

[MeasureNetIn]
Measure=NetIn

[MeasureNetOut]
Measure=NetOut




[MeasureDiskCRead]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Read Bytes/sec
Name=C:


[MeasureDiskCWrite]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Write Bytes/sec
Name=C:



[MeasureDiskDWrite]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Write Bytes/sec
Name=D:


[MeasureDiskDRead]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Read Bytes/sec
Name=D:



[TempText0]
Meter=STRING
X=0
Y=4
Text="GPU:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[TempText1]
Meter=STRING
X=0
Y=20
Text="CPU:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[TempText2]
Meter=STRING
X=87
Y=4
Text="MB:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[TempText3]
Meter=STRING
X=80
Y=20
Text="RAM:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[TempText4]
Meter=STRING
X=165
Y=4
Text="SSD 1:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[TempText5]
Meter=STRING
X=165
Y=20
Text="SSD 2:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1


[TempText6]
Meter=STRING
X=255
Y=20
Text="MCLK:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1


[TempText7]
Meter=STRING
X=264
Y=4
Text="CLK:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[CpuText]
Meter=STRING
X=368
Y=4
Text="CPU:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[RamText]
Meter=STRING
X=365
Y=20
Text="RAM:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[SsdText]
Meter=STRING
X=435
Y=4
Text="SSD 1:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[HDDText]
Meter=STRING
X=435
Y=20
Text="SSD 2:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[SsdR]
Meter=STRING
X=508
Y=4
Text="R:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[SsdW]
Meter=STRING
X=508
Y=20
Text="R:"
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1





[MeterText0]

Meter=STRING
X=30
Y=4
W=1
H=1
MeasureName=MeasureTemp0
Text="%1 °C"
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
NumofDecimals=1
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1




[MeterText1]
Meter=STRING

X=30
Y=20
W=1
H=1

MeasureName=MeasureTemp1
Text="%1 °C"
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
NumofDecimals=1
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[MeterText2]
Meter=STRING


X=115
Y=4
W=40
H=1

MeasureName=MeasureTemp2
Text="%1 °C"
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
NumofDecimals=1
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[MeterText3]
Meter=STRING
X=115
Y=20
W=40
H=1

MeasureName=MeasureTemp3
Text="%1 °C"
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
NumofDecimals=1
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[MeterText4]
Meter=STRING

X=205
Y=4
W=40
H=1

MeasureName=MeasureTemp4
Text="%1 °C"
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
NumofDecimals=1
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1


[MeterText5]
Meter=STRING
X=205
Y=20
W=40
H=1


MeasureName=MeasureTemp5
Text="%1 °C"
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
NumofDecimals=1
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1


[MeterText6]
Meter=STRING
X=295
Y=4
W=60
H=1


MeasureName=MeasureTemp6
Text="%1 Mhz"
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
NumofDecimals=1
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[MeterText7]
Meter=STRING
X=295
Y=20
W=60
H=1


MeasureName=MeasureTemp7
Text="%1 Mhz"
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
NumofDecimals=1
StringStyle=Normal
FontFace=#FontName#
AntiAlias=1

[CpuMeasureText]
Meter=STRING
X=400
Y=4
W=60
H=1


MeasureName=MeasureCpu
StringStyle=Normal
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
AutoScale=1
Percentual=1
Postfix="%"

[RamMeasureText]
Meter=STRING
X=400
Y=20
W=60
H=1


MeasureName=MeasureRam
StringStyle=Normal
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
AutoScale=1
Percentual=1
Postfix="%"

[SsdMeasureText]
Meter=STRING
X=475
Y=4
W=60
H=1


MeasureName=MeasureSSD
StringStyle=Normal
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
AutoScale=1
Percentual=1
Postfix="%"



[HDDMeasureText]
Meter=STRING
X=475
Y=20
W=60
H=1


MeasureName=MeasureHDD
StringStyle=Normal
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
AutoScale=1
Percentual=1
Postfix="%"


[MeterDL]
Meter=STRING
X=600
Y=4
Text="DL: "
StringStyle=Normal
FontColor=#FontColour#
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
AutoScale=1


[MeterDown]
Meter=STRING
MeasureName=MeasureNetIn
X=2R
Y=4
W=160
H=1
Text="%1B"
AutoScale=1
FontColor=255,255,255
FontSize=#FontHeight#
StringStyle=Normal
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
PostFix="/S"


[DiskCReadString]
Meter=STRING
MeasureName=MeasureDiskCRead
X=525
Y=4
W=160
H=1
Text="R: "
FontColor=#FontColour#
StringStyle=Normal
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
AutoScale=1

[MeterUL]
Meter=STRING
X=600
Y=20
Text="UL: "
FontColor=#FontColour#
StringStyle=Normal
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
AutoScale=1

[MeterUp]
Meter=STRING
MeasureName=MeasureNetOut
X=2R
Y=20
W=160
H=1
Text="%1B"
AutoScale=1
StringStyle=Normal
FontColor=255,255,255
FontSize=#FontHeight#
StringAlign=LEFT
FontFace=#FontName#
AntiAlias=1
PostFix="/S"





I've gotten as far as [DiskCReadString] but I can't get it to output the "MeasureDiskCRead" measure
Taskbar meters_.rmskin
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 8852
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: UsageMonitor plugin not working

balala » May 11th, 2019, 6:26 am

eats7 wrote:
May 11th, 2019, 1:19 am
Sorry to bother you again, I'm having an issue getting read and write speed for disks C and D. I tried implementing what you said in another thread, but I can't seem to get it to work.
If you got the plugin to properly work, the [MeasureDiskCRead] and [MeasureDiskDRead] measures do work, but note that if you want to show the results returned by these measures into a String meter, you have to use the numeric values returned by the measures. These measures are returning different string and numeric values. Using a simple MeasureName=MeasureDiskCRead option onto a String meter (like you did on [DiskCReadString]) shows the string value. To get the numeric one, (optionally) remove the MeasureName option and replace the Text option with the following one: Text=R: [MeasureDiskCRead:]. Note how does the above option shows the numeric value: [MeasureDiskCRead:] is a section variable, which always is numeric, returning the numeric value of the [MeasureDiskCRead] measure (details). This option this way will work ONLY if you are also adding a DynamicVariables=1 option to the meter which is using the section variable (in this case to the [DiskCReadString] meter). Don't forget to add it.
Also note a few more things:
  • You don't have to quote the values used into different options. For example the quotes are not required into the Text option of the [MeterDown] meter, so you can replace the Text="%1B" option with Text=%1B, which will perfectly work. Details: https://forum.rainmeter.net/viewtopic.php?f=5&t=26350&p=137628&hilit=quote+enclose+option#p137628
  • Postfix, as well as Prefix, would be better not to be used on String meters. You should have to avoid using them. For example instead of the PostFix="/S" (or Postfix=/S) option of the same [MeterDown] meter, you should include this into the Text option, as it follows: Text=%1B/S.
  • The first option posted at the beginning of the code (BackgroundMode=1) doesn't belong to any section of the code. Add a [Rainmeter] section name before it (where this option belongs).
eats7
Posts: 7
Joined: May 29th, 2013, 12:12 am

Re: UsageMonitor plugin not working

eats7 » May 12th, 2019, 2:03 am

Thanks for the reply, I got the meter to work.

My issue now is, it seems to be the raw value in bytes per second, whereas what I want is for it to behave much like the network meters, where it starts off at b/s then to kb/s then to mb/s etc. It never goes past 3 digits, and the data-rate units scale appropriately, whereas the read access meter just has a long value (because its displaying everything in bytes)


Also a lot of these meters, I never made, it's from other authors so a lot of the code isn't mine, I just copied it :P
User avatar
balala
Rainmeter Sage
Posts: 8852
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: UsageMonitor plugin not working

balala » May 12th, 2019, 12:05 pm

eats7 wrote:
May 12th, 2019, 2:03 am
My issue now is, it seems to be the raw value in bytes per second, whereas what I want is for it to behave much like the network meters, where it starts off at b/s then to kb/s then to mb/s etc. It never goes past 3 digits, and the data-rate units scale appropriately, whereas the read access meter just has a long value (because its displaying everything in bytes)
Ok, then you have to pass the value of the UsageMonitor plugin measure through a Calc measure, then use the value of this last measure into the String meter. So add the following measure to your code:

Code: Select all

[MeasureDiskCRead2]
Measure=Calc
Formula=MeasureDiskCRead
Then replace once again the Text option of the [DiskCReadString] with Text=R: %1 and add the MeasureName=MeasureDiskCRead2 option to the same [DiskCReadString] meter. This way you'll get working the AutoScale=1 option added to the [DiskCReadString] meter.
eats7 wrote:
May 12th, 2019, 2:03 am
Also a lot of these meters, I never made, it's from other authors so a lot of the code isn't mine, I just copied it :P
That's the best way to learn a lot of things related to Rainmeter. Keep working and you'll be getting better and better every day. :thumbup:
eats7
Posts: 7
Joined: May 29th, 2013, 12:12 am

Re: UsageMonitor plugin not working

eats7 » May 13th, 2019, 3:49 am

Awesome. Thanks!