Hi
The dial widget has no decimal if the value is below 10. While it is quite normal for displaying Power value, it is quite a shame for displaying Temperature. Is there something that can be done to change that?
thanks
Archived Forum |
|
Dial decimalSubmitted by darrepac on Thu, 06/02/2014 - 09:36Hi
The dial widget has no decimal if the value is below 10. While it is quite normal for displaying Power value, it is quite a shame for displaying Temperature. Is there something that can be done to change that?
thanks » |
Re: Dial decimal
darrepac,
Like this?
This is on the current Emoncms.org. There's also working examples on http://openenergymonitor.org/emon/beehive/v2
Re: Dial decimal
Sorry my mistake, please read: The dial widget has no decimal if the value is above 10
Re: Dial decimal
If you are hosting your own copy of emoncms you would need to edit line 184 of the following file:
https://github.com/emoncms/emoncms/blob/master/Modules/dashboard/Views/j...
to be
position = position.toFixed(1);
As the site is primarily about energy monitoring I'm guess if the change was made for all it would negatively impact more people than would gain, so I doubt this change will end up in the project source code. Although I would love to be proved wrong ;-)
Re: Dial decimal
I can understand that it is not usefule for everybody. But anyone using it for displaying temperature would need it. Could be an option...
Anyway, thanks for the hint, on my own version, it works now!