Displaying specific text from the array { TEMP, HUMI and EXTPWR}

how to show on gauge example

[{"id":"4b63b34b.5458bc","type":"inject","z":"b779de97.b1b46","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":20,"wires":[["4e5d636a.3a3dcc"]]},{"id":"4e5d636a.3a3dcc","type":"template","z":"b779de97.b1b46","name":"simulate payload","field":"payload","fieldType":"msg","format":"handlebars","syntax":"plain","template":"gprs tx 255: 2$koolboks#{\"sensorDatas\":[{\"flag\":\"DI0\",\"switcher\":0},\n{\"flag\":\"DI1\",\"switcher\":0},\n{\"flag\":\"DO0\",\"switcher\":0},\n{\"flag\":\"DO1\",\"switcher\":0},\n{\"flag\":\"TEMP\",\"value\":30.30},\n{\"flag\":\"HUMI\",\"value\":94.10},\n{\"flag\":\"EXTPWR\",\"value\":12.22}],\n\"time\":\"946952295\"}\n","output":"str","x":320,"y":20,"wires":[["751b92e2.76b93c"]]},{"id":"751b92e2.76b93c","type":"change","z":"b779de97.b1b46","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"\"{\" & $substringAfter($$.payload, \"{\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":60,"wires":[["54ed2cb4.5bdb54"]]},{"id":"54ed2cb4.5bdb54","type":"json","z":"b779de97.b1b46","name":"","property":"payload","action":"","pretty":false,"x":570,"y":60,"wires":[["17147e63.c7b362"]]},{"id":"17147e63.c7b362","type":"change","z":"b779de97.b1b46","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"$$.payload.sensorDatas.${$.flag:$.value }","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":430,"y":120,"wires":[["f068a596.996288","5d6bc7f1.8c5dc","a36da4b2.5d85d8"]]},{"id":"f068a596.996288","type":"debug","z":"b779de97.b1b46","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":750,"y":160,"wires":[]},{"id":"5d6bc7f1.8c5dc","type":"ui_gauge","z":"b779de97.b1b46","name":"","group":"8b5cde76.edd58","order":9,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{msg.payload.TEMP}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":350,"y":160,"wires":[]},{"id":"a36da4b2.5d85d8","type":"ui_gauge","z":"b779de97.b1b46","name":"","group":"8b5cde76.edd58","order":10,"width":0,"height":0,"gtype":"gage","title":"gauge","label":"units","format":"{{msg.payload.HUMI}}","min":0,"max":10,"colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":350,"y":200,"wires":[]},{"id":"8b5cde76.edd58","type":"ui_group","name":"","tab":"8f03e639.85956","order":1,"disp":true,"width":"12","collapse":false},{"id":"8f03e639.85956","type":"ui_tab","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]
1 Like