It is currently April 19th, 2024, 5:41 am

roundline gradient

Get help with installing and using Rainmeter.
Luckypants
Posts: 3
Joined: September 2nd, 2021, 2:36 pm

roundline gradient

Post by Luckypants »

Hello,

i'm new here and have a problem, i cant get me second gradient meter to work.


Code: Select all

[Rainmeter]
Update=1000

[Variables]

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

[HWiNFOGPUFan]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=0xe0002000
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x3000000
HWiNFOType=CurrentValue
MaxValue=1456
MinValue=0


[HWiNFOGPUTemp]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=0xe0002000
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x1000000
HWiNFOType=CurrentValue
MaxValue=83
MinValue=0

[FrameBackground]
Meter=Image
ImageName=#@#Images\rm_white_d.png
W=132
H=132
X=0
Y=0

[MeterGradient]
Meter=Image
ImageName=#@#Images\Gradient-gyr-s
Container=MeterRoundlineTemp
W=132
H=132
X=0
Y=0

[MeterRoundlineTemp]
Meter=Roundline
MeasureName=HWiNFOGPUTemp
W=132
H=132
X=0
Y=0
StartAngle=(RAD(137))
RotationAngle=(RAD(266))
LineStart=51
LineLength=44
Solid=1
AntiAlias=1

[MeterRoundlineFan]
Meter=Roundline
MeasureName=HWiNFOGPUFan
W=132
H=132
X=0
Y=0
StartAngle=(RAD(137))
RotationAngle=(RAD(266))
LineStart=60
LineLength=53
Solid=1
AntiAlias=1


it needs to look like this 2 meters

Code: Select all

[Rainmeter]
Update=500

; ---------------------------------------Sensors------------------------------------------------

[HWiNFOGPUload]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=0xe0002000
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x3000000
HWiNFOType=CurrentValue
MinValue=0
MaxValue=1456
IfAboveValue=1251
IfAboveAction=[!SetOption MeterCircleLoad LineColor 255,0,0,255][!UpdateMeter *][!Redraw]
IfBelowValue=1250
IfBelowAction=[!SetOption MeterCircleLoad LineColor 0,255,0,255][!UpdateMeter *][!Redraw]


[HWiNFOGPUTemp]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=0xe0002000
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x1000000
HWiNFOType=CurrentValue
MaxValue=95
MinValue=0

IfAboveValue=55
IfAboveAction=[!SetOption MeterCircleTemp LineColor 255,0,0,225][!UpdateMeter *][!Redraw]
IfBelowValue=46
IfBelowAction=[!SetOption MeterCircleTemp LineColor 0,255,0,255][!UpdateMeter *][!Redraw]


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

[MeterBackground]
Meter=Image
ImageName=#@#Images\rm_white_d.png
W=132
H=132
X=0
Y=0

[MeterMainText]
Meter=String
MeasureName=HWiNFOGPULoad
X=66
Y=55
MeterStyle=StringStyle
StringAlign=CenterCenter
AntiAlias=1
FontColor=255,255,255
FontFace=Segoe UI Light
FontSize=15
Text="%1rpm"

[MeterSubText]
Meter=String
MeasureName=HWiNFOGPUTemp
X=66
Y=83
MeterStyle=StringStyle
StringAlign=CenterCenter
AntiAlias=1
FontColor=255,255,255
FontFace=Segoe UI Light
FontSize=12
Text="%1°C"

[MeterCircleload]
Meter=Roundline
MeasureName=HWiNFOGPULoad
X=0
Y=0
W=132
H=132
StartAngle=(Rad(137))
RotationAngle=(Rad(266))
LineStart=60
LineLength=53
Solid=1
LineColor=0,255,0,255
AntiAlias=1

[MeterCircleTemp]
Meter=Roundline
MeasureName=HWiNFOGPUTemp
X=0
Y=0
W=132
H=132
StartAngle=(Rad(137))
RotationAngle=(Rad(266))
LineStart=51
LineLength=44
Solid=1
LineColor=0,255,0,255
AntiAlias=1
i hope someone can help me with this, rainmeter is new for me.

grts roy
Last edited by balala on September 2nd, 2021, 2:57 pm, edited 1 time in total.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: roundline gradient

Post by eclectic-tech »

Your top code works for me. I don't have your images, so I used a white solidcolor and my own gradient image 'Gradient-gyr-s.png'.
I use 2 loop counter as the measures, but I assume your HWiNFO measures are providing values.
gpu2.gif
What is the size of your image? I ask because without a large enough image, the inside roundline [MeterRoundlineTemp] will not display the gradient; It has to be at least as large as your roundline meter, my image is 200x200 pixels.

If you are still having issues, it would help to have a skin package, with all the require parts, so we can test.
You do not have the required permissions to view the files attached to this post.
Luckypants
Posts: 3
Joined: September 2nd, 2021, 2:36 pm

Re: roundline gradient

Post by Luckypants »

i think the image is big enough, if i swap the meters the inner circle is black and the other gradient. dont understand me wrong the meter works but i want them both gradiant.
This are the two images i use.
You do not have the required permissions to view the files attached to this post.
Luckypants
Posts: 3
Joined: September 2nd, 2021, 2:36 pm

Re: roundline gradient

Post by Luckypants »

found the problem :D
the second meter whas missing a container, now it works like i want.

Code: Select all

[Rainmeter]
Update=1000

[Variables]

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

[HWiNFOGPUFan]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=0xe0002000
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x3000000
HWiNFOType=CurrentValue
MaxValue=1456
MinValue=0


[HWiNFOGPUTemp]
Measure=Plugin
Plugin=HWiNFO.dll
HWiNFOSensorId=0xe0002000
HWiNFOSensorInstance=0x0
HWiNFOEntryId=0x1000000
HWiNFOType=CurrentValue
MaxValue=83
MinValue=0

[FrameBackground]
Meter=Image
ImageName=#@#Images\rm_white_d.png
W=132
H=132
X=0
Y=0

[MeterGradient]
Meter=Image
ImageName=#@#Images\Gradient-gyr-s
Container=MeterRoundlineTemp
W=132
H=132
X=0
Y=0

[MeterGradient2]
Meter=Image
ImageName=#@#Images\Gradient-gyr-s
Container=MeterRoundlineFan
W=132
H=132
X=0
Y=0

[MeterRoundlineTemp]
Meter=Roundline
MeasureName=HWiNFOGPUTemp
W=132
H=132
X=0
Y=0
StartAngle=(RAD(137))
RotationAngle=(RAD(266))
LineStart=51
LineLength=44
Solid=1
AntiAlias=1

[MeterRoundlineFan]
Meter=Roundline
MeasureName=HWiNFOGPUFan
W=132
H=132
X=0
Y=0
StartAngle=(RAD(137))
RotationAngle=(RAD(266))
LineStart=60
LineLength=53
Solid=1
AntiAlias=1



[MeterMainText]
Meter=String
MeasureName=HWiNFOGPUFan
X=66
Y=55
MeterStyle=StringStyle
StringAlign=CenterCenter
AntiAlias=1
FontColor=255,255,255
FontFace=Segoe UI Light
FontSize=15
Text="%1rpm"

[MeterSubText]
Meter=String
MeasureName=HWiNFOGPUTemp
X=66
Y=83
MeterStyle=StringStyle
StringAlign=CenterCenter
AntiAlias=1
FontColor=255,255,255
FontFace=Segoe UI Light
FontSize=12
Text="%1°C"
thanx for the help eclectic-tech :thumbup:
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5391
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: roundline gradient

Post by eclectic-tech »

Ah-ha, so it worked but you wanted both gradient... I should have noticed. :?
Glad to help. :thumbup: