It is currently October 19th, 2020, 4:04 pm

Help on editing older script

Help with creating, editing & fixing problems with skins
AdrianJC
Posts: 25
Joined: April 14th, 2020, 9:48 am

Re: Help on editing older script

Post by AdrianJC »

Hi Balala,

Finally found some time to mess around again, I combined two pieces from the sysinfo script (see below)
For some reason the core 2 meter isn't running like core 1 what did I do wrong here.....

Code: Select all

----
;***********************************************
; SysInfo Core1-Hist-Data-CTemp File
;***********************************************

[Rainmeter]
Update=1000

[Metadata]
Name=SysInfo
Author=Eric Miller
Information=Core 1 Activity Histogram, Percentage & Temp|Need SpeedFan running for temps
Version=1.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0

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

[Core1Gather]
Measure=CPU
Processor=1

[Core1TempGather]
Measure=Plugin
Plugin=SpeedFanPlugin
SpeedFanType=Temperature
SpeedFanNumber=#Core1Temp#
SpeedFanScale=C
UpdateDivider=30

[Core1Line]
Meter=Line
MeasureName=Core1Gather
X=0
Y=0
H=30
W=200
LineCount=1
LineWidth=#LineWidth#
LineColor=#LineColor#
GraphStart=#Direction#
AntiAlias=#AntiA#
UpdateDivider=-1

[Core1Hist]
Meter=Histogram
MeasureName=Core1Gather
X=0
Y=0
H=30
W=200
AutoScale=#CPUScale#
GraphStart=#Direction#
PrimaryColor=#HistogramColor#
AntiAlias=#AntiA#

[Core1Title]
Meter=String
X=0
Y=32r
StringStyle=Bold
FontFace=#Font#
FontSize=#FontHeight#
FontColor=#TitleColor#
SolidColor=#MouseBiteColor#
AntiAlias=#AntiA#
Text="CORE 1"
UpdateDivider=-1

[Core1Percent]
Meter=String
MeasureName=Core1Gather
X=50r
Y=0r
FontFace=#Font#
FontSize=#FontHeight#
FontColor=#DataColor#
AntiAlias=#AntiA#
Text="%1%"

[Core1TempTitle]
Meter=String
X=65r
Y=0r
StringStyle=Bold
FontFace=#Font#
FontSize=#FontHeight#
FontColor=#TitleColor#
AntiAlias=#AntiA#
Text="TEMP"
UpdateDivider=-1

[Core1TempData]
Meter=String
MeasureName=Core1TempGather
X=35r
Y=0r
FontFace=#Font#
FontSize=#FontHeight#
FontColor=#DataColor#
AntiAlias=#AntiA#
Text="%1°C"
UpdateDivider=30

---

[Core2Gather]
Measure=CPU
Processor=1

[Core2TempGather]
Measure=Plugin
Plugin=SpeedFanPlugin
SpeedFanType=Temperature
SpeedFanNumber=#Core2Temp#
SpeedFanScale=C
UpdateDivider=30

[Core2Line]
Meter=Line
MeasureName=Core2Gather
X=0
Y=65
H=30
W=200
LineCount=1
LineWidth=#LineWidth#
LineColor=#LineColor#
GraphStart=#Direction#
AntiAlias=#AntiA#
UpdateDivider=-1

[Core2Hist]
Meter=Histogram
MeasureName=Core2Gather
X=0
Y=0
H=30
W=200
AutoScale=#CPUScale#
GraphStart=#Direction#
PrimaryColor=#HistogramColor#
AntiAlias=#AntiA#

[Core2Title]
Meter=String
X=0
Y=100r
StringStyle=Bold
FontFace=#Font#
FontSize=#FontHeight#
FontColor=#TitleColor#
SolidColor=#MouseBiteColor#
AntiAlias=#AntiA#
Text="CORE 2"
UpdateDivider=-1

[Core2Percent]
Meter=String
MeasureName=Core2Gather
X=50r
Y=0r
FontFace=#Font#
FontSize=#FontHeight#
FontColor=#DataColor#
AntiAlias=#AntiA#
Text="%1%"

[Core2TempTitle]
Meter=String
X=65r
Y=0r
StringStyle=Bold
FontFace=#Font#
FontSize=#FontHeight#
FontColor=#TitleColor#
AntiAlias=#AntiA#
Text="TEMP"
UpdateDivider=-1

[Core2TempData]
Meter=String
MeasureName=Core2TempGather
X=35r
Y=0r
FontFace=#Font#
FontSize=#FontHeight#
FontColor=#DataColor#
AntiAlias=#AntiA#
Text="%1°C"
UpdateDivider=30

----
balala wrote: September 5th, 2020, 3:39 pm Perfectly agree. But if you need it, it probably does worth to dig into it.
Last edited by balala on September 8th, 2020, 11:26 am, edited 1 time in total.
Reason: Please use <code> tags whenever are posting code snippets. It's the </> button.
User avatar
balala
Rainmeter Sage
Posts: 11572
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help on editing older script

Post by balala »

AdrianJC wrote: September 8th, 2020, 11:21 am For some reason the core 2 meter isn't running like core 1 what did I do wrong here.....
The [Core1Gather] and [Core2Gather] measures have both the same Processor=1 option, so both are returning the same information. I suppose on the [Core2Gather] measure, this option should be Processor=2.
AdrianJC
Posts: 25
Joined: April 14th, 2020, 9:48 am

Re: Help on editing older script

Post by AdrianJC »

Whahahahaha I totally overlooked that one :? thanks for you fast response.

balala wrote: September 8th, 2020, 11:30 am The [Core1Gather] and [Core2Gather] measures have both the same Processor=1 option, so both are returning the same information. I suppose on the [Core2Gather] measure, this option should be Processor=2.
AdrianJC
Posts: 25
Joined: April 14th, 2020, 9:48 am

Re: Help on editing older script

Post by AdrianJC »

Do you know what values rainmeter uses for reading the core(s), because the script starts with 1 to 8 but when I take a look
at SpeedFan it reads/uses core 0 to 7.

balala wrote: September 8th, 2020, 11:30 am The [Core1Gather] and [Core2Gather] measures have both the same Processor=1 option, so both are returning the same information. I suppose on the [Core2Gather] measure, this option should be Processor=2.
User avatar
jsmorley
Developer
Posts: 21421
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help on editing older script

Post by jsmorley »

AdrianJC wrote: September 8th, 2020, 1:35 pm Do you know what values rainmeter uses for reading the core(s), because the script starts with 1 to 8 but when I take a look
at SpeedFan it reads/uses core 0 to 7.

https://docs.rainmeter.net/manual/measures/cpu/#Processor
AdrianJC
Posts: 25
Joined: April 14th, 2020, 9:48 am

Re: Help on editing older script

Post by AdrianJC »

AdrianJC
Posts: 25
Joined: April 14th, 2020, 9:48 am

Re: Help on editing older script

Post by AdrianJC »

BTW what would be better to use: SpeedFan or HWInfo?
User avatar
jsmorley
Developer
Posts: 21421
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Help on editing older script

Post by jsmorley »

AdrianJC wrote: September 8th, 2020, 1:43 pm BTW what would be better to use: SpeedFan or HWInfo?
I don't have a strong opinion on that. My only real axe to grind with SpeedFan is that it doesn't measure anything about the GPU, and that is of some interest to me. So I personally use HWInfo, although I readily confess that setting up the variables for HWInfo is quite a bit more complicated than SpeedFan. That isn't a particularly big deal for a skin you are using yourself, as you only have to do it once. If you are distributing a skin, HWInfo adds a level of complexity for your end-users that is hard to avoid.
User avatar
CodeCode
Posts: 97
Joined: September 7th, 2020, 2:24 pm

Re: Help on editing older script

Post by CodeCode »

jsmorley wrote: September 8th, 2020, 1:48 pm I don't have a strong opinion on that. My only real axe to grind with SpeedFan is that it doesn't measure anything about the GPU, and that is of some interest to me. So I personally use HWInfo, although I readily confess that setting up the variables for HWInfo is quite a bit more complicated than SpeedFan. That isn't a particularly big deal for a skin you are using yourself, as you only have to do it once. If you are distributing a skin, HWInfo adds a level of complexity for your end-users that is hard to avoid.
I dont mean to throw a tire on the campfire, but I use a combination of MSIAfterburner and CoreTemp - these are relatively easy to use and customise in rainmeter, and in the end the dual backend programs really dont impact on anything like performance or disk space.

So basically simplicity + complexity = freedom of choice, in this case.

Also, SpeedFan does not have an option to start with Windows so after every boot you have to manually restart it.
Can't fix it if it ain't broke - unless it is in code.
User avatar
balala
Rainmeter Sage
Posts: 11572
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Help on editing older script

Post by balala »

AdrianJC wrote: September 8th, 2020, 1:35 pm Do you know what values rainmeter uses for reading the core(s), because the script starts with 1 to 8 but when I take a look
at SpeedFan it reads/uses core 0 to 7.
I don't know about SpeedFan, I'm not using it, but on CPU measures, as you can see on the link posted above by jsmorley, CPU=0 is used for to get the average of all CPU cores, while CPU=1 and so on, to get specific core value.