[{"id":"975da6d3.ef5828","type":"tab","label":"NETIO AN30 (REST JSON)","disabled":false,"info":""},{"id":"f4918cb2.d44c6","type":"http request","z":"975da6d3.ef5828","name":"HTTP Request (POST)","method":"POST","ret":"txt","url":"http://netio-4All.netio-products.com:8080/netio.json","tls":"","x":430,"y":100,"wires":[["f8cd0c76.d18d1"]]},{"id":"f8cd0c76.d18d1","type":"debug","z":"975da6d3.ef5828","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":630,"y":100,"wires":[]},{"id":"dbcdd1af.46e12","type":"http request","z":"975da6d3.ef5828","name":"HTTP Request (GET)","method":"GET","ret":"txt","url":"http://netio-4All.netio-products.com:8080/netio.json","tls":"","x":520,"y":240,"wires":[["d5c497ed.b2f268"]]},{"id":"d5c497ed.b2f268","type":"json","z":"975da6d3.ef5828","name":"JSON Parse","property":"payload","action":"","pretty":false,"x":710,"y":240,"wires":[["dace03a9.b3b7b"]]},{"id":"dace03a9.b3b7b","type":"function","z":"975da6d3.ef5828","name":"Function","func":"msg.Model = msg.payload.Agent.Model;\nmsg.Version = msg.payload.Agent.Version;\nmsg.Time = msg.payload.Agent.Time;\nmsg.JSONVersion = msg.payload.Agent.JSONVer;\nmsg.SerialNumber = msg.payload.Agent.SerialNumber;\n\ntry{msg.Voltage = msg.payload.GlobalMeasure.Voltage}\n catch (err1) {msg.Voltage = 0;}\ntry{msg.Frequency = msg.payload.GlobalMeasure.Frequency}\n catch (err2) {msg.Frequency = 0;}\ntry{msg.TotalCurrent = msg.payload.GlobalMeasure.TotalCurrent / 1000}\n catch (err3) {msg.TotalCurrent = 0;}\ntry{msg.OverallPowerFactor = msg.payload.GlobalMeasure.OverallPowerFactor}\n catch (err4) {msg.OverallPowerFactor = 0;}\ntry{msg.TotalLoad = msg.payload.GlobalMeasure.TotalLoad}\n catch (err5) {msg.TotalLoad = 0;}\n\nmsg.O1_State = msg.payload.Outputs[0].State;\nmsg.O2_State = msg.payload.Outputs[1].State;\nmsg.O3_State = msg.payload.Outputs[2].State;\nmsg.O4_State = msg.payload.Outputs[3].State;\n\nif(msg.O1_State) msg.O1_Color = \"#09ef28\";\n else msg.O1_Color = \"Orange\";\nif(msg.O2_State) msg.O2_Color = \"#09ef28\";\n else msg.O2_Color = \"Orange\";\nif(msg.O3_State) msg.O3_Color = \"#09ef28\";\n else msg.O3_Color = \"Orange\";\nif(msg.O4_State) msg.O4_Color = \"#09ef28\";\n else msg.O4_Color = \"Orange\";\n\nreturn msg;","outputs":1,"noerr":0,"x":860,"y":240,"wires":[["dbc8fed1.abea8"]]},{"id":"9de57726.41e428","type":"ui_text","z":"975da6d3.ef5828","group":"18d78784.cb4a68","order":1,"width":0,"height":0,"name":"NETIO model","label":"NETIO Model: ","format":"{{msg.Model}}","layout":"row-center","x":660,"y":360,"wires":[]},{"id":"7e2dd072.8ee0c","type":"ui_text","z":"975da6d3.ef5828","group":"18d78784.cb4a68","order":2,"width":0,"height":0,"name":"","label":"Model Firmware","format":"{{msg.Version}}","layout":"row-center","x":660,"y":400,"wires":[]},{"id":"fbfb6430.6b69c8","type":"ui_text","z":"975da6d3.ef5828","group":"18d78784.cb4a68","order":3,"width":0,"height":0,"name":"Serial Number","label":"Serial Number","format":"{{msg.SerialNumber}}","layout":"col-center","x":660,"y":440,"wires":[]},{"id":"98b5ca3b.2dc388","type":"ui_text","z":"975da6d3.ef5828","group":"18d78784.cb4a68","order":4,"width":0,"height":0,"name":"JSON Version","label":"JSON Version:","format":"{{msg.JSONVersion}}","layout":"row-center","x":660,"y":480,"wires":[]},{"id":"65c84a0d.a7e2b4","type":"ui_gauge","z":"975da6d3.ef5828","name":"Current (Device)","group":"68c5707d.6c3d9","order":4,"width":0,"height":0,"gtype":"gage","title":"Current ({{msg.Model}})","label":"A","format":"{{msg.TotalCurrent}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":300,"y":400,"wires":[]},{"id":"88acbaec.19dc38","type":"ui_gauge","z":"975da6d3.ef5828","name":"Overall Power Factor","group":"68c5707d.6c3d9","order":3,"width":0,"height":0,"gtype":"gage","title":"Overall Power Factor","label":"","format":"{{msg.OverallPowerFactor}}","min":0,"max":"1","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":320,"y":440,"wires":[]},{"id":"5ecedd67.f5e744","type":"ui_gauge","z":"975da6d3.ef5828","name":"Voltage","group":"68c5707d.6c3d9","order":6,"width":0,"height":0,"gtype":"gage","title":"Voltage","label":"V","format":"{{msg.Voltage}}","min":0,"max":"500","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":280,"y":480,"wires":[]},{"id":"a876e2fc.8165c","type":"ui_gauge","z":"975da6d3.ef5828","name":"Frequency","group":"68c5707d.6c3d9","order":5,"width":0,"height":0,"gtype":"gage","title":"Frequency","label":"Hz","format":"{{msg.Frequency}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":290,"y":520,"wires":[]},{"id":"a473d6a5.f2b0b8","type":"ui_chart","z":"975da6d3.ef5828","name":"Current Chart (Device)","group":"68c5707d.6c3d9","order":2,"width":0,"height":0,"label":"Current ","chartType":"line","legend":"true","xformat":"HH:mm","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"32","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"60","cutout":0,"useOneColor":false,"colors":["#ff0000","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#0000a0","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":2,"x":320,"y":360,"wires":[[],[]]},{"id":"1778a837.e3bbd8","type":"link in","z":"975da6d3.ef5828","name":"","links":["dbc8fed1.abea8"],"x":75,"y":400,"wires":[["65c84a0d.a7e2b4","88acbaec.19dc38","5ecedd67.f5e744","a876e2fc.8165c","4444f816.c31ae8","8059e4a1.a59af8"]]},{"id":"dbc8fed1.abea8","type":"link out","z":"975da6d3.ef5828","name":"Link","links":["1778a837.e3bbd8","55acf130.085bc","948f8eb0.eaece"],"x":955,"y":240,"wires":[]},{"id":"948f8eb0.eaece","type":"link in","z":"975da6d3.ef5828","name":"","links":["dbc8fed1.abea8"],"x":495,"y":440,"wires":[["9de57726.41e428","7e2dd072.8ee0c","fbfb6430.6b69c8","98b5ca3b.2dc388"]]},{"id":"4444f816.c31ae8","type":"function","z":"975da6d3.ef5828","name":"Current Chart","func":"msg.payload = msg.TotalCurrent;\nreturn msg;","outputs":1,"noerr":0,"x":160,"y":300,"wires":[["a473d6a5.f2b0b8"]]},{"id":"8059e4a1.a59af8","type":"ui_gauge","z":"975da6d3.ef5828","name":"","group":"68c5707d.6c3d9","order":1,"width":0,"height":0,"gtype":"gage","title":"Total Load","label":"W","format":"{{msg.TotalLoad}}","min":0,"max":"10000","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":290,"y":560,"wires":[]},{"id":"32e331ee.c9bbae","type":"inject","z":"975da6d3.ef5828","name":"1 Second Repeat","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":"1","x":310,"y":240,"wires":[["dbcdd1af.46e12"]]},{"id":"85d9d86f.40cf08","type":"ui_button","z":"975da6d3.ef5828","name":"Output 1 = ON","group":"b2f8cb86.211008","order":1,"width":0,"height":0,"passthru":false,"label":"Output 1 = ON","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"Outputs\":[{\"ID\":1,\"Action\":1}]}","payloadType":"json","topic":"","x":100,"y":40,"wires":[["f4918cb2.d44c6"]]},{"id":"f302f7d0.f084b8","type":"ui_button","z":"975da6d3.ef5828","name":"Output 1 = OFF","group":"b2f8cb86.211008","order":2,"width":0,"height":0,"passthru":false,"label":"Output 1 = OFF","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"Outputs\":[{\"ID\":1,\"Action\":0}]}","payloadType":"json","topic":"","x":100,"y":80,"wires":[["f4918cb2.d44c6"]]},{"id":"98ce57cf.9b5d68","type":"ui_button","z":"975da6d3.ef5828","name":"Output 1 = Short ON","group":"b2f8cb86.211008","order":3,"width":0,"height":0,"passthru":false,"label":"Output 1 = Short ON","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"Outputs\":[{\"ID\":1,\"Action\":3}]}","payloadType":"json","topic":"","x":120,"y":120,"wires":[["f4918cb2.d44c6"]]},{"id":"11403ef6.081611","type":"ui_button","z":"975da6d3.ef5828","name":"Output 1 = Short OFF","group":"b2f8cb86.211008","order":4,"width":0,"height":0,"passthru":false,"label":"Output 1 = Short OFF (Restart)","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"Outputs\":[{\"ID\":1,\"Action\":2}]}","payloadType":"json","topic":"","x":120,"y":160,"wires":[["f4918cb2.d44c6"]]},{"id":"d343aab5.c7cae8","type":"ui_button","z":"975da6d3.ef5828","name":"Output 1 = Toggle","group":"b2f8cb86.211008","order":5,"width":0,"height":0,"passthru":false,"label":"Output 1 = Toggle","tooltip":"","color":"","bgcolor":"","icon":"","payload":"{\"Outputs\":[{\"ID\":1,\"Action\":4}]}","payloadType":"json","topic":"","x":110,"y":200,"wires":[["f4918cb2.d44c6"]]},{"id":"55acf130.085bc","type":"link in","z":"975da6d3.ef5828","name":"","links":["dbc8fed1.abea8"],"x":795,"y":420,"wires":[["67407bc3.f785f4","8cf29b7c.af1f58","be0dbcab.c0461","d8cdc9d4.8d20d8"]]},{"id":"67407bc3.f785f4","type":"ui_text","z":"975da6d3.ef5828","group":"9acc7882.489018","order":1,"width":"0","height":"0","name":"O1 State","label":" O1 =","format":" {{msg.O1_State}} ","layout":"row-center","x":920,"y":360,"wires":[]},{"id":"8cf29b7c.af1f58","type":"ui_text","z":"975da6d3.ef5828","group":"9acc7882.489018","order":2,"width":"0","height":"0","name":"O2 State","label":" O2 =","format":" {{msg.O2_State}} ","layout":"row-center","x":920,"y":400,"wires":[]},{"id":"be0dbcab.c0461","type":"ui_text","z":"975da6d3.ef5828","group":"9acc7882.489018","order":3,"width":"0","height":"0","name":"O3 State","label":" O3 =","format":" {{msg.O3_State}} ","layout":"row-center","x":920,"y":440,"wires":[]},{"id":"d8cdc9d4.8d20d8","type":"ui_text","z":"975da6d3.ef5828","group":"9acc7882.489018","order":4,"width":"0","height":"0","name":"O4 State","label":" O4 =","format":" {{msg.O4_State}} ","layout":"row-center","x":920,"y":480,"wires":[]},{"id":"18d78784.cb4a68","type":"ui_group","z":"","name":"Device Status","tab":"3739cc3e.e39c34","order":1,"disp":true,"width":"6","collapse":false},{"id":"68c5707d.6c3d9","type":"ui_group","z":"","name":"Device Management","tab":"3739cc3e.e39c34","order":4,"disp":true,"width":"6","collapse":false},{"id":"b2f8cb86.211008","type":"ui_group","z":"","name":"Control Output 1","tab":"3739cc3e.e39c34","order":2,"disp":true,"width":"6","collapse":false},{"id":"9acc7882.489018","type":"ui_group","z":"","name":"O1 - O4 Output States","tab":"3739cc3e.e39c34","order":3,"disp":true,"width":"6","collapse":false},{"id":"3739cc3e.e39c34","type":"ui_tab","z":"","name":"NETIO AN30 (REST JSON)","icon":"dashboard","order":2,"disabled":false,"hidden":false}]