[{"id":"2053400c.f047b","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"58c3d276.b38dcc","type":"schedex","z":"2053400c.f047b","name":"","suspended":false,"lat":"-23.52713","lon":"-46.86464","ontime":"","ontopic":"","onpayload":"Ligado","onoffset":0,"onrandomoffset":0,"offtime":"","offtopic":"","offpayload":"Desligado","offoffset":0,"offrandomoffset":0,"mon":false,"tue":false,"wed":false,"thu":false,"fri":false,"sat":false,"sun":false,"x":410,"y":240,"wires":[["eb0c124c.fb09f","21902f6d.c3c76"]]},{"id":"eb0c124c.fb09f","type":"debug","z":"2053400c.f047b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":550,"y":300,"wires":[]},{"id":"72124184.499e8","type":"inject","z":"2053400c.f047b","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":true,"onceDelay":"5","x":90,"y":240,"wires":[["444933b.b0d42cc"]]},{"id":"444933b.b0d42cc","type":"function","z":"2053400c.f047b","name":"controle liga","func":"msg.payload = {\n ontime : global.get(\"ComLig1\"),\n //offtime: \"14:41\",\n mon: global.get(\"ComLig1SEG\"),\n tue: global.get(\"ComLig1TER\"),\n wed: global.get(\"ComLig1QUA\"),\n thu: global.get(\"ComLig1QUI\"),\n fri: global.get(\"ComLig1SEX\"),\n sat: global.get(\"ComLig1SAB\"),\n sun: global.get(\"ComLig1DOM\"),\n \n};\nreturn msg;","outputs":1,"noerr":0,"x":270,"y":240,"wires":[["58c3d276.b38dcc"]]},{"id":"e03e4b2c.f10728","type":"file","z":"2053400c.f047b","name":"","filename":"C:/Users/elite/Desktop/teste.txt","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":490,"y":60,"wires":[[]]},{"id":"4009a0c9.cfccf","type":"function","z":"2053400c.f047b","name":"controle desliga irrigação","func":"msg.payload = {\n offtime : global.get(\"ComDLig1\"),\n //offtime: \"14:41\",\n mon: global.get(\"ComDLig1SEG\"),\n tue: global.get(\"ComDLig1TER\"),\n wed: global.get(\"ComDLig1QUA\"),\n thu: global.get(\"ComDLig1QUI\"),\n fri: global.get(\"ComDLig1SEX\"),\n sat: global.get(\"ComDLig1SAB\"),\n sun: global.get(\"ComDLig1DOM\"),\n \n};\nreturn msg;","outputs":1,"noerr":0,"x":310,"y":340,"wires":[["e7379c2.c9cba6"]]},{"id":"e7379c2.c9cba6","type":"schedex","z":"2053400c.f047b","name":"","suspended":false,"lat":"-23.52713","lon":"-46.86464","ontime":"","ontopic":"","onpayload":"Ligado","onoffset":0,"onrandomoffset":0,"offtime":"","offtopic":"","offpayload":"Desligado","offoffset":0,"offrandomoffset":0,"mon":false,"tue":false,"wed":false,"thu":false,"fri":false,"sat":false,"sun":false,"x":530,"y":340,"wires":[["6152685e.efda68","9d1fee7a.ff978"]]},{"id":"6152685e.efda68","type":"debug","z":"2053400c.f047b","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":550,"y":420,"wires":[]},{"id":"f6b0a733.2c5198","type":"inject","z":"2053400c.f047b","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":true,"onceDelay":"5","x":90,"y":340,"wires":[["4009a0c9.cfccf"]]},{"id":"21902f6d.c3c76","type":"function","z":"2053400c.f047b","name":"","func":"global.set(\"CRl1\",msg.payload);\nmsg.label = msg.payload;\nmsg.background = \"green\";\nreturn msg;","outputs":1,"noerr":0,"x":630,"y":240,"wires":[["2d8256e1.22acba"]]},{"id":"2d8256e1.22acba","type":"ui_button","z":"2053400c.f047b","name":"","group":"a998aff7.d1ff3","order":9,"width":"6","height":"1","passthru":false,"label":"{{msg.label}}","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":790,"y":260,"wires":[[]]},{"id":"9d1fee7a.ff978","type":"function","z":"2053400c.f047b","name":"","func":"global.set(\"CRd1\",msg.payload);\nmsg.label = msg.payload;\nmsg.background = \"red\";\nreturn msg;","outputs":1,"noerr":0,"x":690,"y":340,"wires":[["2d8256e1.22acba"]]},{"id":"8fa52e5b.d61088","type":"ui_template","z":"2053400c.f047b","group":"90c0f6a8.f89ef8","name":"Clock Toolbar","order":2,"width":"0","height":"0","format":"<script id=\"titleScript\" type=\"text/javascript\">\n\n$(function() {\n if($('.md-toolbar-tools').length != 0){\n loadClock();\n }else setTimeout(loadClock, 500)\n});\n\nfunction loadClock(){\n $('#clock').remove();\n var toolbar = $('.md-toolbar-tools');\n \n var div = $('<div/>');\n var p = $('<p/ id=\"clock\">');\n \n div.append(p);\n div[0].style.margin = '5px 5px 5px auto';\n toolbar.append(div);\n\n function displayTitle(lh) {\n p.text(lh); \n }\n \n function upTime() {\n var d = new Date();\n p.text(d.toLocaleString());\n }\n\n if(document.clockInterval){ \n clearInterval(document.clockInterval);\n document.clockInterval = null;\n }\n \n document.clockInterval = setInterval(upTime,1000);\n}\n\n</script>","storeOutMessages":false,"fwdInMessages":false,"templateScope":"global","x":140,"y":500,"wires":[[]]},{"id":"9cd0578.f66c228","type":"function","z":"2053400c.f047b","name":"","func":"var dateNow = new Date();\nvar data = dateNow.toLocaleTimeString();\nmsg.payload = data;\nmsg.label = data;\n\nreturn msg;","outputs":1,"noerr":0,"x":590,"y":500,"wires":[["60ca6bbc.8b936c"]]},{"id":"e31929.fba49ed8","type":"inject","z":"2053400c.f047b","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":390,"y":500,"wires":[["9cd0578.f66c228"]]},{"id":"60ca6bbc.8b936c","type":"ui_button","z":"2053400c.f047b","name":"","group":"a998aff7.d1ff3","order":9,"width":"6","height":"1","passthru":false,"label":"{{msg.label}}","tooltip":"","color":"","bgcolor":"{{msg.background}}","icon":"","payload":"","payloadType":"str","topic":"","x":770,"y":500,"wires":[[]]},{"id":"76f79df9.2274f4","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"eee3d2b5.93322","type":"ui_text_input","z":"76f79df9.2274f4","name":"","label":"Desligar","tooltip":"","group":"95bcad95.24da","order":8,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"","x":500,"y":560,"wires":[["f03f4187.32516"]]},{"id":"f03f4187.32516","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComDLig1\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":560,"wires":[["25438533.b34cca"]]},{"id":"5a1eadd5.ac7b94","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HD\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":560,"wires":[["eee3d2b5.93322"]]},{"id":"5dce295d.a27558","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Terça","tooltip":"","place":"Select option","group":"95bcad95.24da","order":2,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":490,"y":640,"wires":[["d1075c26.16435"]]},{"id":"b15de105.224da","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Quarta","tooltip":"","place":"Select option","group":"95bcad95.24da","order":3,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":500,"y":680,"wires":[["6a9d6d11.389564"]]},{"id":"69d8790b.2db5e8","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Quinta","tooltip":"","place":"Select option","group":"95bcad95.24da","order":4,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":490,"y":720,"wires":[["58ca85c7.4907bc"]]},{"id":"c2493c35.d7478","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Sexta","tooltip":"","place":"Select option","group":"95bcad95.24da","order":5,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":490,"y":760,"wires":[["c50c2bee.f2a7d8"]]},{"id":"430a09d1.f32818","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Sabado","tooltip":"","place":"Select option","group":"95bcad95.24da","order":6,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":500,"y":800,"wires":[["8a18e830.31f8b8"]]},{"id":"b6f3706f.a917","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Domingo","tooltip":"","place":"Select option","group":"95bcad95.24da","order":7,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":500,"y":840,"wires":[["ae96b1c3.5614a"]]},{"id":"bf9a2a95.06b9c8","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Segunda","tooltip":"","place":"Select option","group":"95bcad95.24da","order":1,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":500,"y":600,"wires":[["33cbd90d.5946e6"]]},{"id":"33cbd90d.5946e6","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComDLig1SEG\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":600,"wires":[["25438533.b34cca"]]},{"id":"d1075c26.16435","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComDLig1TER\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":640,"wires":[["25438533.b34cca"]]},{"id":"6a9d6d11.389564","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComDLig1QUA\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":680,"wires":[["25438533.b34cca"]]},{"id":"58ca85c7.4907bc","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComDLig1QUI\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":720,"wires":[["25438533.b34cca"]]},{"id":"c50c2bee.f2a7d8","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComDLig1SEX\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":760,"wires":[["25438533.b34cca"]]},{"id":"8a18e830.31f8b8","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComDLig1SAB\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":800,"wires":[["25438533.b34cca"]]},{"id":"ae96b1c3.5614a","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComDLig1DOM\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":840,"wires":[["25438533.b34cca"]]},{"id":"7a382d7a.f7e254","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabDSeg\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":600,"wires":[["bf9a2a95.06b9c8"]]},{"id":"c242bdc5.0618","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabDTer\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":640,"wires":[["5dce295d.a27558"]]},{"id":"46c457fe.367238","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabDQua\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":680,"wires":[["b15de105.224da"]]},{"id":"b0d54e68.f6f6b","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabDqui\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":720,"wires":[["69d8790b.2db5e8"]]},{"id":"c5095a66.6b6848","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabDSex\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":760,"wires":[["c2493c35.d7478"]]},{"id":"e942af39.53c12","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabDSab\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":800,"wires":[["430a09d1.f32818"]]},{"id":"f5c99fb3.0f304","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabDDom\nreturn msg;","outputs":1,"noerr":0,"x":370,"y":840,"wires":[["b6f3706f.a917"]]},{"id":"915ddc41.b9aad","type":"inject","z":"76f79df9.2274f4","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":"3","x":70,"y":920,"wires":[["87cd4704.ce6b78"]]},{"id":"87cd4704.ce6b78","type":"file in","z":"76f79df9.2274f4","name":"","filename":"testeD.json","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":70,"y":820,"wires":[["856e1ff5.9aabb"]]},{"id":"f8336bdd.4fc478","type":"debug","z":"76f79df9.2274f4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":730,"y":880,"wires":[]},{"id":"856e1ff5.9aabb","type":"json","z":"76f79df9.2274f4","name":"","property":"payload","action":"","pretty":false,"x":50,"y":680,"wires":[["7a382d7a.f7e254","c242bdc5.0618","46c457fe.367238","b0d54e68.f6f6b","c5095a66.6b6848","e942af39.53c12","f5c99fb3.0f304","f8336bdd.4fc478","5a1eadd5.ac7b94"]]},{"id":"3e05ec6f.b4aa44","type":"inject","z":"76f79df9.2274f4","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":"3","x":1024,"y":440,"wires":[["c84ebbb2.049e08"]]},{"id":"c84ebbb2.049e08","type":"file in","z":"76f79df9.2274f4","name":"","filename":"teste.json","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":954,"y":360,"wires":[["ec218c4f.01c9e"]]},{"id":"ec218c4f.01c9e","type":"json","z":"76f79df9.2274f4","name":"","property":"payload","action":"","pretty":false,"x":830,"y":60,"wires":[["2ead29e2.892086","9c213ce.eadd7c","507c2f34.2ef89","a15b359c.bc35b8","34b9738c.0769bc","430781ae.8813","df331f51.3c7a5","d079dc98.c99eb","8dd3b305.a51b"]]},{"id":"541cc961.78aa18","type":"ui_text_input","z":"76f79df9.2274f4","name":"","label":"Ligar","tooltip":"","group":"a998aff7.d1ff3","order":8,"width":0,"height":0,"passthru":false,"mode":"text","delay":"0","topic":"","x":490,"y":160,"wires":[["ed23efc8.a83f6"]]},{"id":"34a3711d.83cb9e","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Terça","tooltip":"","place":"Select option","group":"a998aff7.d1ff3","order":2,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":490,"y":260,"wires":[["cf296f8b.6c5b2"]]},{"id":"bf01fcca.c3629","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Quarta","tooltip":"","place":"Select option","group":"a998aff7.d1ff3","order":3,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":490,"y":300,"wires":[["ad751b0b.e8d9e8"]]},{"id":"a104b855.abdc38","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Quinta","tooltip":"","place":"Select option","group":"a998aff7.d1ff3","order":4,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":490,"y":340,"wires":[["4c77e25d.0ad7cc"]]},{"id":"fd1833c6.3dd8b","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Sexta","tooltip":"","place":"Select option","group":"a998aff7.d1ff3","order":5,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":490,"y":380,"wires":[["bad844b7.fac298"]]},{"id":"fa76c34c.da571","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Sabado","tooltip":"","place":"Select option","group":"a998aff7.d1ff3","order":6,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":500,"y":420,"wires":[["761c5b01.f0f0c4"]]},{"id":"9db47536.1757e8","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Domingo","tooltip":"","place":"Select option","group":"a998aff7.d1ff3","order":7,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":500,"y":460,"wires":[["45b24b13.a6b364"]]},{"id":"6efa0413.02094c","type":"ui_dropdown","z":"76f79df9.2274f4","name":"","label":"Segunda","tooltip":"","place":"Select option","group":"a998aff7.d1ff3","order":1,"width":0,"height":0,"passthru":true,"options":[{"label":"Ativa","value":true,"type":"bool"},{"label":"Desativa","value":false,"type":"bool"}],"payload":"","topic":"","x":500,"y":200,"wires":[["e797476a.75bf58"]]},{"id":"ed23efc8.a83f6","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComLig1\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":120,"wires":[["319a7eb.a1fc982"]]},{"id":"e797476a.75bf58","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComLig1SEG\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":180,"wires":[["319a7eb.a1fc982"]]},{"id":"cf296f8b.6c5b2","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComLig1TER\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":236,"wires":[["319a7eb.a1fc982"]]},{"id":"ad751b0b.e8d9e8","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComLig1QUA\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":276,"wires":[["319a7eb.a1fc982"]]},{"id":"4c77e25d.0ad7cc","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComLig1QUI\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":316,"wires":[["319a7eb.a1fc982"]]},{"id":"bad844b7.fac298","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComLig1SEX\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":356,"wires":[["319a7eb.a1fc982"]]},{"id":"761c5b01.f0f0c4","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComLig1SAB\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":400,"wires":[["319a7eb.a1fc982"]]},{"id":"45b24b13.a6b364","type":"function","z":"76f79df9.2274f4","name":"","func":"global.set(\"ComLig1DOM\",msg.payload)\nreturn msg;","outputs":1,"noerr":0,"x":290,"y":440,"wires":[["319a7eb.a1fc982"]]},{"id":"4cfabd38.67c324","type":"file","z":"76f79df9.2274f4","name":"","filename":"teste.json","appendNewline":true,"createDir":true,"overwriteFile":"true","encoding":"none","x":520,"y":20,"wires":[[]]},{"id":"f9a73929.a19468","type":"function","z":"76f79df9.2274f4","name":"","func":"let hl = {};\nlet a = {};\nlet b = {};\nlet c = {};\nlet d = {};\nlet e = {};\nlet f = {};\nlet g = {};\n\nhl.payload = global.get(\"ComLig1\");\na.payload = global.get(\"ComLig1SEG\");\nb.payload = global.get(\"ComLig1TER\");\nc.payload = global.get(\"ComLig1QUA\");\nd.payload = global.get(\"ComLig1QUI\");\ne.payload = global.get(\"ComLig1SEX\");\nf.payload = global.get(\"ComLig1SAB\");\ng.payload = global.get(\"ComLig1DOM\");\n\nmsg.payload =\n hl.payload + \",\"+\n a.payload + \",\"+\n b.payload + \",\"+\n c.payload + \",\"+\n d.payload + \",\"+\n e.payload + \",\"+\n f.payload + \",\"+\n g.payload \nreturn msg;\n","outputs":1,"noerr":0,"x":270,"y":20,"wires":[["4cfabd38.67c324"]]},{"id":"27d19925.f0bdb6","type":"inject","z":"76f79df9.2274f4","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":"2","x":90,"y":60,"wires":[["319a7eb.a1fc982"]]},{"id":"2ead29e2.892086","type":"debug","z":"76f79df9.2274f4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1090,"y":60,"wires":[]},{"id":"319a7eb.a1fc982","type":"function","z":"76f79df9.2274f4","name":"","func":"let hl = {};\nlet a = {};\nlet b = {};\nlet c = {};\nlet d = {};\nlet e = {};\nlet f = {};\nlet g = {};\n\nhl.payload = global.get(\"ComLig1\");\na.payload = global.get(\"ComLig1SEG\");\nb.payload = global.get(\"ComLig1TER\");\nc.payload = global.get(\"ComLig1QUA\");\nd.payload = global.get(\"ComLig1QUI\");\ne.payload = global.get(\"ComLig1SEX\");\nf.payload = global.get(\"ComLig1SAB\");\ng.payload = global.get(\"ComLig1DOM\");\n\nmsg.payload ={\n \"HL\": hl.payload,\n \"HabSeg\" :a.payload ,\n \"HabTer\" :b.payload ,\n \"HabQua\" :c.payload ,\n \"Habqui\" :d.payload ,\n \"HabSex\" :e.payload ,\n \"HabSab\" :f.payload ,\n \"HabDom\" :g.payload ,\n }\nreturn msg;\n","outputs":1,"noerr":0,"x":510,"y":60,"wires":[["4cfabd38.67c324"]]},{"id":"9c213ce.eadd7c","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HL\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":100,"wires":[["541cc961.78aa18"]]},{"id":"507c2f34.2ef89","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabSeg\nreturn msg;","outputs":1,"noerr":0,"x":678,"y":236,"wires":[["6efa0413.02094c"]]},{"id":"a15b359c.bc35b8","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabTer\nreturn msg;","outputs":1,"noerr":0,"x":678,"y":276,"wires":[["34a3711d.83cb9e"]]},{"id":"34b9738c.0769bc","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabQua\nreturn msg;","outputs":1,"noerr":0,"x":678,"y":316,"wires":[["bf01fcca.c3629"]]},{"id":"430781ae.8813","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.Habqui\nreturn msg;","outputs":1,"noerr":0,"x":678,"y":356,"wires":[["a104b855.abdc38"]]},{"id":"df331f51.3c7a5","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabSex\nreturn msg;","outputs":1,"noerr":0,"x":678,"y":396,"wires":[["fd1833c6.3dd8b"]]},{"id":"d079dc98.c99eb","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabSab\nreturn msg;","outputs":1,"noerr":0,"x":678,"y":436,"wires":[["fa76c34c.da571"]]},{"id":"8dd3b305.a51b","type":"function","z":"76f79df9.2274f4","name":"","func":"msg.payload = msg.payload.HabDom\nreturn msg;","outputs":1,"noerr":0,"x":678,"y":476,"wires":[["9db47536.1757e8"]]},{"id":"49e60cab.907ea4","type":"inject","z":"76f79df9.2274f4","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":"2","x":950,"y":860,"wires":[["25438533.b34cca"]]},{"id":"25438533.b34cca","type":"function","z":"76f79df9.2274f4","name":"","func":"let hl = {};\nlet a = {};\nlet b = {};\nlet c = {};\nlet d = {};\nlet e = {};\nlet f = {};\nlet g = {};\n\nhl.payload = global.get(\"ComDLig1\");\na.payload = global.get(\"ComDLig1SEG\");\nb.payload = global.get(\"ComDLig1TER\");\nc.payload = global.get(\"ComDLig1QUA\");\nd.payload = global.get(\"ComDLig1QUI\");\ne.payload = global.get(\"ComDLig1SEX\");\nf.payload = global.get(\"ComDLig1SAB\");\ng.payload = global.get(\"ComDLig1DOM\");\n\nmsg.payload ={\n \"HD\": hl.payload,\n \"HabDSeg\" :a.payload ,\n \"HabDTer\" :b.payload ,\n \"HabDQua\" :c.payload ,\n \"HabDqui\" :d.payload ,\n \"HabDSex\" :e.payload ,\n \"HabDSab\" :f.payload ,\n \"HabDDom\" :g.payload ,\n }\nreturn msg;\n","outputs":1,"noerr":0,"x":1030,"y":700,"wires":[["94bb85f0.a7b8d8"]]},{"id":"94bb85f0.a7b8d8","type":"file","z":"76f79df9.2274f4","name":"","filename":"testeD.json","appendNewline":true,"createDir":true,"overwriteFile":"true","encoding":"none","x":1170,"y":700,"wires":[[]]},{"id":"a998aff7.d1ff3","type":"ui_group","z":"","name":"Agenda liga irrigação","tab":"24d2d0e5.c779e","disp":true,"width":"6","collapse":false},{"id":"90c0f6a8.f89ef8","type":"ui_group","z":"","name":"hidden_group","tab":"cbb98085.7e858","disp":false,"width":"6","collapse":false},{"id":"95bcad95.24da","type":"ui_group","z":"","name":"Agenda Desliga irrigação","tab":"24d2d0e5.c779e","disp":true,"width":"6","collapse":false},{"id":"24d2d0e5.c779e","type":"ui_tab","z":"","name":"Agendamento","icon":"dashboard","disabled":false,"hidden":false},{"id":"cbb98085.7e858","type":"ui_tab","z":"","name":"Zooland Sys","icon":"home","order":1,"disabled":false,"hidden":false}]