It is currently April 19th, 2024, 7:01 pm

Removable storage with Force X

Get help with creating, editing & fixing problems with skins
eng3
Posts: 13
Joined: November 11th, 2017, 3:06 am

Removable storage with Force X

Post by eng3 »

I've been using "ForceX System Monitor 3" and use the HD monitors. I'm using a microSD as an extra HD on my laptop.
I cannot seem to get it to recognize it. I set the drive number variable to the appropriate drive letter, but it just shows as 0 used, 0 free, 0 total.

The measure names are:
Mse_drive#Used
Mse_drive#Free
Mse_drive#Size

where # is the drive number

I'd appreciate any advice.
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Removable storage with Force X

Post by mak_kawa »

Is the line IgnoreRemovable=0 in concerned FreeDiskSpace measure?
eng3
Posts: 13
Joined: November 11th, 2017, 3:06 am

Re: Removable storage with Force X

Post by eng3 »

I don't see FreeDiskSpace measure anywhere in my settings files

The measures I am using are:
Mse_drive#Used
Mse_drive#Free
Mse_drive#Size

where # is the drive number
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Removable storage with Force X

Post by mak_kawa »

I mean "FreeDiskSpace measure" is the measure including a line Measure=FreeDiskSpace.

No such measures in your skin?
eng3
Posts: 13
Joined: November 11th, 2017, 3:06 am

Re: Removable storage with Force X

Post by eng3 »

No, I basically just copied the HD example from the Force X System Monitor skin

The only measures are really just:
Mse_drive#Used
Mse_drive#Free
Mse_drive#Size

Code: Select all

[Rainmeter]
Author=ForceX

Update=1000

[Metadata]
Name=ForceX
Config=
Description=System related information
Instructions=Make Changes in your Settings.inc file
Version=2

[Variables]
@include=#SKINSPATH#ForceX\FXSM_V3_Settings.inc
@include=#SKINSPATH#Enigma\Resources\Variables\UserVariables.inc

[Title_Bar]
Meter=IMAGE
X=0
Y=#Padding#
W=20
H=(70 + #HDDPadding#)
SolidColor=#HDD_SideBar_Color#
UpdateDivider=3600

[Title_Text]
Meter=String
Text="HDD"
X=4
Y=(32 + #Padding#)
Angle=-1.5707
FontColor=#font1#
FontSize=8
AntiAlias=#AA#

;============================================================================
;HDD Information & Ussage 
;============================================================================

;===========================================
;Drive 1 Display
;===========================================

[Drive1_Background]
Meter=IMAGE
X=(20 + #SidePadding#)
Y=#Padding#
W=245
H=70
SolidColor=#HDD1_BG_Color#
UpdateDivider=3600

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

[Mse_Drive1Free]
Measure=FreeDiskSpace
Drive=#Drive1#
UpdateDivider=2

[Mse_Drive1Name]
Measure=FreeDiskSpace
Drive=#Drive1#
UpdateDivider=2
Label=1
UpdateDivider=3600

[Mse_Drive1Used]
Measure=FreeDiskSpace
Drive=#Drive1#
InvertMeasure=1
UpdateDivider=2

[Mse_Drive1Size]
Measure=FreeDiskSpace
Drive=#Drive1#
Total=1
UpdateDivider=3600

;-----------------------------------------------------------
;Drive 1 Information Text
;-----------------------------------------------------------
------------------------------------ HDD 1 Information

[Rl_Drive1UsedString]
Meter=STRING
MeasureName=Mse_Drive1Used
X=(83 + #SidePadding#)
Y=4r
FontColor=#font1#
FontSize=8
FontFace=#Font1Name#
AntiAlias=#AA#
AutoScale=1
NumOfDecimals=1
Prefix="Used: "

[Rl_Drive1Free]
Meter=STRING
MeasureName=Mse_Drive1Free
X=(259 + #SidePadding#)
Y=0r
FontColor=#font1#
FontSize=8
FontFace=#Font1Name#
StringAlign=Right
AntiAlias=#AA#
AutoScale=1
NumOfDecimals=1
Prefix="Free: "

------------------------------------ HDD 1 Bar

[Drive1%]
Meter=STRING
X=(28 + #SidePadding#)
Y=13r
FontColor=#font1#
FontSize=8
FontFace=#Font1Name#
AntiAlias=#AA#
Text="Drive #drive1#"
UpdateDivider=3600

LeftMouseDownAction=#Drive1#

[Drive1Back]
Meter=IMAGE
X=(75 + #SidePadding#)
Y=4r
W=180
H=6
SolidColor=#Bar_BG_Color#

[Drive_1_Norm_Caution]
Measure=Calc
Formula=((Mse_Drive1Used/Mse_Drive1Size)*100)
UpdateDivider=2
IfBelowValue=75
IfBelowAction=!Execute [!RainmeterShowMeter Rl_Drive1Used_Green][!RainmeterHideMeter Rl_Drive1Used_Orange][!RainmeterHideMeter Rl_Drive1Used_Red]
IfAboveValue=74
IfAboveAction=!Execute [!RainmeterHideMeter Rl_Drive1Used_Green][!RainmeterShowMeter Rl_Drive1Used_Orange][!RainmeterHideMeter Rl_Drive1Used_Red]

[Drive_1_Low]
Measure=Calc
Formula=((Mse_Drive1Used/Mse_Drive1Size)*100)
UpdateDivider=2
IfAboveValue=89
IfAboveAction=!Execute [!RainmeterHideMeter Rl_Drive1Used_Green][!RainmeterHideMeter Rl_Drive1Used_Orange][!RainmeterShowMeter Rl_Drive1Used_Red]


[Rl_Drive1Used_Green]
Meter=Bar
MeasureName=Mse_Drive1Used
X=0r
Y=0r
W=150
H=6
BarColor=#Bar_Green#
BarOrientation=HORIZONTAL
hidden=1

[Rl_Drive1Used_Orange]
Meter=Bar
MeasureName=Mse_Drive1Used
X=0r
Y=0r
W=145
H=6
BarColor=#Bar_Orange#
BarOrientation=HORIZONTAL
hidden=1

[Rl_Drive1Used_Red]
Meter=Bar
MeasureName=Mse_Drive1Used
X=0r
Y=0r
W=145
H=6
BarColor=#Bar_Red#
BarOrientation=HORIZONTAL
hidden=1

------------------------------------ HDD 1 Bar End

[Drive_Name_1]
MeasureNAme=Mse_Drive1Name
Meter=STRING
X=(28 + #SidePadding#)
Y=10r
FontColor=#font1#
FontSize=8
FontFace=#Font1Name#
AntiAlias=#AA#
Text=
UpdateDivider=3600

LeftMouseDownAction=#Drive1#


[Rl_Drive1Total]
Meter=STRING
MeasureName=Mse_Drive1Size
X=(260 + #SidePadding#)
Y=0r
FontColor=#font1#
FontSize=8
FontFace=#Font1Name#
StringAlign=Right
AntiAlias=#AA#
AutoScale=1
NumOfDecimals=1
Prefix="Total: "
UpdateDivider=3600
So I basically just copied this.
To create a second bar, I just copy all of it and change drive1 to drive 2 and so on
Drive1 is c:
drive2 is d:
drive3 is e:
But it doesnt work for e:
I'm guessing because e: is a removable drive
mak_kawa
Posts: 908
Joined: December 30th, 2015, 9:47 am

Re: Removable storage with Force X

Post by mak_kawa »

I am not sure about Force X. But guessing from your post, maybe...

Code: Select all

[Mse_Drive3Free]
Measure=FreeDiskSpace
Drive=#Drive3#
IgnoreRemovable=0
UpdateDivider=2

[Mse_Drive3Name]
Measure=FreeDiskSpace
Drive=#Drive3#
IgnoreRemovable=0
UpdateDivider=2
Label=1
UpdateDivider=3600

[Mse_Drive3Used]
Measure=FreeDiskSpace
Drive=#Drive3#
IgnoreRemovable=0
InvertMeasure=1
UpdateDivider=2

[Mse_Drive3Size]
Measure=FreeDiskSpace
Drive=#Drive3#
IgnoreRemovable=0
Total=1
UpdateDivider=3600
User avatar
balala
Rainmeter Sage
Posts: 16145
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Removable storage with Force X

Post by balala »

What mak_kawa wanted to say is that you just have to add an IgnoreRemovable=0 option to the FreeDiskSpace measures (those which have the Measure=FreeDiskSpace option), related to Drive3 (e:), so basically to all measures which have set both, the Measure=FreeDiskSpace and the Drive=#Drive3# options. You have to set these options, because the FreeDiskSpace measures, by default, are set to ignore the removable drives, which, if I understood well, your e: drive is. That's why the FreeDiskSpace measures are ignoring that drive and don't return anything.
So, add the mentioned options (maybe an even better idea would be to add the option to all FreeDiskSpace measures, because if a such measure is related to a non-removable drive, the option won't cause any problem) and refresh the skin. Is it working well?
eng3
Posts: 13
Joined: November 11th, 2017, 3:06 am

Re: Removable storage with Force X

Post by eng3 »

AH
I actually did find the thing about "IgnoreRemovable=0" with FreeDiskSpace before posting this thread.
I missed the FreediskSpace measures at towards the top.
It works now. thanks