(see High temperature indicated on Pi4 for details)
It would be good to have the "red fire icon" (warning) threshold for the temperature shown on the admin webinterface a configurable setting .
Otherwise this visualization might be useless (e. g. on a Pi 4 without case and without cooling the normal temperature is around 63 degrees and therefore always in the "warning state" on the pi-hole webinterface).
jfb
August 20, 2019, 12:47am
2
Would a variable level based in architecture be useful? The Pi Zero is typically in the 30's C, for example.
DL6ER
August 20, 2019, 12:01pm
3
We currently have the hard-coded limit of 60°C as also already mentioned elsewhere by @jfb .
This has last been changed in 2016
pi-hole:devel
← pi-hole:fix/temperature
opened 01:56PM - 24 Dec 16 UTC
**By submitting this pull request, I confirm the following (please check boxes, … eg [X] - no spaces) _Failure to fill the template will close your PR_:**
***Please submit all pull requests against the `development` branch. Failure to do so will delay or deny your request***
- [X] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md).
- [X] I have checked that [another pull request](https://github.com/pi-hole/pi-hole/pulls) for this purpose does not exist.
- [X] I have considered, and confirmed that this submission will be valuable to others.
- [X] I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
- [X] I give this submission freely, and claim no ownership to its content.
**How familiar are you with the codebase?:** 10
---
Change CPU temperature value when switching from green to red from 45 to 60°C. A normal working temperature for a Raspberry Pi (in a plastic case) is around 55°C. Hence, a lot of users (including me) always see the temperature icon in red. However, the Raspberry Pi can still operate fine at even higher temperatures (CPU frequency only gets throttled when surpassing 85°C).
From the Raspbery Pi FAQ:
>8. WHAT IS ITS OPERATING TEMPERATURE?
>The Raspberry Pi is built from commercial chips which are qualified to different temperature ranges; the LAN9512 is specified by the manufacturers as being qualified from 0°C to 70°C, while the AP is qualified from -40°C to 85°C. You may well find that the board will work outside those temperatures, but we’re not qualifying the board itself to these extremes.
_This template was created based on the work of [`udemy-dl`](https://github.com/nishad/udemy-dl/blob/master/LICENSE)._
but I agree that a user-definable setting (or even better a architecture-dependent value) seems best suited. I'm willing to implement this if nobody beats me to it (I'm on a long business trip for two more weeks at the moment).
DL6ER
August 20, 2019, 12:11pm
4
This was actually a very quick one, see
pi-hole:devel
← pi-hole:new/user-definable-temp-limit
opened 12:10PM - 20 Aug 19 UTC
**By submitting this pull request, I confirm the following:**
- [X] I have re… ad and understood the [contributors guide](https://github.com/pi-hole/AdminLTE/blob/master/CONTRIBUTING.md), as well as this entire template.
- [X] I have made only one major change in my proposed changes.
- [X] I have commented my proposed changes within the code.
- [X] I have tested my proposed changes.
- [X] I am willing to help maintain this change if there are issues with it later.
- [X] I give this submission freely and claim no ownership.
- [X] It is compatible with the [EUPL 1.2 license](https://opensource.org/licenses/EUPL-1.1)
- [X] I have squashed any insignificant commits. ([`git rebase`](http://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html))
- [X] I have Signed Off all commits. ([`git commit --signoff`](https://git-scm.com/docs/git-commit#git-commit---signoff))
---
**What does this PR aim to accomplish?:**
Add a user-definable temperature limit instead of the hard-coded value last changed in https://github.com/pi-hole/AdminLTE/pull/293
**How does this PR accomplish the above?:**
Add `TEMPERATURE_LIMIT` setting in setupVars.conf for setting the level beyond which we show the temperature icon in red on the dashboard.
**What documentation changes (if any) are needed to support this PR?:**
Will be addressed in a follow-up PR to the docs repo once we merge this.
You can set the desired limit by adding
TEMPERATURE_LIMIT=63
in your /etc/pihole/setupVars.conf
file. Note that the limit has to be specified in Celsius, regardless of the unit you selected for displaying.
3 Likes
Not sure if you need to invest time making it arch dependent if too difficult.
Most CPU's that I know of ARM/Intel/AMD get fried above 90 Celsius.
And the thermal paste or pad vaporized.
Talking from experience with the whole IBM X server's, Thinkpad, POS range of products and countless SBC's
DL6ER
August 20, 2019, 1:45pm
6
I agree, user-definable is the first step. We can change the hard-coded default value very easily in a follow-up PR.
Thanks for this information. It useful