Glow IHD - Exporting Solar, how to display -ve values correctly on LoveLace

Using the template from here - https://gist.github.com/ndfred/5bb51b567f8cfaf2bb06da6393169321 with my Glow IHD.

It is working except when I am exporting the grid I get these sort of values when for example IHD is showing -1.000

Does anyone know how to adjust the template so its reads correctly on hassio?

image

Thanks!