It is currently November 28th, 2021, 6:20 am

Combining two ini files together?

Help with creating, editing & fixing problems with skins
xXNetRunnerXx
Posts: 3
Joined: October 13th, 2021, 6:38 pm

Combining two ini files together?

Post by xXNetRunnerXx »

I'm working on my first Rainmeter project and since I'm very new to this I'm kinda copying parts from other skins as Practice.

I am trying to add two parts together one is HDD used/free the other is HDD temp.
I have the used/free set up and working but when I add the Temp it doesn't show up. I can take the same information and put it in a new ini and it loads fine. But I would like it all in one ini. How would I go about doing this?

ini for Used/Free

Code: Select all


[Rainmeter]
Update=1000

[Metadata]
Name=HDD1
Author=XxNetRunnerXx
Information=HDD 1 
Version=1.0

[Variables]
@include=#SKINSPATH#SysInfo\SysInfoSettings.inc

[Background]
Meter=IMAGE
imagename=#SKINSPATH#WIPMINE\@Resources\HDD1.png
X=0
y=0


;***********************************************
; HDD1 FREE USED
;***********************************************
[HDD1UsedGather]
Measure=FreeDiskSpace
Drive=#HDD1#
InvertMeasure=1
UpdateDivider=60

[HDD1FreeGather]
Measure=FreeDiskSpace
Drive=#HDD1#
UpdateDivider=60

[TitleString]
Meter=String
X=300
Y=132
W=200
H=#BoxHeight#
FontFace=#Font#
FontSize=10
FontColor=0,255,255
SolidColor=#MouseBiteColor#
StringStyle=Bold
AntiAlias=#AntiA#
Text="#HDD1# OS"
UpdateDivider=-1

[DataString]
Meter=String
MeasureName=HDD1UsedGather
MeasureName2=HDD1FreeGather
X=270
Y=200
FontFace=#Font#
FontColor=0,255,255
FontSize=12
NumOfDecimals=1
AutoScale=1
AntiAlias=#AntiA#
Text="%1B / %2B"
UpdateDivider=60

This is the Temp part I was trying to add but couldn't get it working.

Code: Select all

;***********************************************
; HDD1 TEMP
;***********************************************

[HDD1TempGather]
Measure=Plugin
Plugin=SpeedFanPlugin
SpeedFanType=Temperature
SpeedFanNumber=#HDD1Temp#
SpeedFanScale=C
UpdateDivider=30

[TitleString]
Meter=String
X=0
Y=0
W=200
H=#BoxHeight#
FontFace=#Font#
FontSize=10
FontColor=0,255,255
SolidColor=#MouseBiteColor#
StringStyle=Bold
AntiAlias=#AntiA#
Text="TEMP"
UpdateDivider=-1

[DataString]
Meter=String
MeasureName=HDD1TempGather
X=60
Y=0
FontFace=#Font#
FontColor=0,255,255
FontSize=10
AntiAlias=#AntiA#
Text="%1 C"
UpdateDivider=30
User avatar
SilverAzide
Rainmeter Sage
Posts: 1666
Joined: March 23rd, 2015, 5:26 pm

Re: Combining two ini files together?

Post by SilverAzide »

xXNetRunnerXx wrote: October 13th, 2021, 6:51 pm I'm working on my first Rainmeter project and since I'm very new to this I'm kinda copying parts from other skins as Practice.

I am trying to add two parts together one is HDD used/free the other is HDD temp.
I have the used/free set up and working but when I add the Temp it doesn't show up. I can take the same information and put it in a new ini and it loads fine. But I would like it all in one ini. How would I go about doing this?
Your second temp skin is incomplete. None of the variables you are referencing exist. To fix it, add the same section into this skin as your previous one:

Code: Select all

[Variables]
@include=#SKINSPATH#SysInfo\SysInfoSettings.inc
You actually need the whole top portion of the file (the [Rainmeter] section, etc.).
Gadgets Wiki GitHub More Gadgets...
xXNetRunnerXx
Posts: 3
Joined: October 13th, 2021, 6:38 pm

Re: Combining two ini files together?

Post by xXNetRunnerXx »

SilverAzide wrote: October 13th, 2021, 7:04 pm Your second temp skin is incomplete. None of the variables you are referencing exist. To fix it, add the same section into this skin as your previous one:

Code: Select all

[Variables]
@include=#SKINSPATH#SysInfo\SysInfoSettings.inc
You actually need the whole top portion of the file (the [Rainmeter] section, etc.).
I did add the necessary information in a second skin when I tested it as a INI by it's self to see if it was working and it was. but I am trying to take the second Skin information and place it with the first one as one complete skin instead of having to have two skins.

I tried simply doing this

Code: Select all

[Rainmeter]
Update=1000

[Metadata]
Name=HDD1
Author=XxNetRunnerXx
Information=HDD 1 
Version=1.0

[Variables]
@include=#SKINSPATH#SysInfo\SysInfoSettings.inc

[Background]
Meter=IMAGE
imagename=#SKINSPATH#WIPMINE\@Resources\HDD1.png
X=0
y=0


;***********************************************
; HDD1 FREE USED
;***********************************************
[HDD1UsedGather]
Measure=FreeDiskSpace
Drive=#HDD1#
InvertMeasure=1
UpdateDivider=60

[HDD1FreeGather]
Measure=FreeDiskSpace
Drive=#HDD1#
UpdateDivider=60

[TitleString]
Meter=String
X=300
Y=132
W=200
H=#BoxHeight#
FontFace=#Font#
FontSize=10
FontColor=0,255,255
SolidColor=#MouseBiteColor#
StringStyle=Bold
AntiAlias=#AntiA#
Text="#HDD1# OS"
UpdateDivider=-1

[DataString]
Meter=String
MeasureName=HDD1UsedGather
MeasureName2=HDD1FreeGather
X=260
Y=188
FontFace=#Font#
FontColor=0,255,255
FontSize=11
NumOfDecimals=1
AutoScale=1
AntiAlias=#AntiA#
Text="%1B / %2B"
UpdateDivider=60

;***********************************************
; HDD1 TEMP
;***********************************************

[HDD1TempGather]
Measure=Plugin
Plugin=SpeedFanPlugin
SpeedFanType=Temperature
SpeedFanNumber=#HDD1Temp#
SpeedFanScale=C
UpdateDivider=30

[TitleString]
Meter=String
X=0
Y=0
W=200
H=#BoxHeight#
FontFace=#Font#
FontSize=10
FontColor=0,255,255
SolidColor=#MouseBiteColor#
StringStyle=Bold
AntiAlias=#AntiA#
Text="TEMP"
UpdateDivider=-1

[DataString]
Meter=String
MeasureName=HDD1TempGather
X=60
Y=0
FontFace=#Font#
FontColor=0,255,255
FontSize=10
AntiAlias=#AntiA#
Text="%1 C"
UpdateDivider=30
But the Temp doesn't show up it only keeps the used/free information.
User avatar
SilverAzide
Rainmeter Sage
Posts: 1666
Joined: March 23rd, 2015, 5:26 pm

Re: Combining two ini files together?

Post by SilverAzide »

xXNetRunnerXx wrote: October 13th, 2021, 7:21 pm I did add the necessary information in a second skin when I tested it as a INI by it's self to see if it was working and it was. but I am trying to take the second Skin information and place it with the first one as one complete skin instead of having to have two skins.
It's because you have two meters called TitleString and two called DataString. Section names must be unique; any duplicates are ignored.
Gadgets Wiki GitHub More Gadgets...
xXNetRunnerXx
Posts: 3
Joined: October 13th, 2021, 6:38 pm

Re: Combining two ini files together?

Post by xXNetRunnerXx »

SilverAzide wrote: October 13th, 2021, 7:28 pm It's because you have two meters called TitleString and two called DataString. Section names must be unique; any duplicates are ignored.
Ah that makes sense! I feel dumb not thinking about that... Thank you for your help!