It is currently May 7th, 2024, 5:42 am

Incorrect Variables

Get help with creating, editing & fixing problems with skins
Frostschaden
Posts: 90
Joined: January 26th, 2013, 9:11 pm

Incorrect Variables

Post by Frostschaden »

I've just started working on my first skin, very basic, but I'm having trouble with the skin getting the options from the variables.inc. I'm not very good with this stuff and its fairly hard for me to understand, I've tried Youtube and read through the manual, but no luck.

Here is the part for the CPU readings, I want to be able to set the option for the fan number through the variables, rather than each individual file.

Code: Select all

[MeasureFanSpeed]
Measure=Plugin
Plugin=SpeedFanPlugin.dll
SpeedFanType=Fan
SpeedFanNumber=#Number# <------I want to be able to set this through Variables.inc
MaxValue=100
MinValue=0
I also want to be able to determine the Temperature in Celsius or Fahrenheit, so for my HDD portion how would I get SpeedFanScale=C or F to point that option in the variables as well as the hard drive number, seeing there are multiple drives in my system.

I know this is incorrect, but here is the Variables.inc

Code: Select all

--------------------
::Temperature Unit::
--------------------
SpeedFanScale=C

-----------------------
::Hard Drive Settings::
-----------------------
Drive1=C
Drive2=E
Drive3=F

SpeedFanNumber=1

----------------
::CPU Settings::
----------------
SpeedFanNumber=3

Hope I've made sense, any help would be appreciated.
User avatar
Jlynn19XX
Posts: 8
Joined: January 26th, 2013, 7:59 pm
Location: Help Me Help Me! I don't know where i am!

Re: Incorrect Variables

Post by Jlynn19XX »

not sure if you have included this in your skin because i dont think your sharing the whole code, but the problem could be because your not including your variables so the skin doesnt know where to read the variables from. like i wrote below. this also shows that your variables.inc is located in your @Resources folder. You can place it elsewhere but this is where i always put mine.

[Variables]
@Include=#ROOTCONFIGPATH#@Resources\Variables.inc
User avatar
Jlynn19XX
Posts: 8
Joined: January 26th, 2013, 7:59 pm
Location: Help Me Help Me! I don't know where i am!

Re: Incorrect Variables

Post by Jlynn19XX »

Jlynn19XX wrote:not sure if you have included this in your skin because i dont think your sharing the whole code, but the problem could be because your not including your variables so the skin doesnt know where to read the variables from. like i wrote below. this also shows that your variables.inc is located in your @Resources folder. You can place it elsewhere but this is where i always put mine.

[Variables]
@Include=#ROOTCONFIGPATH#@Resources\Variables.inc
also in your variables you didn't have anything specified as to what #number# represented.

i only used speedfan for a short period of time because i didnt really like the program but isnt the C/F only changeable through the program itself. I dont think rainmeter really has the control to change speedfans settings but i could be wrong on that one.
Frostschaden
Posts: 90
Joined: January 26th, 2013, 9:11 pm

Re: Incorrect Variables

Post by Frostschaden »

Here is the whole code, I did point to the variables as you suggested. As far as Speed Fan I assumed it was program controlled, but wasn't sure.

These are the HDD Stats

Code: Select all

[Rainmeter]
Update=2000

[Metadata]
Name=Frosted Intelligence
Author=Frostschaden
Information=System Stats
License=
Version=1.0

;////////////////////////////////////////
;  Variables
;////////////////////////////////////////

;[Variables]
@include=#SKINSPATH#Frosted Intelligence\Variables.inc

;////////////////////////////////////////
;  Measures
;////////////////////////////////////////

[MeasureMyTemp3]
Measure=Plugin
Plugin=SpeedFanPlugin.dll
SpeedFanType=Temperature
SpeedFanNumber=3
SpeedFanScale=C
MinValue=0
MaxValue=100

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

[MeasureHDD1]
Measure=FreeDiskSpace
Drive="#Drive1#"
InvertMeasure=1

[MeasureHDD1L]
Measure=FreeDiskSpace
Drive="#Drive1#"
Label=1

;////////////////////////////////////////
;  HDD Temp
;////////////////////////////////////////

[Dot]
Meter=Image
ImageName=Dot
X=-15
Y=15

[Bar Background]
Meter=Image
X=-15
Y=30
H=1
W=215
SolidColor=255,255,255,40

[MeterBar]
Meter=BAR
MeasureName=MeasureMyTemp3
X=-15
Y=30
H=1
W=215
BarColor=255,255,255,240
BarOrientation=Horizontal

[HDDTempLabel]
Meter=STRING
Text="HDD Temp"
X=13
Y=17
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
StringAlign=left

[MeterHDDTemp]
MeasureName=MeasureMyTemp3
Meter=STRING
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
StringAlign=left
MinValue=0
MaxValue=100
Postfix="°C"
X=175
Y=17
Percentual=1

;////////////////////////////////////////
;  Histogram
;////////////////////////////////////////

[Bar Background1]
Meter=Image
X=-15
Y=61
H=1
W=215
SolidColor=255,255,255,60

[DriveAccessGraph]
Meter=Histogram
MeasureName=DriveAccess
X=-15
Y=31
H=31
W=215
PrimaryColor=255,255,255,255
AntiAlias=0
AutoScale=1

;////////////////////////////////////////
;  HDD Usage Bar
;////////////////////////////////////////

[Bar Background2]
Meter=Image
X=-15
Y=92
H=1
W=215
SolidColor=255,255,255,40

[MeterBar]
Meter=BAR
MeasureName=MeasureHDD1
X=-15
Y=92
H=1
W=215
BarColor=255,255,255,240
BarOrientation=Horizontal

[HDD1Label]
MeasureName=MeasureHDD1L
Meter=STRING
Text="HDD Usage"
X=2
Y=79
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
StringAlign=left

[MeterHDD1]
MeasureName=MeasureHDD1
Meter=STRING
FontFace=#FontFace#
FontColor=#FontColor#
FontSize=#FontSize#
AntiAlias=1
StringAlign=left
MinValue=0
MaxValue=100
Postfix="%"
X=175
Y=79
Percentual=1
I was able to figure out how to set the drive number through the variables using Drive="#Drive1#"

Is there any way to use perfmon.dll to measure the HDD stats including temp and histogram activity as well as the CPU, the CPU retrieves stats from CoreTemp?

Thx for your reply