SHARE
TWEET

Untitled

a guest Jun 10th, 2019 3 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"47908ba1.618734","type":"Unifi","z":"283095fd.71481a","name":"Unifi Controller","ip":"172.16.0.100","port":8443,"site":"default","command":"1","x":1734,"y":393,"wires":[[]]},{"id":"6e280225.94c52c","type":"change","z":"283095fd.71481a","name":"Streaming","rules":[{"t":"set","p":"payload","pt":"msg","to":"Streaming","tot":"str"}],"x":648,"y":537,"wires":[["4503569.c6f07a8"]]},{"id":"de1dcf3f.40a81","type":"switch","z":"283095fd.71481a","name":"SpeedCheck","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"499","vt":"num"},{"t":"gte","v":"500","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":476,"y":514,"wires":[["6204cf71.30ab3"],["6e280225.94c52c"],[]]},{"id":"4503569.c6f07a8","type":"change","z":"283095fd.71481a","name":"Reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"reset","tot":"str"}],"x":831,"y":552,"wires":[["37adc254.0a924e"]]},{"id":"6204cf71.30ab3","type":"change","z":"283095fd.71481a","name":"Stalled","rules":[{"t":"set","p":"payload","pt":"msg","to":"Stalled","tot":"str"}],"x":629,"y":500,"wires":[["37adc254.0a924e"]]},{"id":"7c082235.3dce0c","type":"split","z":"283095fd.71481a","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":970.5,"y":437,"wires":[["de1dcf3f.40a81"]]},{"id":"37adc254.0a924e","type":"counter","z":"283095fd.71481a","name":"","init":"1","step":"1","lower":"","upper":"5","mode":"increment","outputs":2,"x":832.5,"y":500,"wires":[["4c9c572e.8571f8","34e25138.d7838e"],[]]},{"id":"24a058de.e69a68","type":"inject","z":"283095fd.71481a","name":"Reset on Deploy","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":631,"y":579,"wires":[["4503569.c6f07a8"]]},{"id":"fed565db.b31848","type":"bigsplitter","z":"283095fd.71481a","name":"","property":"payload","x":834.5,"y":435,"wires":[["7c082235.3dce0c"],[]]},{"id":"4c9c572e.8571f8","type":"switch","z":"283095fd.71481a","name":"Limit Reached","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":1010,"y":530,"wires":[["34e25138.d7838e","df45be19.1a806"]]},{"id":"e47860ac.7d9e7","type":"JSONFilter","z":"283095fd.71481a","name":"Filter rx rate","fields":"rx_bytes-r","expiry":5,"x":687.5,"y":435,"wires":[["fed565db.b31848"]]},{"id":"34e25138.d7838e","type":"debug","z":"283095fd.71481a","name":"Kindle","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1156,"y":486,"wires":[]},{"id":"badf6bcf.fbb6c8","type":"function","z":"283095fd.71481a","name":"Filter Device","func":"const client = {\n    \"Adams-iPad\": \"Adams-iPad\",\n    \"amazon-04e1baafb\": \"amazon-04e1baafb\"\n};\n\nreturn Object.keys(client).map(function(topic) {\n    let devices = msg.payload[0].filter(device => device.hostname === client[topic]);\n    return {\n        topic: topic,\n        retain: true,\n        payload: devices\n    };\n});","outputs":2,"noerr":0,"x":470,"y":199,"wires":[["ab8e07be.13d368"],["e47860ac.7d9e7"]],"outputLabels":["Adam presence",""]},{"id":"df45be19.1a806","type":"delay","z":"283095fd.71481a","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"2","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1197,"y":529,"wires":[["b6f3e16f.1cb77"]]},{"id":"aa14339f.73953","type":"Unifi","z":"283095fd.71481a","name":"Unifi Controller","ip":"172.16.0.100","port":8443,"site":"default","command":"20","x":712,"y":117,"wires":[["badf6bcf.fbb6c8"]]},{"id":"ab8e07be.13d368","type":"JSONFilter","z":"283095fd.71481a","name":"Filter rx rate","fields":"rx_bytes-r","expiry":5,"x":693.5,"y":194,"wires":[["2635a25.aac0b5e"]]},{"id":"b6f3e16f.1cb77","type":"function","z":"283095fd.71481a","name":"Block Kindle","func":"msg.payload = { command: \"blockClient\", mac: \"c4:95:00:b9:59:09\" };\nreturn msg;","outputs":1,"noerr":0,"x":1381,"y":531,"wires":[["205f190a.d400f6","a6c62177.d0cc4"]]},{"id":"a6c62177.d0cc4","type":"delay","z":"283095fd.71481a","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1550.5,"y":393,"wires":[["47908ba1.618734"]]},{"id":"2635a25.aac0b5e","type":"bigsplitter","z":"283095fd.71481a","name":"","property":"payload","x":840.5,"y":194,"wires":[["92507730.8d1898"],[]]},{"id":"205f190a.d400f6","type":"delay","z":"283095fd.71481a","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1539,"y":527,"wires":[["10302c33.704b74"]]},{"id":"c0dc1dc5.ffc3d","type":"inject","z":"283095fd.71481a","name":"Test","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1216.5,"y":584,"wires":[["b6f3e16f.1cb77"]]},{"id":"917fa500.1b5448","type":"link in","z":"283095fd.71481a","name":"Unifi Input","links":["3ead193e.6f1da6","dc0a24f.d3db2d8","2e75a79e.bf3098"],"x":1364.5,"y":394,"wires":[["a6c62177.d0cc4"]]},{"id":"9b206248.b95cb","type":"inject","z":"283095fd.71481a","name":"40 Second Intervals","topic":"","payload":"","payloadType":"date","repeat":"40","crontab":"","once":false,"onceDelay":0.1,"x":500,"y":118,"wires":[["aa14339f.73953"]]},{"id":"92507730.8d1898","type":"split","z":"283095fd.71481a","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":976.5,"y":196,"wires":[["3e514818.977a28"]]},{"id":"10302c33.704b74","type":"function","z":"283095fd.71481a","name":"UnBlock Kindle","func":"msg.payload = { command: \"unblockClient\", mac: \"c4:95:00:b9:59:09\" };\nreturn msg;","outputs":1,"noerr":0,"x":1707,"y":526,"wires":[["a6c62177.d0cc4"]]},{"id":"258b9b50.b17754","type":"function","z":"283095fd.71481a","name":"Reconnect iPad","func":"msg.payload = { command: \"reconnectClient\", mac: \"b4:f0:ab:bf:eb:2f\" };\nreturn msg;","outputs":1,"noerr":0,"x":1393,"y":288,"wires":[["a6c62177.d0cc4"]]},{"id":"3e514818.977a28","type":"switch","z":"283095fd.71481a","name":"SpeedCheck","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"499","vt":"num"},{"t":"gte","v":"500","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":3,"x":482,"y":273,"wires":[["45cb094e.343608"],["75fedbdc.f72aa4"],[]]},{"id":"fb5c7dc1.11ea7","type":"inject","z":"283095fd.71481a","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1533.5,"y":607,"wires":[["10302c33.704b74"]]},{"id":"182a05bb.367b9a","type":"delay","z":"283095fd.71481a","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"2","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"x":1203,"y":288,"wires":[["258b9b50.b17754"]]},{"id":"45cb094e.343608","type":"change","z":"283095fd.71481a","name":"Stalled","rules":[{"t":"set","p":"payload","pt":"msg","to":"Stalled","tot":"str"}],"x":635,"y":259,"wires":[["b619502a.a6502"]]},{"id":"75fedbdc.f72aa4","type":"change","z":"283095fd.71481a","name":"Streaming","rules":[{"t":"set","p":"payload","pt":"msg","to":"Streaming","tot":"str"}],"x":654,"y":296,"wires":[["16988aed.797035"]]},{"id":"b619502a.a6502","type":"counter","z":"283095fd.71481a","name":"","init":"1","step":"1","lower":"","upper":"5","mode":"increment","outputs":2,"x":838.5,"y":259,"wires":[["57e14bef.69a184","e0dacce5.ed778"],[]]},{"id":"16988aed.797035","type":"change","z":"283095fd.71481a","name":"Reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"reset","tot":"str"}],"x":837,"y":311,"wires":[["b619502a.a6502"]]},{"id":"57e14bef.69a184","type":"switch","z":"283095fd.71481a","name":"Limit Reached","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"5","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":1016,"y":289,"wires":[["e0dacce5.ed778","182a05bb.367b9a"]]},{"id":"c5dce709.843058","type":"inject","z":"283095fd.71481a","name":"Reset on Deploy","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":637,"y":338,"wires":[["16988aed.797035"]]},{"id":"e0dacce5.ed778","type":"debug","z":"283095fd.71481a","name":"iPad","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":1162,"y":245,"wires":[]},{"id":"1904e40.aaac81c","type":"comment","z":"283095fd.71481a","name":"Tablet Stream Monitoring","info":"","x":505,"y":60,"wires":[]},{"id":"d76df4fc.1fdfb8","type":"comment","z":"283095fd.71481a","name":"iPad","info":"","x":449,"y":339,"wires":[]},{"id":"b5c77f11.717a8","type":"comment","z":"283095fd.71481a","name":"Kindle","info":"","x":451,"y":573,"wires":[]},{"id":"bf8e8647.b91a48","type":"inject","z":"283095fd.71481a","name":"Test","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":1214,"y":338,"wires":[["258b9b50.b17754"]]}]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top