Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
set gauge to min value for invalid values rather than 0
and show the invalid thing as text. and update dist files to further address #113
- Loading branch information
58dae47
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
successfully tested.
testcase (node-red-flow)
[{"id":"aedeb0df.c1dbc8","type":"tab","label":"set gauge to min value for invalid values rather than 0","disabled":false,"info":"and show the invalid thing as text.\nand update dist files\nto further address #113"},{"id":"c90d08a2.4ab78","type":"ui_gauge","z":"aedeb0df.c1dbc8","name":"","group":"2a7182f8.285ab6","order":2,"width":0,"height":0,"gtype":"gage","title":"Gauge","label":"","format":"{{msg.payload.value}}","min":"-20","max":"50","colors":["#0080ff","#ff0000","#ff80ff"],"seg1":"10","seg2":"20","x":750,"y":440,"wires":[]},{"id":"baa40336.8f574","type":"function","z":"aedeb0df.c1dbc8","name":"set NaN display value and negative value","func":"msg.payload = {};\nmsg.payload.value = \"inval\";\n\nmsg.ui_control = {\n options: {\n pointer: false,\n value: -100\n }\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":500,"y":400,"wires":[["c90d08a2.4ab78","add5c2af.22a72"]]},{"id":"e4421d42.8750a8","type":"inject","z":"aedeb0df.c1dbc8","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":false,"onceDelay":0.1,"x":250,"y":400,"wires":[["baa40336.8f574"]]},{"id":"add5c2af.22a72","type":"debug","z":"aedeb0df.c1dbc8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":770,"y":400,"wires":[]},{"id":"2a7182f8.285ab6","type":"ui_group","z":"","name":"Default Group","tab":"8f0a53a6.b1dca","disp":true,"width":"9"},{"id":"8f0a53a6.b1dca","type":"ui_tab","z":"","name":"Home Tab","icon":"dashboard"}]