It is currently May 1st, 2024, 11:46 pm

Need Help Editing Skin to Properly Show both HDDs Capacity

Get help with creating, editing & fixing problems with skins
Zack_Myers234
Posts: 3
Joined: October 29th, 2012, 11:58 pm

Need Help Editing Skin to Properly Show both HDDs Capacity

Post by Zack_Myers234 »

Hey all! I got a Rainmeter skin and it has the capability to display the capacity of multiple HDD. I have my standard C:\ drive (internal hard drive) and my E:\ drive (external hard drive). But there seems to be a problem, which I encountered with my previous Rainmeter skin when I had to unplug all of my USB devices.

It's properly displaying my C:\, great, that's what it's supposed to do. But it's not properly displaying my E:\ drive. It says that my external hard drive is completely full when know it has more than 700GB of free space. I'm sure that I edited the file properly, but in case I didn't, here's the code for it.

Code: Select all

[Rainmeter]
Author=vinzi88@gmail.com
Update=1000

;Metadata added by RainBrowser
;http://rainmeter.net/RainCMS/?q=Rainmeter101_AnatomyOfASkin

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

;End of added Metadata

[Variables]

WeatherCode=EUR|IT|IT015|PALERMO
Drive1=C:\
Drive2=D:\
C1="255,255,255"
C2="255,255,255,40"
F1="Segoe ui"
S1="7"




;*****************************************      Background      *******************************************

[Sidebar_Left]
Meter=IMAGE
X=1
Y=44        
ImageName=bg.png

;*****************************************       START       *******************************************


[Button]
Meter=Button
X=9
Y=140
ButtonImage=win.png
ButtonCommand=!Execute ["#CURRENTPATH#StartMenu\OpenStartMenu.exe"]


;*****************************************       STATS       *******************************************

[Ring]
Measure=Calc
Formula=360

[GRing]
Measure=Calc
Formula=360

;==========  HD C:  ============

[MeasureTotalC]
Measure=FreeDiskSpace
Drive=C:
Total=1

[HD1]
Measure=FreeDiskSpace
Drive=#Drive1#
Total=0
Label=0
InvertMeasure=1

[HD1_BAR]
MeasureName=HD1
Meter=ROUNDLINE
X=-50
Y=135
W=150
H=45
LineLength=50
LineStart=47
StartAngle=-6.28159265
RotationAngle=-1.95 ;.14159265
LineColor=#C1#
Solid=1
AntiAlias=1

[HD1_T]
Meter=string
Text=C:
x=119r
y=30r
FontColor=#C1#
FontFace=#F1#
FontSize=#S1#
AntiAlias=1



;==========  HD D:  ============

[MeasureTotalE]
Measure=FreeDiskSpace
Drive=C:
Total=1

[HD2]
Measure=FreeDiskSpace
Drive=#Drive2#
Total=0
Label=0
InvertMeasure=1

[HD2_BAR]
MeasureName=HD2
Meter=ROUNDLINE
X=-51
Y=135
W=150
H=45
LineLength=68
LineStart=65
StartAngle=-6.28159265
RotationAngle=-1.95 ;.14159265
LineColor=#C1#
Solid=1
AntiAlias=1

[HD2_T]
Meter=string
Text=E:
x=137r
y=30r
FontColor=#C1#
FontFace=#F1#
FontSize=#S1#
AntiAlias=1


;===========  RAM  ============

[RAM]
Measure=PhysicalMemory
InvertMeasure=0

;---------------------------

[RAM_BAR]
MeasureName=RAM
Meter=ROUNDLINE
X=-49
Y=135
W=150
H=45
LineLength=107
LineStart=110
StartAngle=-6.28159265
RotationAngle=-1.95 ;.14159265
LineColor=#C1#
Solid=1
AntiAlias=1

[RAM_T]
Meter=string
Text=RAM
x=172r
y=30r
FontColor=#C1#
FontFace=#F1#
FontSize=#S1#
AntiAlias=1

;===========  CPU ============

[CPU]
Measure=CPU

;---------------------------


[CPU_BAR]
MeasureName=CPU
Meter=ROUNDLINE
X=-50
Y=135
W=150
H=45
LineLength=87
LineStart=84
StartAngle=-6.28159265
RotationAngle=-1.95 ;.14159265
LineColor=#C1#
Solid=1
AntiAlias=1

[CPU_T]
Meter=string
Text=CPU
x=150r
y=30r
FontColor=#C1#
FontFace=#F1#
FontSize=#S1#
AntiAlias=1


; -------------------------

;=====================   Weather   =======================


[MeasureWeatherRSS]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://rainmeter.accu-weather.com/widget/rainmeter/weather-data.asp?Location=#WeatherCode#&metric=1
RegExp="(?siU)<temperature>(.*)</temperature>.*"
StringIndex=1
;Debug=1

;---------------------------

[MeasureWeatherTemp]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureWeatherRSS]
StringIndex=1

;---------------------------


[MeterTemp]
MeasureName=MeasureWeatherTemp
Meter=STRING
X=157
Y=149
FontColor=#C1#
StringStyle=NORMAL
FontSize=10
StringAlign=LEFT
FontFace=#F1#
Antialias=1
Postfix="°"
Please reply as soon as anyone possibly can.
Last edited by smurfier on October 30th, 2012, 12:13 am, edited 1 time in total.
Reason: Changed to use code tags.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Need Help Editing Skin to Properly Show both HDDs Capaci

Post by jsmorley »

Make sure you add IgnoreRemovable=0 to any measures that are reading a USB or other external HDD.

http://docs.rainmeter.net/manual/measures/freediskspace#IgnoreRemovable
Zack_Myers234
Posts: 3
Joined: October 29th, 2012, 11:58 pm

Re: Need Help Editing Skin to Properly Show both HDDs Capaci

Post by Zack_Myers234 »

Where in the code do I add IgnoreRemovable=0?
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Need Help Editing Skin to Properly Show both HDDs Capaci

Post by jsmorley »

There are a couple of things I see:

In the [Variables] section, there is defined:

Drive1=C:\
Drive2=D:\

You are going to want to make that:

Drive1=C:\
Drive2=E:\

Later the measures involved with the "second" hard drive are:

Code: Select all

;==========  HD D:  ============

[MeasureTotalE]
Measure=FreeDiskSpace
Drive=C:
Total=1

[HD2]
Measure=FreeDiskSpace
Drive=#Drive2#
Total=0
Label=0
InvertMeasure=1

[HD2_BAR]
MeasureName=HD2
Meter=ROUNDLINE
X=-51
Y=135
W=150
H=45
LineLength=68
LineStart=65
StartAngle=-6.28159265
RotationAngle=-1.95 ;.14159265
LineColor=#C1#
Solid=1
AntiAlias=1

[HD2_T]
Meter=string
Text=E:
x=137r
y=30r
FontColor=#C1#
FontFace=#F1#
FontSize=#S1#
AntiAlias=1
First off, you might want to change this measure in that section:

[MeasureTotalE]
Measure=FreeDiskSpace
Drive=C:
Total=1

It appears you want the total of "E:" but it is reading "C:" I would change it to Drive=#Drive2# just like in the measure right below it.

Then you need to add IgnoreRemovable=0 to:

[MeasureTotalE]
Measure=FreeDiskSpace
Drive=#Drive2#
Total=1
IgnoreRemovable=0

[HD2]
Measure=FreeDiskSpace
Drive=#Drive2#
InvertMeasure=1
IgnoreRemovable=0
Zack_Myers234
Posts: 3
Joined: October 29th, 2012, 11:58 pm

Re: Need Help Editing Skin to Properly Show both HDDs Capaci

Post by Zack_Myers234 »

That did it! Thank you very much!
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Need Help Editing Skin to Properly Show both HDDs Capaci

Post by jsmorley »

Glad to help.