It is currently April 27th, 2024, 8:13 am

How to add 3 HDDs?

Get help with creating, editing & fixing problems with skins
User avatar
Sylver Cheetah 53
Posts: 4
Joined: February 3rd, 2024, 8:27 am
Location: Romania

How to add 3 HDDs?

Post by Sylver Cheetah 53 »

Hi!
I am new here so please be nice. :welcome:
I want to add 3 hard disks to Rainmeter. For now, it only shows my SSD.
Maybe someone could help me.
Thank you.

regards,
DANIEL
Free your mind!
User avatar
balala
Rainmeter Sage
Posts: 16175
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to add 3 HDDs?

Post by balala »

Sylver Cheetah 53 wrote: February 3rd, 2024, 8:35 am I want to add 3 hard disks to Rainmeter. For now, it only shows my SSD.
Which skin are you talking about? Is your question related to the Disk skin of the illustro package? If it is, this skin of illustro comes in two variants: one for one drive and the other for two drives. Do you want to add one more? Or, if not, please let us know to which skin do you want to add the new drive? A name AND a link where we can get the skin would be nice.
User avatar
Sylver Cheetah 53
Posts: 4
Joined: February 3rd, 2024, 8:27 am
Location: Romania

Re: How to add 3 HDDs?

Post by Sylver Cheetah 53 »

Hi and thanks for the reply!
Yes, I have Illustro.
I want it to show me 1 SSD and 3 HDD. So 4 disks.
kind regards,
DANIEL
Free your mind!
User avatar
SilverAzide
Rainmeter Sage
Posts: 2611
Joined: March 23rd, 2015, 5:26 pm

Re: How to add 3 HDDs?

Post by SilverAzide »

Sylver Cheetah 53 wrote: February 3rd, 2024, 1:46 pm Hi and thanks for the reply!
Yes, I have Illustro.
I want it to show me 1 SSD and 3 HDD. So 4 disks.
kind regards,
DANIEL
The instructions for adding more disks is included at the top of the Illustro "2 Disks" variant skin. Select the skin, and when it appears, right-click it and select "Edit skin", then follow the instructions.
Gadgets Wiki GitHub More Gadgets...
User avatar
Sylver Cheetah 53
Posts: 4
Joined: February 3rd, 2024, 8:27 am
Location: Romania

Re: How to add 3 HDDs?

Post by Sylver Cheetah 53 »

It's too complicated for me. I am not a programmer.
You do it. Please!

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

; HOWTO: Adding more disks
; ----------------------------------
; Adding more disks is a pretty straightforward process. Follow the following steps to turn
; this 2 disks skin into a 3 disks skin. You can then extend it even further as you wish.
;
; 1) Create a new variable called disk3=X: directly below disk2=D: in the [Variables] section
; 2) Create a copy of the [measureTotalDisk2] and [measureUsedDisk2] sections
; 3) Rename the copied sections to [measureTotalDisk3] and [measureUsedDisk3], respectively.
;    Also change Drive=#disk2# to Drive=#disk3#
; 4) Create a copy of the [meterLabelDisk2], [meterValueDisk2], and [meterBarDisk2].
;    Rename all Disk2's in the copied sections to Disk3.
; 5) Now we need to change the Y= values to adjust height. Change Y= under [meterLabelDisk3]
;    to Y=80 (calculated by adding 20 to the Y= value of previous meterLabel).
;    Then change Y= under [meterBarDisk3] to Y=92 (calculated by adding 20 to the Y= value of previous meterBar).
; 6) Save the file as '3 Disks.ini'. Now right-click on the Rainmeter tray icon and select
;    'Refresh All'. Now go activate the '3 Disks.ini' skin and enjoy! :)

[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14

[Metadata]
; Contains basic information of the skin.
Name=Disk
Author=poiru
Information=Displays disk usage.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0

[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
disk1=C:
disk2=D:

; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------

[measureTotalDisk1]
; This measure returns the total disk space
Measure=FreeDiskSpace
Drive=#disk1#
Total=1
UpdateDivider=120

[measureUsedDisk1]
; Returns inverted value of free disk space (i.e. used disk space)
Measure=FreeDiskSpace
Drive=#disk1#
InvertMeasure=1
UpdateDivider=120

[measureTotalDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
Total=1
UpdateDivider=120

[measureUsedDisk2]
Measure=FreeDiskSpace
Drive=#disk2#
InvertMeasure=1
UpdateDivider=120

; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------

[styleTitle]
StringAlign=Center
StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1

[styleLeftText]
StringAlign=Left
; Meters using styleLeftText will be left-aligned.
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1

[styleBar]
BarColor=#colorBar#
BarOrientation=HORIZONTAL
SolidColor=255,255,255,15

; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------

[meterTitle]
Meter=String
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
X=100
Y=12
W=190
H=18
Text=Disks
; Even though the text is set to Disks, Rainmeter will display
; it as DISKS, because styleTitle contains StringCase=Upper.

[meterLabelDisk1]
Meter=String
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text=#disk1#\

[meterValueDisk1]
Meter=String
MeterStyle=styleRightText
MeasureName=measureUsedDisk1
MeasureName2=measureTotalDisk1
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text=%1B/%2B used
; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
; %2 stands for the value of MeasureName2.
NumOfDecimals=1
AutoScale=1
; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
; automatically scale the value into a more readable figure.
LeftMouseUpAction=["#disk1#\"]
; Open #disk1# on click

[meterBarDisk1]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureUsedDisk1
X=10
Y=52
W=190
H=1

[meterLabelDisk2]
Meter=String
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text=#disk2#\
LeftMouseUpAction=["#disk2#\"]

[meterValueDisk2]
Meter=String
MeterStyle=styleRightText
MeasureName=measureUsedDisk2
MeasureName2=measureTotalDisk2
X=200
Y=0r
W=190
H=14
Text=%1B/%2B used
NumOfDecimals=1
AutoScale=1

[meterBarDisk2]
Meter=Bar
MeterStyle=styleBar
MeasureName=measureUsedDisk2
X=10
Y=72
W=190
H=1
Free your mind!
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: How to add 3 HDDs?

Post by eclectic-tech »

Sylver Cheetah 53 wrote: February 3rd, 2024, 11:46 pm It's too complicated for me. I am not a programmer.
You do it. Please!

Code: Select all

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------

; HOWTO: Adding more disks
; ----------------------------------
; Adding more disks is a pretty straightforward process. Follow the following steps to turn
; this 2 disks skin into a 3 disks skin. You can then extend it even further as you wish.
;
; 1) Create a new variable called disk3=X: directly below disk2=D: in the [Variables] section
; 2) Create a copy of the [measureTotalDisk2] and [measureUsedDisk2] sections
; 3) Rename the copied sections to [measureTotalDisk3] and [measureUsedDisk3], respectively.
;    Also change Drive=#disk2# to Drive=#disk3#
; 4) Create a copy of the [meterLabelDisk2], [meterValueDisk2], and [meterBarDisk2].
;    Rename all Disk2's in the copied sections to Disk3.
; 5) Now we need to change the Y= values to adjust height. Change Y= under [meterLabelDisk3]
;    to Y=80 (calculated by adding 20 to the Y= value of previous meterLabel).
;    Then change Y= under [meterBarDisk3] to Y=92 (calculated by adding 20 to the Y= value of previous meterBar).
; 6) Save the file as '3 Disks.ini'. Now right-click on the Rainmeter tray icon and select
;    'Refresh All'. Now go activate the '3 Disks.ini' skin and enjoy! :)

... clip ...
Someone here could do that for you, but without an effort on your part to at least try to follow some very detailed instructions to achieve your goal, we would be defeating the purpose and spirit of these forums.

We encourage you to try, and if you fail, come back and post the code changes and someone here will definitely help you get it working.

Requests for skins is truly discouraged because we are all volunteering our time to help other learn the joy and pride of making something they envision but need help achieving.

You CAN do it! :rosegift:
User avatar
Sylver Cheetah 53
Posts: 4
Joined: February 3rd, 2024, 8:27 am
Location: Romania

Re: How to add 3 HDDs?

Post by Sylver Cheetah 53 »

Is there another skin, other than Illustro, that has this function I am requesting, by default?
Free your mind!
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to add 3 HDDs?

Post by Yincognito »

Sylver Cheetah 53 wrote: February 8th, 2024, 4:27 pm Is there another skin, other than Illustro, that has this function I am requesting, by default?
Yes, but you'll have to find the one that you like yourself. Try at either of these links:
https://forum.rainmeter.net/viewforum.php?f=132
https://www.deviantart.com/rainmeter/gallery/23941137/skins
If that's not too complicated for you, of course.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
User avatar
balala
Rainmeter Sage
Posts: 16175
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to add 3 HDDs?

Post by balala »

Sylver Cheetah 53 wrote: February 8th, 2024, 4:27 pm Is there another skin, other than Illustro, that has this function I am requesting, by default?
No, most probably there is not. But you can alter your skin, to get it showing three (or any number of) drives.
Follow the description:
  • Activate the Skins\illustro\Disk\2 Disks.ini skin (assuming it is not already activated).
  • Right click it and click Edit skin. The 2 Disks.ini file opens in the default text editor (whatever is it).
  • Identify the [Variables] section. There you have a disk1=C: and a disk2=D: variable. Add a third one: disk3=E:.
  • Copy the [measureTotalDisk2] and [measureUsedDisk2] measures (their whole code). Paste them once again after the existing measures. This way you'll have two [measureTotalDisk2] and two [measureUsedDisk2] measures. Not a problem, we gonna alter the second instances of them immediately.
  • Rename the second occurrence of these two measures to [measureTotalDisk3] and [measureUsedDisk3], respectively.
  • Replace the Drive=#disk2# option of the above renamed [measureTotalDisk3] and [measureUsedDisk3] measures to Drive=#disk3#.
  • Copy the [meterLabelDisk2], [meterValueDisk2], and [meterBarDisk2] meters. Paste them right after [meterBarDisk2]. Once again you'll have two set of meters with the same names.
  • Rename the second occurrence of these meters to [meterLabelDisk3], [meterValueDisk3], and [meterBarDisk3].
  • Wherever on these newly copied meters you see Disk2, replace it with Disk3. Take care to replace ALL occurrences of Disk2 by Disk3. Don't forget any.
  • Replace the Y options of these meters as it follows:
    • In the [meterLabelDisk3] meter use Y=80.
      In [meterBarDisk3] use Y=92.
    • Don't alter the Y=0r option of the [meterValueDisk3]. This has to be kept as it is.
  • Save this file as 3 Disks.ini. Take care to have the file with .ini extension, not with .txt (don't know what text editor are you using, but the old Notepad might tend to save the file with .txt extension).
  • Right click the Rainmeter icon in the Notification Area and click Refresh all.
  • Finally activate the newly created Skins\illustro\Disk\3 Disks.ini skin.
This is all you have to do. Believe me, can be done.

Crede-mă, se poate face. Spune-ne dacă nu ai reușit, și unde ai eșuat dacă ai eșuat (foarte improbabil).
User avatar
Yincognito
Rainmeter Sage
Posts: 7175
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to add 3 HDDs?

Post by Yincognito »

balala wrote: February 8th, 2024, 7:14 pm No, most probably there is not.
Oh come on - there are a ton of skins out there displaying data for 4 or more drives, one only has to find what he wants. I get your idea of trying to convince the OP to put a minor effort to add it to Illustro and I agree with it, but if even with the instructions written in front of him he avoided that earlier, it's doubtful that yours would convince him otherwise... :confused:
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth