Dial decimal

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

ukmoose's picture

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

 

darrepac's picture

Re: Dial decimal

Sorry my mistake, please read: The dial widget has no decimal if the value is above 10

ukmoose's picture

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 ;-)

 

darrepac's picture

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!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.