How to add a simple level indicator?

First off, I ‘m very new to kodi and programming. I’m working on a Raspberry Pi carputer project with some addons I have created my self (ADC inputs and a serial interface to car bus which is pre-OBD2).

I’m pulling some OBD type data such as coolant temperature which I can easily display the actual value of (a number) but I would like to also add a visual indication such as in the pic below. A visual can be interpreted with a quick glance as opposed to numbers which take a little time to comprehend.

[Image: meter.jpg]

I had thought about using a progress bar to do this but I don’t know how to pass a numerical value (percent) to it. Or perhaps there is a more suitable control I could use? It will be updated ~ twice per second. Was hoping someone could get me started in the right direction….

Thanks!

Please let me know if this would be better posted in the Addons section?