Page 1 of 1

Temperature Setting

Posted: Wed Oct 27, 2021 11:55 am
by donner
I have installed Gargoyle and noticed the default system temperatures are in Celsius. Is it possible to have those values displayed in Fahrenheit? Unless I've overlooked it, I haven't noticed where that could be defined.

Re: Temperature Setting

Posted: Wed Oct 27, 2021 4:56 pm
by Lantis
It isn't configurable sorry. The temperature probes report in millicelcius, and Celcius is the standard unit for everyday temperature ranges (Kelvin being the SI unit).
You can patch it yourself by modifying /www/js/overview.js and/or /usr/lib/gargoyle/tempinfo.sh

Re: Temperature Setting

Posted: Wed Oct 27, 2021 10:23 pm
by donner
@Lantis - thanks for the info on the files. I looked at them and thought I could edit the overview.js temp array items but I boogered it up and had to undo my edit. I can comfortably say I know just enough to be dangerous....

Re: Temperature Setting

Posted: Thu Oct 28, 2021 3:23 am
by Lantis
https://github.com/ericpaulbishop/gargo ... iew.js#L64
Just before line 64, I'd do the following.

Code: Select all

temps[1] = (temps[1] * 9 / 5) + 32;
Repeat for temps 2 and 3.
Formula is from my memory but sounds right.

Need to change C to F on these lines too
https://github.com/ericpaulbishop/gargo ... ew.sh#L112

Re: Temperature Setting

Posted: Thu Oct 28, 2021 8:31 am
by donner
@Lantis - thanks for providing the specific file locations. My initial modifications were in the wrong locations. That did the trick. Greatly appreciated!