pimatic / pimatic-sysinfo

Plugin for displaying system and process information such as CPU and Memory usage for pimatic
https://pimatic.org/
GNU General Public License v2.0
2 stars 4 forks source link

temperature is -1 #21

Open sgoetze opened 5 years ago

sgoetze commented 5 years ago

On my Debian Stretch (no RPi) pimatic server the sysinfo plugin shows -1 for CPU temperature.

I use a small PC with a VIA CPU and a HDD for pimatic server. I have installed lm-sensors, did sensors-detect and kmod is started. Runnig sensors from shell gives:

acpitz-virtual-0
Adapter: Virtual device
temp1:        +40.0°C  (crit = +127.0°C)

via_cputemp-isa-0000
Adapter: ISA adapter
Core 0:       +49.0°C
cpu0_vid:    +0.860 V

If it's a problem of my special hardware please close the issue again. I have a watchdog running even for CPU temperature and no problem if sysinfo is not showing this information for my server.

mwittig commented 5 years ago

Sorry for the delay in reply. As you say you are running a debian server can you please try the following command.

sensors

This should yield various sensor values for the CPU. If the command is not found please consider installing the lm-sensors package.

sudo apt-get install lm-sensors 

After the package installation execute the following command

sudo sensors-detect

You may also need to run the following

sudo service kmod start

Please let me know if this solves the issue. You may also need to restart pimatic once

mwittig commented 5 years ago

@sgoetze Any news? Did you try to install the lm-sensors package?

sgoetze commented 5 years ago

@ mwittig: I did all this and I did it once more now. This is the summary of sensor-detect:

Driver `f71805f':
  * ISA bus, address 0x295
    Chip `Fintek F71805F/FG Super IO Sensors' (confidence: 9)

Driver `via-cputemp':
  * Chip `VIA C7 thermal sensor' (confidence: 9)

To load everything that is needed, add this to /etc/modules:
#----cut here----
# Chip drivers
f71805f
via-cputemp
#----cut here----

Command sensors shows this:

acpitz-virtual-0
Adapter: Virtual device
temp1:        +40.0°C  (crit = +127.0°C)

via_cputemp-isa-0000
Adapter: ISA adapter
Core 0:       +69.0°C
cpu0_vid:    +0.860 V

I have still pimatic version 0.9.48 running, hope that is no problem.