-
-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the setupVars.conf
option TEMPERATUREUNIT
, plus slight rearrangement of settings page
#2516
Conversation
New behavior!!! The temperature unit will be set GLOBALLY and not per browser. - if a TEMPERATUREUNIT is set in setupVars.conf file, the value will be used. - if there is no unit set in setupVars.conf, "C" will be used; - changing the value on the web interface WILL CHANGE setupVars.conf. - if the browser has an old value set on locastorage, this will be ingnored. Signed-off-by: RD WebDesign <[email protected]>
da70211
to
39aa423
Compare
Signed-off-by: RD WebDesign <[email protected]>
39aa423
to
d92df4a
Compare
App appears to work, though regarding this part:
With that in mind, we should probably move this out of the |
I agree. |
Signed-off-by: RD WebDesign <[email protected]>
I think it looks fine, however it now introduces something else... Changing the temperature unit is automatically updated when switching between them without having to press save... The other options in that same dialog require the usage of the save button. Two suggestions:
|
Yep - that looks good to me |
- use separate tabs for Web and API - change box titles and options distribution Signed-off-by: RD WebDesign <[email protected]>
setupVars.conf
option TEMPERATUREUNITsetupVars.conf
option TEMPERATUREUNIT
, plus slight rearrangement of settings page
This pull request has been mentioned on Pi-hole Userspace. There might be relevant details there: https://discourse.pi-hole.net/t/pi-hole-ftl-v5-21-web-v5-18-4-and-core-v5-15-4-released/61096/1 |
What does this PR aim to accomplish?
Allow the selection of temperature unit shown on the web interface via
setupVars.conf
, like other interfaces (PADD/chronometer) already do.Currently the web interface always defaults to "C" (Celcius). The user must manually select the unit on Setting page for every device/browser used.
Note:
The suggest code here will use a global unit and remove the ability to use different units on each device (which was probably never the desired behavior).
How does this PR accomplish the above?
Changing the code to use a new behavior:
TEMPERATUREUNIT
is set insetupVars.conf
file, the value will be used.setupVars.conf
, but the browser has an old value set onlocastorage
, thelocalstorage
value will be used and stored insetupVars.conf
file.setupVars.conf
orlocalstorage
, "C" will be used as default value.Also:
setupVars.conf
.Link documentation PRs if any are needed to support this PR:
The TEMPERATUREUNIT description on docker-pi-hole repository will need to be updated to reflect the new behavior
By submitting this pull request, I confirm the following:
git rebase
)