[{"id":"38b7bc1d.686704","type":"http response","z":"f90096c5.9db488","name":"","x":477,"y":387,"wires":[]},{"id":"eb3f53ec.7ccc8","type":"template","z":"f90096c5.9db488","name":"page","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"\n \n \n

Camera: {{req.query.camera}}

\n

Test Value 2: {{req.query.query2}}

\n

Test Value 3: {{req.query.query3}}

\n

Active: {{req.query.active}}

\n \n","x":357,"y":387,"wires":[["38b7bc1d.686704"]]},{"id":"679c2568.c1aa9c","type":"http in","z":"f90096c5.9db488","name":"Webhook with URL Query","url":"/as-webhook/","method":"get","upload":false,"swaggerDoc":"","x":162,"y":427,"wires":[["eb3f53ec.7ccc8","d47269ed.fe6118"]]},{"id":"bedc0285.722dd","type":"switch","z":"f90096c5.9db488","name":"camera ?","property":"payload.camera","propertyType":"msg","rules":[{"t":"eq","v":"frontdoor","vt":"str"},{"t":"eq","v":"garden","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":329,"y":602,"wires":[["376ebc65.1998a4"],["7603a678.5fc058"]]},{"id":"d47269ed.fe6118","type":"function","z":"f90096c5.9db488","name":"extract query","func":"msg.payload = msg.req.query;\nreturn msg;","outputs":1,"noerr":0,"x":175,"y":602,"wires":[["bedc0285.722dd"]]},{"id":"376ebc65.1998a4","type":"switch","z":"f90096c5.9db488","name":"audioalarm ?","property":"payload.active","propertyType":"msg","rules":[{"t":"eq","v":"6","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":363,"y":524,"wires":[["fca0cfae.c1705","c6c19df0.ee28a"],["65dab8ee.aa7238","3d1d34e1.aeeb0c"]]},{"id":"7603a678.5fc058","type":"switch","z":"f90096c5.9db488","name":"audioalarm ?","property":"payload.active","propertyType":"msg","rules":[{"t":"eq","v":"6","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":362,"y":692,"wires":[["18929952.bcfe97","c46814a1.8c1bc8"],["92257593.958ee8","bbbd52a0.3141"]]},{"id":"fca0cfae.c1705","type":"http request","z":"f90096c5.9db488","name":"Scan & Rec","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.116/param.cgi?cmd=manualrec&-act=on&-time=60&cmd=preset&-act=goto&-number=2&-usr=admin&-pwd=instar","tls":"","proxy":"","authType":"","x":544,"y":468,"wires":[[]]},{"id":"c6c19df0.ee28a","type":"delay","z":"f90096c5.9db488","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":533,"y":507,"wires":[["76025a85.494b24"]]},{"id":"76025a85.494b24","type":"http request","z":"f90096c5.9db488","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.116/param.cgi?cmd=manualrec&-act=off&cmd=preset&-act=goto&-number=0&-usr=admin&-pwd=instar","tls":"","proxy":"","authType":"","x":683,"y":507,"wires":[[]]},{"id":"65dab8ee.aa7238","type":"http request","z":"f90096c5.9db488","name":"Scan & Rec","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.117/param.cgi?cmd=manualrec&-act=on&-time=60&cmd=preset&-act=goto&-number=1&-usr=admin&-pwd=instar","tls":"","proxy":"","authType":"","x":539,"y":584,"wires":[[]]},{"id":"c46814a1.8c1bc8","type":"http request","z":"f90096c5.9db488","name":"Scan & Rec","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.117/param.cgi?cmd=manualrec&-act=on&-time=60&cmd=preset&-act=goto&-number=2&-number=2&-usr=admin&-pwd=instar","tls":"","proxy":"","authType":"","x":537,"y":631,"wires":[[]]},{"id":"18929952.bcfe97","type":"delay","z":"f90096c5.9db488","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":527,"y":671,"wires":[["43241b40.7acd44"]]},{"id":"43241b40.7acd44","type":"http request","z":"f90096c5.9db488","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.117/param.cgi?cmd=manualrec&-act=off&cmd=preset&-act=goto&-number=0&-usr=admin&-pwd=instar","tls":"","proxy":"","authType":"","x":677,"y":671,"wires":[[]]},{"id":"92257593.958ee8","type":"http request","z":"f90096c5.9db488","name":"Scan & Rec","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.116/param.cgi?cmd=manualrec&-act=on&-time=60&cmd=preset&-act=goto&-number=1&-usr=admin&-pwd=instar","tls":"","proxy":"","authType":"","x":534,"y":748,"wires":[[]]},{"id":"b8674bf2.144f38","type":"http request","z":"f90096c5.9db488","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.48:1880/as-webhook/?camera={{{payload.camera}}}&active={{{payload.active}}}","tls":"","proxy":"","authType":"","x":450,"y":820,"wires":[[]]},{"id":"1ac8f717.51b929","type":"inject","z":"f90096c5.9db488","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"","x":138,"y":820,"wires":[["fd8184be.5f5088"]]},{"id":"fd8184be.5f5088","type":"function","z":"f90096c5.9db488","name":"Req Params","func":"// msg.payload = {\"camera\": \"frontdoor\", \"active\": \"6\"};\nmsg.payload = {\"camera\": \"garden\", \"active\": \"6\"};\nreturn msg;","outputs":1,"noerr":0,"x":280,"y":820,"wires":[["b8674bf2.144f38"]]},{"id":"a73743e8.d74d3","type":"comment","z":"f90096c5.9db488","name":"Inject to test Webhook","info":"","x":160,"y":780,"wires":[]},{"id":"3d1d34e1.aeeb0c","type":"delay","z":"f90096c5.9db488","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":531,"y":546,"wires":[["59d0364c.5ea018"]]},{"id":"59d0364c.5ea018","type":"http request","z":"f90096c5.9db488","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.117/param.cgi?cmd=manualrec&-act=off&cmd=preset&-act=goto&-number=0&-usr=admin&-pwd=instar","tls":"","proxy":"","authType":"","x":681,"y":546,"wires":[[]]},{"id":"bbbd52a0.3141","type":"delay","z":"f90096c5.9db488","name":"","pauseType":"delay","timeout":"15","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":527,"y":708,"wires":[["bdea17d9.a92318"]]},{"id":"bdea17d9.a92318","type":"http request","z":"f90096c5.9db488","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.2.116/param.cgi?cmd=manualrec&-act=off&cmd=preset&-act=goto&-number=0&-usr=admin&-pwd=instar","tls":"","proxy":"","authType":"","x":677,"y":708,"wires":[[]]}]