Staacks / there.oughta.be

Projects featured on my blog at https://there.oughta.be
https://there.oughta.be
GNU General Public License v3.0
99 stars 33 forks source link

Psutil #14

Closed eurosting closed 3 years ago

eurosting commented 3 years ago

Hello all,

how to deal with this error in python script? It looks like Windows psutil doesn't support temperature measurements.
Python 3.9.0

temperature += psutil.sensors_temperatures()["k10temp"][0].current

AttributeError: module 'psutil' has no attribute 'sensors_temperatures'

Staacks commented 3 years ago

I am not even sure if this was ever provided under Windows. I have developed and tested the script on Linux and do not have a Windows solution. However, other users have created solutions in the meantime, which I collect in the readme next to the Python script: https://github.com/Staacks/there.oughta.be/tree/master/led-cube/cpu-udp-sender

(Ok, this sounds as if this was a huge collection of alternative solutions. It is only one at the time I am writing this: LEDCubeFeeder)

I am closing this issue as it will not be implemented in this repository. However, I am happy to hear about Windows solutions and will gladly link to alternatives.