Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question about config #400

Open
gwlegion opened this issue Jul 29, 2022 · 1 comment
Open

question about config #400

gwlegion opened this issue Jul 29, 2022 · 1 comment

Comments

@gwlegion
Copy link

hi ... in my configuration i got two graphs ... CPU temp, and exeternal temp
Is there an easy way to draw the delta between them ?
cputemp-external temps.
i think it's a good way to know if a higher cpu temperature is normal or due to a hogh cpu activity

@JappeHallunken
Copy link

JappeHallunken commented Sep 17, 2022

I found no way to substract the one temp fromn the other (I have little experience with this stuff), but you could create a third data source, which is basically the temp of the CPU minus the avg external temp at idle (we set a static value for this, this is not very accurate, but will give you some hint if the diff is higher as usual)
e.g. your CPU is at idle at about 40°C, the external temp is avg. 30°C.
So we grab the current CPU temp and substract 30°C:

dynamic.2.name=diff_temp
dynamic.2.source=/sys/devices/virtual/thermal/thermal_zone0/temp
dynamic.2.regexp=(.*)
dynamic.2.postprocess=int(($1/10 + 0.5)/100)-30
dynamic.2.rrd=GAUGE

Then you have just add one more line to show the graph in the statistics:
web.statistics.1.content.1.graph.2=diff
make sure it's graph.2! add this after the graph.1 line, like:

web.statistics.1.content.1.title="Temperature"
web.statistics.1.content.1.graph.1=soc_temp
web.statistics.1.content.1.graph.2=diff
web.statistics.1.content.1.ds_graph_options.soc_temp.label=Core temperature (°C)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants