adafruit / Wippersnapper_Protobuf

Protocol buffer messages for Adafruit.io WipperSnapper Beta
MIT License
0 stars 2 forks source link

Annotate list of Sensor Types with their respective SI Units #96

Closed lorennorman closed 1 year ago

lorennorman commented 2 years ago

I would like to have the below list of sensor types exhaustively annotated with the default unit type for each sensor type. I can take that into JS and render things correctly from there.

https://github.com/adafruit/Wippersnapper_Protobuf/blob/master/proto/wippersnapper/i2c/v1/i2c.proto#L153-L181

Bonus points if you can give an example string as well, for example:

SENSOR_TYPE_AMBIENT_TEMPERATURE = 13; /** Degrees Celsius, "{value}°C" **/

...which i could then use on the front-end to render: 25.3°C