linux-dash icon indicating copy to clipboard operation
linux-dash copied to clipboard

CPU Temp not displayed

Open weedpump opened this issue 7 years ago • 6 comments

My CPU Temperatur is not displayed.

Output of Linux-Dash: Temprature | /usr/bin/sensors SA °C

Output of sensors:

coretemp-isa-0000 Adapter: ISA adapter Core 0: +28.0°C (high = +105.0°C, crit = +105.0°C) Core 1: +28.0°C (high = +105.0°C, crit = +105.0°C) Core 2: +26.0°C (high = +105.0°C, crit = +105.0°C) Core 3: +26.0°C (high = +105.0°C, crit = +105.0°C)

Output sensors -v:

sensors version 3.4.0 with libsensors version 3.4.0

weedpump avatar Nov 20 '17 11:11 weedpump

Is this on a raspberry pi?

zmrow avatar Dec 19 '17 03:12 zmrow

No. It's an intel chip.

Model name Intel(R) Celeron(R) CPU J1900 @ 1.99GHz

weedpump avatar Dec 19 '17 09:12 weedpump

yes.This problem happens on raspberry pi 3 debian 9 sometime.

VIXNESS avatar Jan 22 '18 16:01 VIXNESS

Yes, but it's an Intel(R) Celeron(R) CPU J1900 @ 1.99GHz on Ubuntu 17.10 4.13.0-37-generic (Server)

weedpump avatar Mar 17 '18 11:03 weedpump

@TobiasKneidl , please check changes from https://github.com/afaqurk/linux-dash/pull/465

alozovskoy avatar Jun 13 '18 00:06 alozovskoy

Check the content of the file /sys/class/thermal/thermal_zone0/temp that way:

$ cat /sys/class/thermal/thermal_zone0/temp
46000

If you got something similar and not a negative value then patch the script as follow:

To get the main temperature data, just change raspbian by ubuntu in the cpu_temp() function in the file app/server/linux_json_api.sh.

If you don't have an ubuntu based distrib, check the value of ID in file /etc/os-release and set it in place of raspbian in the script.

For temperature data by cores, see this pull request https://github.com/afaqurk/linux-dash/pull/465 (not tested yet)

Jiab77 avatar Sep 29 '19 15:09 Jiab77