Skip to content

Instantly share code, notes, and snippets.

@johnty
Created May 26, 2018 02:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnty/0e7b0002b58354f01e35f85b99f38f2e to your computer and use it in GitHub Desktop.
Save johnty/0e7b0002b58354f01e35f85b99f38f2e to your computer and use it in GitHub Desktop.
[
{
"id":"ce73efbb.99435",
"type":"http in",
"z":"c31ab6fb.21e498",
"name":"",
"url":"/motion",
"method":"get",
"swaggerDoc":"",
"x":217,
"y":144,
"wires":[
[
"35305f48.fb1cc",
"e672a986.e6d408",
"b738dd57.65872",
"33dd00c5.419c3"
]
]
},
{
"id":"35305f48.fb1cc",
"type":"template",
"z":"c31ab6fb.21e498",
"name":"OK",
"field":"payload",
"fieldType":"msg",
"format":"handlebars",
"syntax":"mustache",
"template":"<html><head></head>\n<body>\n OK\n</body>\n\n</html>",
"x":376,
"y":144,
"wires":[
[
"e3811528.a5eb68",
"48dc68c0.77d718"
]
]
},
{
"id":"e3811528.a5eb68",
"type":"http response",
"z":"c31ab6fb.21e498",
"name":"",
"x":511,
"y":144,
"wires":[
]
},
{
"id":"e672a986.e6d408",
"type":"trigger",
"z":"c31ab6fb.21e498",
"op1":"[144, 80, 64]",
"op2":"[128, 80, 0]",
"op1type":"json",
"op2type":"json",
"duration":"800",
"extend":false,
"units":"ms",
"reset":"",
"name":"",
"x":368,
"y":270,
"wires":[
[
"8b5c685d.8183f8"
]
]
},
{
"id":"8b5c685d.8183f8",
"type":"midi out",
"z":"c31ab6fb.21e498",
"name":"",
"midiport":"1",
"x":663.38427734375,
"y":325.2781066894531,
"wires":[
]
},
{
"id":"48dc68c0.77d718",
"type":"debug",
"z":"c31ab6fb.21e498",
"name":"",
"active":true,
"console":"false",
"complete":"false",
"x":679,
"y":208,
"wires":[
]
},
{
"id":"396c4cd9.f14c44",
"type":"ui_audio",
"z":"c31ab6fb.21e498",
"name":"",
"group":"5e5d43ba.6babbc",
"voice":"3",
"always":true,
"x":896,
"y":613,
"wires":[
]
},
{
"id":"b738dd57.65872",
"type":"template",
"z":"c31ab6fb.21e498",
"name":"output string",
"field":"payload",
"fieldType":"msg",
"format":"handlebars",
"syntax":"plain",
"template":"motion detected",
"x":665,
"y":494,
"wires":[
[
"396c4cd9.f14c44",
"10d89b7a.d98365",
"a7ebee7f.3068b",
"221db917.82d1e6"
]
]
},
{
"id":"10d89b7a.d98365",
"type":"ui_toast",
"z":"c31ab6fb.21e498",
"position":"top right",
"displayTime":"3",
"highlight":"",
"outputs":0,
"ok":"OK",
"cancel":"",
"topic":"",
"name":"",
"x":861,
"y":678,
"wires":[
]
},
{
"id":"a7ebee7f.3068b",
"type":"ui_text",
"z":"c31ab6fb.21e498",
"group":"5e5d43ba.6babbc",
"order":0,
"width":0,
"height":0,
"name":"",
"label":"text",
"format":"{{msg.payload}}",
"layout":"row-spread",
"x":904,
"y":562,
"wires":[
]
},
{
"id":"221db917.82d1e6",
"type":"googlehome-notify",
"z":"c31ab6fb.21e498",
"server":"55e5d6d9.be4228",
"name":"",
"x":845.5,
"y":743,
"wires":[
]
},
{
"id":"33dd00c5.419c3",
"type":"delay",
"z":"c31ab6fb.21e498",
"name":"",
"pauseType":"delay",
"timeout":"750",
"timeoutUnits":"milliseconds",
"rate":"1",
"nbRateUnits":"1",
"rateUnits":"second",
"randomFirst":"1",
"randomLast":"5",
"randomUnits":"seconds",
"drop":false,
"x":196.5,
"y":326,
"wires":[
[
"7438b7f5.85eef8"
]
]
},
{
"id":"7438b7f5.85eef8",
"type":"trigger",
"z":"c31ab6fb.21e498",
"op1":"[144, 75, 50]",
"op2":"[128, 75, 0]",
"op1type":"json",
"op2type":"json",
"duration":"1500",
"extend":false,
"units":"ms",
"reset":"",
"name":"",
"x":367,
"y":325,
"wires":[
[
"8b5c685d.8183f8"
]
]
},
{
"id":"5e5d43ba.6babbc",
"type":"ui_group",
"z":"",
"name":"MotionNotify",
"tab":"9d6b0833.7eb8a8",
"disp":true,
"width":"6"
},
{
"id":"55e5d6d9.be4228",
"type":"googlehome-config-node",
"z":"",
"ipaddress":"192.168.100.105",
"language":"en"
},
{
"id":"9d6b0833.7eb8a8",
"type":"ui_tab",
"z":"",
"name":"Motion",
"icon":"dashboard"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment