currently the front end rounds by default to 2 digits. Would be nice to make this adjustable via config to 1 or 2.
If somebody needs 2, 3 or maybe 4 digits for a separate device, it would be great to have the possibility to make it customizable in the related device.
Similar to the repeats option of homeduino devices, it can be different to the default repeat config.
Make decimal rounding for frontend adjustable
+1 would love to have this too!
This requirement is easy to achieve. I just implemented it. But it requires a new release of pimatic and pimatic-mobile-frontend.
Maybe these changes should be committed into a feature branch and stashed until both modules will be released together the next time. @mwittig What’s your opinion about that?
Maybe the formatNumber method is enough for you. It’s already available in pimatic.
formatNumber(number, decimals, unit)
formatNumber(123.65464575464,3,"") --> 123.654