Closed OasisOfChaos closed 1 year ago
@ironsheep I too would like this change, do you know when this could be pulled into master?
Thank you
I may modify this slightly but thank you for contributing this!
Changes have been committed and will appear in v1.7.5 and later.
Changes have been committed and will appear in v1.7.5 and later.
Thank you!
Hi,
I have an OrangePi device that runs a custom version of Buster and does not have the vcgencmd binary. This makes the script always returns -1 for the temperature. This minor change checks if the 'file'
/sys/class/thermal/thermal_zone0/temp
exists and if it does, simply returns that value. In all other situations, it still returns-1.0
.I'm not sure if this fits in your view of this script (you may want to run it only on stock Pi's or something). If not, don't hesitate to ignore this PR :)