Skip to content

Commit

Permalink
set gauge to min value for invalid values rather than 0
Browse files Browse the repository at this point in the history
and show the invalid thing as text.
and update  dist files
to further address #113
  • Loading branch information
Dave Conway-Jones committed Apr 6, 2018
1 parent 27f05d0 commit 58dae47
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/dashboard.appcache
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ weather-icons-lite/fonts/weather-icons-lite.woff2
NETWORK:
*

# hash: bd7278a14e1f3f41d8b6d9649928b8a1faf33c1d287fb378e68e5b54e56e8899
# hash: f503c05bd69f78a7f07579ea9d5a6b05cea78c0e55482c9a35b0e7c55726844c
Loading

1 comment on commit 58dae47

@DDDanny
Copy link

@DDDanny DDDanny commented on 58dae47 Apr 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

successfully tested.
grafik

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"}]

Please sign in to comment.