genielabs / HomeGenie

HomeGenie, the programmable automation intelligence
https://homegenie.it
GNU General Public License v3.0
392 stars 155 forks source link

Need global temperature unit setting #196

Closed kevin789900 closed 8 years ago

kevin789900 commented 9 years ago

HG seems to store temperature in Celsius, please add a setting that all displays of temperature will be in Fahrenheit (widgets and statistics charts). Currently it has been reported that browser locale(?) configuration will cause HG to display F, but these settings are not accessible on mobile devices (ios/android chrome).

JonesDK commented 9 years ago

Hi Homegenie, First of all thanks for a GREAT product! :) I too wish for this feature, last week I switched to Win10 and for some reason it do not send the correct browser locate. But, what I really miss is an "international/region" section under "Configure\maintenance". So that we can set "all" types of formates:

mtanana commented 9 years ago

Gene- I've been monkeying around in the thermostat code. I'm interested to hear your thoughts on this general idea. With the thermostat code, I go back and forth. Should we 1) Translate everything to centigrade and let the UI decide (this is what we do now in the thermostat) or 2) Let the format that the device sends the temperature in decide what the UI displays it in. (This actually works for the thermostat case, because most thermostats let you set this yourself.

I can see both being decent ways of handling the data.

But a global setting would make it nicer for writing the code on the UI

genemars commented 8 years ago

global temperature unit and date format added in r499

kevin789900 commented 8 years ago

The new unit settings don't seem to be used in all places: -win7/chrome: statistics doesn't use date format (it does show temperature on chart per setting) -ios/chrome: statistics doesn't use date format or temperature setting (shows C when F is set). Dashboard/group title bar shows C instead of F

genemars commented 8 years ago

ensure to have cookies enabled