Replies: 1 comment 1 reply
-
|
What is the error you get from the last version? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I`m using this great code for Proxmox to report sensor data to Home Assistant. The CPU temp is broken in last version
here is what works for me.
`def check_cpu_temp():
full_cmd = "cat /sys/class/thermal/thermal_zone*/temp 2> /dev/null | sed 's/\(.\)..$//' | tail -n 1"
try:
p = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE).communicate()[0]
cpu_temp = p.decode("utf-8").strip()
except Exception:
cpu_temp = 0
Beta Was this translation helpful? Give feedback.
All reactions