bangnaga

Node-Red Flow Monitoring Arus, Tegangan, Daya Listrik (KWH)

Aug 4th, 2021
1,159
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Untuk Coding Arduino Board ESP8266 listing programnya : https://pastebin.com/Gw6fvgVk
  2.  
  3. [{"id":"cb5c3605.4a7188","type":"tab","label":"CCR","disabled":false,"info":""},{"id":"9a207c10.10271","type":"mqtt in","z":"cb5c3605.4a7188","name":"","topic":"tegangan","qos":"2","datatype":"auto","broker":"7a6f1dd.63ffde4","nl":false,"rap":false,"x":340,"y":120,"wires":[["67db2f80.d22ce"]]},{"id":"67db2f80.d22ce","type":"ui_gauge","z":"cb5c3605.4a7188","name":"","group":"60b59997.680d88","order":1,"width":0,"height":0,"gtype":"gage","title":"Tegangan","label":"Volt","format":"{{value}}","min":0,"max":"500","colors":["#00b500","#e6e600","#ca3838"],"seg1":"25","seg2":"75","x":560,"y":120,"wires":[]},{"id":"cde8e815.636178","type":"mqtt in","z":"cb5c3605.4a7188","name":"","topic":"arus","qos":"2","datatype":"auto","broker":"7a6f1dd.63ffde4","nl":false,"rap":false,"x":410,"y":300,"wires":[["3d2e49b4.ae2d16","997824d4.24f548","dbb5b7e0.299a88"]]},{"id":"3d2e49b4.ae2d16","type":"ui_gauge","z":"cb5c3605.4a7188","name":"","group":"aca3301b.3af1a","order":1,"width":0,"height":0,"gtype":"gage","title":"Arus","label":"Ampere","format":"{{value}}","min":0,"max":"10","colors":["#00b500","#e6e600","#ca3838"],"seg1":"25","seg2":"75","x":630,"y":300,"wires":[]},{"id":"b65d63a0.0922b","type":"ui_gauge","z":"cb5c3605.4a7188","name":"","group":"4a23c8c7.c46d38","order":1,"width":"0","height":"0","gtype":"gage","title":"Intensitas","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1320,"y":680,"wires":[]},{"id":"e364038.8f416","type":"ui_template","z":"cb5c3605.4a7188","group":"4a23c8c7.c46d38","name":"STEP","order":1,"width":"6","height":"3","format":"Step 1 : 2.8 Ampere =>  42 % <BR>\nStep 2 : 3.4 Ampere =>  52 % <BR>\nStep 3 : 4.1 Ampere =>  62 % <BR>\nStep 4 : 5.2 Ampere =>  79 % <BR>\nStep 5 : 6.6 Ampere => 100 %","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":450,"y":680,"wires":[[]]},{"id":"72ae34f0.65d9d4","type":"function","z":"cb5c3605.4a7188","name":"input","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":790,"y":680,"wires":[["c63e0b7c.ec595"]]},{"id":"c63e0b7c.ec595","type":"switch","z":"cb5c3605.4a7188","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"2.8","vt":"num"},{"t":"btwn","v":"2.9","vt":"num","v2":"3.4","v2t":"num"},{"t":"btwn","v":"3.5","vt":"num","v2":"4.1","v2t":"num"},{"t":"btwn","v":"4.2","vt":"num","v2":"5.2","v2t":"num"},{"t":"gte","v":"5.3","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":930,"y":680,"wires":[["4cae4b0d.a33c2c"],["9e8080df.540138"],["45ea1d3.9a016e4"],["f51a055f.3f8f3"],["821f9306.ca24c"]]},{"id":"4cae4b0d.a33c2c","type":"change","z":"cb5c3605.4a7188","name":"Step1","rules":[{"t":"set","p":"payload","pt":"msg","to":"42","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1110,"y":620,"wires":[["b65d63a0.0922b"]]},{"id":"9e8080df.540138","type":"change","z":"cb5c3605.4a7188","name":"Step2","rules":[{"t":"set","p":"payload","pt":"msg","to":"52","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1110,"y":650,"wires":[["b65d63a0.0922b"]]},{"id":"45ea1d3.9a016e4","type":"change","z":"cb5c3605.4a7188","name":"Step3","rules":[{"t":"set","p":"payload","pt":"msg","to":"62","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1110,"y":680,"wires":[["b65d63a0.0922b"]]},{"id":"f51a055f.3f8f3","type":"change","z":"cb5c3605.4a7188","name":"Step4","rules":[{"t":"set","p":"payload","pt":"msg","to":"79","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1110,"y":710,"wires":[["b65d63a0.0922b"]]},{"id":"179bc45f.01046c","type":"ui_slider","z":"cb5c3605.4a7188","name":"","label":"Simulasi Arus","tooltip":"","group":"4a23c8c7.c46d38","order":2,"width":0,"height":0,"passthru":true,"outs":"end","topic":"topic","topicType":"msg","min":"1","max":"6.6","step":"0.1","x":600,"y":680,"wires":[["72ae34f0.65d9d4"]]},{"id":"821f9306.ca24c","type":"change","z":"cb5c3605.4a7188","name":"Step5","rules":[{"t":"set","p":"payload","pt":"msg","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":1110,"y":740,"wires":[["b65d63a0.0922b"]]},{"id":"586bb362.3c1e1c","type":"ui_gauge","z":"cb5c3605.4a7188","name":"","group":"e3a33296.51639","order":1,"width":"0","height":"0","gtype":"gage","title":"Intensitas","label":"%","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":1140,"y":340,"wires":[]},{"id":"997824d4.24f548","type":"function","z":"cb5c3605.4a7188","name":"input","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":630,"y":340,"wires":[["9a51c6b6.ea1188"]]},{"id":"9a51c6b6.ea1188","type":"switch","z":"cb5c3605.4a7188","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"0.5","vt":"num"},{"t":"btwn","v":"0.6","vt":"num","v2":"0.8","v2t":"num"},{"t":"btwn","v":"0.9","vt":"num","v2":"1","v2t":"num"},{"t":"btwn","v":"1.1","vt":"num","v2":"1.5","v2t":"num"},{"t":"gte","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":790,"y":340,"wires":[["e02469c6.3aefb8"],["49f6f867.bcdd28"],["c0f72cd2.8adbe"],["3f68f76d.9365d8"],["14a86bd7.5af6e4"]]},{"id":"e02469c6.3aefb8","type":"change","z":"cb5c3605.4a7188","name":"Step1","rules":[{"t":"set","p":"payload","pt":"msg","to":"42","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":280,"wires":[["586bb362.3c1e1c","2e4293c6.623d2c"]]},{"id":"49f6f867.bcdd28","type":"change","z":"cb5c3605.4a7188","name":"Step2","rules":[{"t":"set","p":"payload","pt":"msg","to":"52","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":320,"wires":[["586bb362.3c1e1c","2e4293c6.623d2c"]]},{"id":"c0f72cd2.8adbe","type":"change","z":"cb5c3605.4a7188","name":"Step3","rules":[{"t":"set","p":"payload","pt":"msg","to":"62","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":360,"wires":[["586bb362.3c1e1c","2e4293c6.623d2c"]]},{"id":"3f68f76d.9365d8","type":"change","z":"cb5c3605.4a7188","name":"Step4","rules":[{"t":"set","p":"payload","pt":"msg","to":"79","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":400,"wires":[["586bb362.3c1e1c","2e4293c6.623d2c"]]},{"id":"14a86bd7.5af6e4","type":"change","z":"cb5c3605.4a7188","name":"Step5","rules":[{"t":"set","p":"payload","pt":"msg","to":"100","tot":"num"}],"action":"","property":"","from":"","to":"","reg":false,"x":990,"y":440,"wires":[["586bb362.3c1e1c","2e4293c6.623d2c"]]},{"id":"8a32208b.df284","type":"ui_template","z":"cb5c3605.4a7188","group":"e3a33296.51639","name":"STEP","order":1,"width":"6","height":"4","format":"Step 1 : 0.5 Ampere =>  42 % <BR>\nStep 2 : 0.8 Ampere =>  52 % <BR>\nStep 3 : 1.0 Ampere =>  62 % <BR>\nStep 4 : 1.5 Ampere =>  79 % <BR>\nStep 5 : 2.0 Ampere => 100 %","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":790,"y":420,"wires":[[]]},{"id":"dbb5b7e0.299a88","type":"ui_chart","z":"cb5c3605.4a7188","name":"","group":"ae0dd877.3aaf58","order":0,"width":0,"height":0,"label":"","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"","ymax":"","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"3600","cutout":0,"useOneColor":false,"useUTC":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"outputs":1,"useDifferentColor":false,"x":630,"y":400,"wires":[[]]},{"id":"a887f170.861a8","type":"change","z":"cb5c3605.4a7188","name":"Suara Step 1","rules":[{"t":"set","p":"payload","pt":"msg","to":"Intensitas Cahaya Lampu PAPI mencapai 42 %","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":280,"wires":[["c72c8667.f66de8","5e2ffc27.c61dd4"]]},{"id":"46105eb7.02be6","type":"change","z":"cb5c3605.4a7188","name":"Suara Step 2","rules":[{"t":"set","p":"payload","pt":"msg","to":"Intensitas Cahaya Lampu PAPI mencapai 52 %","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":320,"wires":[["c72c8667.f66de8","5e2ffc27.c61dd4"]]},{"id":"38323fff.3da4e","type":"change","z":"cb5c3605.4a7188","name":"Suara Step 3","rules":[{"t":"set","p":"payload","pt":"msg","to":"Intensitas Cahaya Lampu PAPI mencapai 62 %","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":360,"wires":[["c72c8667.f66de8","5e2ffc27.c61dd4"]]},{"id":"33fd009c.8ac09","type":"change","z":"cb5c3605.4a7188","name":"Suara Step 4","rules":[{"t":"set","p":"payload","pt":"msg","to":"Intensitas Cahaya Lampu PAPI mencapai 79 %","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":400,"wires":[["c72c8667.f66de8","5e2ffc27.c61dd4"]]},{"id":"edc337c2.d237a8","type":"change","z":"cb5c3605.4a7188","name":"Suara Step 4","rules":[{"t":"set","p":"payload","pt":"msg","to":"Intensitas Cahaya Lampu PAPI mencapai 100 %","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1490,"y":440,"wires":[["c72c8667.f66de8","5e2ffc27.c61dd4"]]},{"id":"5e2ffc27.c61dd4","type":"debug","z":"cb5c3605.4a7188","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1710,"y":360,"wires":[]},{"id":"2e4293c6.623d2c","type":"rbe","z":"cb5c3605.4a7188","name":"report-by-exception","func":"rbei","gap":"","start":"","inout":"in","septopics":true,"property":"payload","x":1250,"y":400,"wires":[["a887f170.861a8","46105eb7.02be6","38323fff.3da4e","33fd009c.8ac09","edc337c2.d237a8"]]},{"id":"c72c8667.f66de8","type":"ui_audio","z":"cb5c3605.4a7188","name":"","group":"4bba9aec.44cea4","voice":"Google Bahasa Indonesia","always":"","x":1720,"y":280,"wires":[]},{"id":"7a6f1dd.63ffde4","type":"mqtt-broker","name":"","broker":"broker.hivemq.com","port":"1883","clientid":"","usetls":false,"compatmode":false,"protocolVersion":"4","keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","birthMsg":{},"closeTopic":"","closeQos":"0","closePayload":"","closeMsg":{},"willTopic":"","willQos":"0","willPayload":"","willMsg":{},"sessionExpiry":""},{"id":"60b59997.680d88","type":"ui_group","name":"Tegangan","tab":"fa86976b.0da8e8","order":1,"disp":true,"width":"6","collapse":false},{"id":"aca3301b.3af1a","type":"ui_group","name":"Arus","tab":"fa86976b.0da8e8","order":2,"disp":true,"width":"6","collapse":false},{"id":"4a23c8c7.c46d38","type":"ui_group","name":"Keterangan","tab":"fa86976b.0da8e8","order":7,"disp":true,"width":"6","collapse":false},{"id":"e3a33296.51639","type":"ui_group","name":"INTENSITAS","tab":"fa86976b.0da8e8","order":3,"disp":true,"width":"6","collapse":false},{"id":"ae0dd877.3aaf58","type":"ui_group","name":"Grafik Arus","tab":"fa86976b.0da8e8","order":8,"disp":true,"width":"12","collapse":false},{"id":"4bba9aec.44cea4","type":"ui_group","name":"Sensor API","tab":"a75e354f.44f5a8","order":5,"disp":true,"width":"6","collapse":false},{"id":"fa86976b.0da8e8","type":"ui_tab","name":"CCR","icon":"dashboard","order":7,"disabled":false,"hidden":false},{"id":"a75e354f.44f5a8","type":"ui_tab","name":"Fire Alarm Monitoring System","icon":"dashboard","order":2,"disabled":false,"hidden":false}]
RAW Paste Data