[{"id":"55a42102.3542c","type":"tab","namespace":"tab","label":"Basic CCU communciation","disabled":false,"info":""},{"id":"c000ed2.00b651","type":"constant","namespace":"variable","z":"55a42102.3542c","name":"Hello World","payload":"Hello World","payloadType":"string","outputonstartup":false,"x":180,"y":100,"wires":[[{"id":"9ac73638.e225c8","port":0}]]},{"id":"9ac73638.e225c8","type":"debug","namespace":"debug","z":"55a42102.3542c","name":"debug result","active":true,"console":"debtab","complete":"payload","loglevel":"info","x":390,"y":100,"wires":[]},{"id":"eb816799.906118","type":"debug","namespace":"debug","z":"55a42102.3542c","name":"debug result should be time and date","active":true,"console":"debtab","complete":"payload","loglevel":"info","x":1140,"y":216,"wires":[]},{"id":"dd5ddb8f.40bc18","type":"xml","namespace":"parsers","z":"55a42102.3542c","name":"convertFromXML","x":720,"y":216,"wires":[[{"id":"3b57f732.eba8a8","port":0}]]},{"id":"3b57f732.eba8a8","type":"function","namespace":"function","z":"55a42102.3542c","name":"ExtractXMLTag","func":"$message['payload'] = $message['payload']['xml']['rsp0'][0]['UNDEFINED'][0];\nreturn $message;","inputs":1,"outputs":1,"noerr":0,"x":910,"y":216,"wires":[[{"id":"eb816799.906118","port":0}]]},{"id":"91789712.5d2d48","type":"comment","namespace":"comment","z":"55a42102.3542c","name":"Trigger an event","info":"Example how to trigger an event manually","x":100,"y":40,"wires":[]},{"id":"47495504.da547c","type":"comment","namespace":"comment","z":"55a42102.3542c","name":"CCU - get simple data","info":"Prereq: ccu address and port in system variable","x":110,"y":156,"wires":[]},{"id":"9bfb3b8d.86f9a8","type":"debug","namespace":"debug","z":"55a42102.3542c","name":"debug result should be the value","active":true,"console":"debtab","complete":"payload","loglevel":"info","x":1150,"y":330,"wires":[]},{"id":"d0f3bd81.ea256","type":"function","namespace":"function","z":"55a42102.3542c","name":"ExtractXMLTag","func":"$message['payload'] = $message['payload']['xml']['rsp0'][0]['UNDEFINED'][0];\nreturn $message;","inputs":1,"outputs":1,"noerr":0,"x":920,"y":330,"wires":[[{"id":"9bfb3b8d.86f9a8","port":0}]]},{"id":"7f178dbe.1e0b94","type":"comment","namespace":"comment","z":"55a42102.3542c","name":"CCU - get SV value","info":"Prereq: ccu ip address and port in system variable\nPrereq: ccu SV Basics.SVIsTravellingUntil exists","x":110,"y":276,"wires":[]},{"id":"1f0f9972.2cf7c7","type":"debug","namespace":"debug","z":"55a42102.3542c","name":"debug result should be true","active":true,"console":"debtab","complete":"payload","loglevel":"info","x":978,"y":456,"wires":[]},{"id":"7d81635e.a9747c","type":"comment","namespace":"comment","z":"55a42102.3542c","name":"CCU - set SV value","info":"Prereq: ccu address and port in system variable\nPrereq: ccu SV Basics.SVIsTravellingUntil exists","x":110,"y":386,"wires":[]},{"id":"fd766615.6ca2b8","type":"debug","namespace":"debug","z":"55a42102.3542c","name":"debug result should be true","active":true,"console":"debtab","complete":"payload","loglevel":"info","x":1095,"y":575,"wires":[]},{"id":"64b35389.edf88c","type":"comment","namespace":"comment","z":"55a42102.3542c","name":"CCU - run program","info":"Prereq: ccu address and port in system varible\nPrereq: ccu program Basics.RUNRedSignal exists","x":112,"y":505,"wires":[]},{"id":"e11652a7.2c20c","type":"function","namespace":"function","z":"55a42102.3542c","name":"ExtractXMLTag","func":"$message['payload'] = $message['payload']['xml']['rsp0'][0]['UNDEFINED'][0];\nreturn $message;","inputs":1,"outputs":1,"noerr":0,"x":870,"y":575,"wires":[[{"id":"fd766615.6ca2b8","port":0}]]},{"id":"446ca0f4.3b1fe","type":"http-request","namespace":"http","z":"55a42102.3542c","name":"httpPost","method":"POST","ret":"txt","url":"","usetls":false,"basicauth":false,"x":540,"y":216,"wires":[[{"id":"dd5ddb8f.40bc18","port":0}]]},{"id":"7e026cd0.d5cc04","type":"function","namespace":"function","z":"55a42102.3542c","name":"GenerateURL","func":"$ip=$hg->getSystemVariable(\"system.CcuIpAddress\");\n$message['url'] = \"http://$ip/Test.exe?\" . $message['payload'];\nreturn $message;","inputs":1,"outputs":1,"noerr":0,"x":360,"y":216,"wires":[[{"id":"446ca0f4.3b1fe","port":0}]]},{"id":"b4b13f1e.0b2ae","type":"constant","namespace":"variable","z":"55a42102.3542c","name":"cmd systemDate","payload":"rsp0=system.Date()","payloadType":"string","outputonstartup":false,"x":170,"y":216,"wires":[[{"id":"7e026cd0.d5cc04","port":0}]]},{"id":"5a693ea7.f830e","type":"xml","namespace":"parsers","z":"55a42102.3542c","name":"convertFromXML","x":720,"y":330,"wires":[[{"id":"d0f3bd81.ea256","port":0}]]},{"id":"dcb751cd.c7ac6","type":"http-request","namespace":"http","z":"55a42102.3542c","name":"httpPost","method":"POST","ret":"txt","url":"","usetls":false,"basicauth":false,"x":530,"y":330,"wires":[[{"id":"5a693ea7.f830e","port":0}]]},{"id":"bf287674.2d8c08","type":"function","namespace":"function","z":"55a42102.3542c","name":"GenerateURL","func":"$ip=$hg->getSystemVariable(\"system.CcuIpAddress\");\n$message['url'] = \"http://$ip/Test.exe?\" . $message['payload'];\nreturn $message;","inputs":1,"outputs":1,"noerr":0,"x":360,"y":330,"wires":[[{"id":"dcb751cd.c7ac6","port":0}]]},{"id":"2457e490.6d8dbc","type":"constant","namespace":"variable","z":"55a42102.3542c","name":"cmd read SV","payload":"rsp0=dom.GetObject(\"Basics.SVIsTravellingUntil\").Variable()","payloadType":"string","outputonstartup":false,"x":160,"y":330,"wires":[[{"id":"bf287674.2d8c08","port":0}]]},{"id":"758ca29b.74b39c","type":"xml","namespace":"parsers","z":"55a42102.3542c","name":"convertFromXML","x":730,"y":456,"wires":[[{"id":"1f0f9972.2cf7c7","port":0}]]},{"id":"75f71184.e03c6","type":"http-request","namespace":"http","z":"55a42102.3542c","name":"httpPost","method":"POST","ret":"txt","url":"","usetls":false,"basicauth":false,"x":540,"y":456,"wires":[[{"id":"758ca29b.74b39c","port":0}]]},{"id":"8982a714.68a5a8","type":"function","namespace":"function","z":"55a42102.3542c","name":"GenerateURL","func":"$ip=$hg->getSystemVariable(\"system.CcuIpAddress\");\n$message['url'] = \"http://$ip/Test.exe?\" . $message['payload'];\nreturn $message;","inputs":1,"outputs":1,"noerr":0,"x":370,"y":456,"wires":[[{"id":"75f71184.e03c6","port":0}]]},{"id":"e6c83235.952d4","type":"constant","namespace":"variable","z":"55a42102.3542c","name":"cmd set SV","payload":"rsp0=dom.GetObject(%22Basics.SVIsTravellingUntil%22).State(\"2019-03-01\")","payloadType":"string","outputonstartup":false,"x":170,"y":456,"wires":[[{"id":"8982a714.68a5a8","port":0}]]},{"id":"dece5afa.8c7298","type":"xml","namespace":"parsers","z":"55a42102.3542c","name":"convertFromXML","x":690,"y":575,"wires":[[{"id":"e11652a7.2c20c","port":0}]]},{"id":"d11486c7.8a3858","type":"http-request","namespace":"http","z":"55a42102.3542c","name":"httpPost","method":"POST","ret":"txt","url":"","usetls":false,"basicauth":false,"x":530,"y":575,"wires":[[{"id":"dece5afa.8c7298","port":0}]]},{"id":"14297438.d3362c","type":"function","namespace":"function","z":"55a42102.3542c","name":"GenerateURL","func":"$ip=$hg->getSystemVariable(\"system.CcuIpAddress\");\n$message['url'] = \"http://$ip/Test.exe?\" . $message['payload'];\nreturn $message;","inputs":1,"outputs":1,"noerr":0,"x":370,"y":575,"wires":[[{"id":"d11486c7.8a3858","port":0}]]},{"id":"e8e2d98.58edc28","type":"constant","namespace":"variable","z":"55a42102.3542c","name":"cmd run program","payload":"rsp0=dom.GetObject(\"Basics.RUNRedSignal\").ProgramExecute()","payloadType":"string","outputonstartup":false,"x":175,"y":575,"wires":[[{"id":"14297438.d3362c","port":0}]]}]