x_colorLookup

The goal is to provide a way that colors can be associated with the nominal data in the stream. A map is provided from regular expression to web color (color name or #RRGGBB).

"x_colorLookup": {
    "Fair":"SkyBlue",
    "(?i).*cloud.*":"LightSteelBlue",
    "(?i)overcast":"LigthGrey",
    "(?i).*rain.*":"Green",
    "(?i).*storm.*":"DarkGreen"
}
         

Example use

Here is a URL showing example use: https://jfaden.net/HapiServerDemo/hapi/info?id=icwc

To consider

It might be nice to be able to mark values above or below a threshold, to provide warnings or nominal conditions, as a UNH group has done on MMS. So for this the tests might be instead of regular expressions, something like: