That sounds a reasonable approach.
You need to get the data into the customclientraw file first, then look at how I implemented the dewpoint gauge and just replicate some of that code.
If you are putting more options on there, you may also want to take a look at my gauges page where I have changed the radio buttons to drop down selectors