imrahil / OctoPrint-NavbarTemp

Plugin for OctoPrint - displays temperatures on navbar
GNU Affero General Public License v3.0
44 stars 50 forks source link

CPU Temp non PI SoC #95

Closed fly74 closed 1 year ago

fly74 commented 1 year ago

Hi there,

is it possible to show the temperature from x86 CPU used as octoprint. Maybe the output of sensors [Package id 0] can be used?

:>sensors
iwlwifi_1-virtual-0
Adapter: Virtual device
temp1:        +41.0°C

acpitz-acpi-0
Adapter: ACPI interface
temp1:        +40.0°C  (crit = +95.0°C)

coretemp-isa-0000
Adapter: ISA adapter
Package id 0:  +44.0°C  (high = +105.0°C, crit = +105.0°C)
Core 0:        +44.0°C  (high = +105.0°C, crit = +105.0°C)
Core 1:        +44.0°C  (high = +105.0°C, crit = +105.0°C)

as grep for example:

:>sensors | grep "Package id 0:" | awk '{print $4}'
+39.0°C
fly74 commented 1 year ago

Sorry work as simple:

Screenshot 2022-11-29 195638 Screenshot 2022-11-29 195705