GPU Usage graph not working

Help with creating, editing & fixing problems with skins

GPU Usage graph not working

July 17th, 2017, 11:38 am
Trevigt
   [1 posts]

Hello! I'm trying to add a GPU usage graph to my sysDash skin, but I'm having a problem. I get it to read the temperature and usage values and display them but no graph is showing up. This is how it currently looks.

Any help is very appreciated!

Code: Select all

[Rainmeter]
Group=SysDash | GPU
Update=1000
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1

; = IMPORTANT =
; = For configuring the rainmeter skin, right-click the visualizer and click on "Open settings".
; = You can also open the variables.ini file located in:
; = "My Documents\Rainmeter\Skins\SysDash\@Resources"

; Small context menu when you right-click the skin
ContextTitle=" Open settings"
ContextAction=[!ActivateConfig "#ROOTCONFIG#\Settings" "general.ini"]
ContextTitle2=" Open variables file"
ContextAction2=["#@#variables.ini"]

[Metadata]
Name=SysDash Dashboard
Author=marcopixel
License=MIT License
Information=An minimalistic, still stylish dashboard-like skin with modular components.

[Variables]
; Includes the variables used for the skin.
@include=#@#variables.ini

; Measure to get GPU temps
[MeasureGPUTemp]
Measure=Plugin
Plugin=MSIAfterburner.dll
DataSource=GPU temperature
MaxValue=100
MinValue=0

[ScriptGraph]
Measure=Script
ScriptFile=#@#scripts\GraphShape.lua
ShapeWidth=(#Width#-(2*(#Width#/8)))
ShapeHeight=35
InputMeasure=MeasureGPU
OutputGraph=ShapeGraph

[MeasureGPU]
Measure=GPU
OnUpdateAction=[!CommandMeasure ScriptGraph "Graph()"]

[MeterGPUTitle]
Meter=String
X=(#Width#/8)
Y=30
FontSize=14
FontColor=#FontColor#,235
InlineSetting=Face | #Font#
InlineSetting2=Weight | 100
AntiAlias=1
Text=GPU
; Measure to get GPU usage
[MeasureGPUUsage]
Measure=Plugin
Plugin=Plugins\MSIAfterburner.dll
DataSource=GPU usage
[MeterGPUValue]
Meter=String
MeasureName=MeasureGPUUsage
X=(#Width#-(#Width#/8))
Y=2r
FontSize=12
FontColor=#FontColor#,150
InlineSetting=Face | #Font#
InlineSetting2=Weight | 200
AntiAlias=1
StringAlign=Right
Text=%1 %
[MeterGPUTemps]
Meter=String
MeasureName=MeasureGPUTemp
X=(#Width#-(#Width#/8))-55
Y=32
FontSize=12
FontColor=#FontColor#,150
InlineSetting=Face | #Font#
InlineSetting2=Weight | 200
AntiAlias=1
StringAlign=Right
Text=%1 C

[ShapeGraph]
Meter=Shape
X=(#Width#/8)
Y=35R
Shape=Path Graph1 | StrokeWidth 3 | Stroke Color #MainColor# | StrokeLineJoin Round
Shape2=Path Graph2 | StrokeWidth 0 | Fill LinearGradient Grad | StrokeLineJoin Round
Graph1=0,0|Lineto 0,0
Graph2=0,0|Lineto 0,0
Grad = 270 | #MainColor#,225 ; 0 | #MainColor#,0 ; 1


EDIT: CPU Code

Code: Select all

[Rainmeter]
Group=SysDash | CPU
Update=1000
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1

; = IMPORTANT =
; = For configuring the rainmeter skin, right-click the visualizer and click on "Open settings".
; = You can also open the variables.ini file located in:
; = "My Documents\Rainmeter\Skins\SysDash\@Resources"

; Small context menu when you right-click the skin
ContextTitle=" Open settings"
ContextAction=[!ActivateConfig "#ROOTCONFIG#\Settings" "general.ini"]
ContextTitle2=" Open variables file"
ContextAction2=["#@#variables.ini"]

[Metadata]
Name=SysDash Dashboard
Author=marcopixel
License=MIT License
Information=An minimalistic, still stylish dashboard-like skin with modular components.

[Variables]
; Includes the variables used for the skin.
@include=#@#variables.ini

; Measure to get CPU temps
[MeasureCPUTemp]
Measure=Plugin
Plugin=Plugins\CoreTemp.dll
CoreTempType=Temperature
MaxValue=100
MinValue=0

[MeasureCore0Temp]
Measure=Plugin
Plugin=CoreTemp
CoreTempType=Temperature
CoreTempIndex=0

; Script for generating the line graph
[ScriptGraph]
Measure=Script
ScriptFile=#@#scripts\GraphShape.lua
ShapeWidth=(#Width#-(2*(#Width#/8)))
ShapeHeight=35
InputMeasure=MeasureCPU
OutputGraph=ShapeGraph

; Measure to get CPU usage
[MeasureCPU]
Measure=CPU
OnUpdateAction=[!CommandMeasure ScriptGraph "Graph()"]

[MeterCPUTitle]
Meter=String
X=(#Width#/8)
Y=30
FontSize=14
FontColor=#FontColor#,235
InlineSetting=Face | #Font#
InlineSetting2=Weight | 100
AntiAlias=1
Text=CPU
[MeterCPUValue]
Meter=String
MeasureName=MeasureCPU
X=(#Width#-(#Width#/8))
Y=2r
FontSize=12
FontColor=#FontColor#,150
InlineSetting=Face | #Font#
InlineSetting2=Weight | 200
AntiAlias=1
StringAlign=Right
Text="%1 %"
[MeterCPUTemps]
Meter=String
MeasureName=MeasureCore0Temp
X=(#Width#-(#Width#/8))-55
Y=32
FontSize=12
FontColor=#FontColor#,150
InlineSetting=Face | #Font#
InlineSetting2=Weight | 200
AntiAlias=1
StringAlign=Right
Text="%1 C"

[ShapeGraph]
Meter=Shape
X=(#Width#/8)
Y=35R
Shape=Path Graph1 | StrokeWidth 3 | Stroke Color #MainColor# | StrokeLineJoin Round
Shape2=Path Graph2 | StrokeWidth 0 | Fill LinearGradient Grad | StrokeLineJoin Round
Graph1=0,0|Lineto 0,0
Graph2=0,0|Lineto 0,0
Grad = 270 | #MainColor#,225 ; 0 | #MainColor#,0 ; 1

Return to “Help: Rainmeter Skins”



Who is online

Users browsing this forum: Google [Bot] and 8 guests