Method to interact bewteen node-red/JS/HTML/CSS ui_template

Basically no change - can't see any color -

The attached code(Nored) there work for me - but i am not able to understand what it does - if that can help
Battery-gauge-solved