Skip to content

Instantly share code, notes, and snippets.

@utaani
Created June 25, 2019 02:01
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 utaani/0d872bccc11e2529d1ab0a3b45bf2b88 to your computer and use it in GitHub Desktop.
Save utaani/0d872bccc11e2529d1ab0a3b45bf2b88 to your computer and use it in GitHub Desktop.
[
{
"id": "34d42654.9be66a",
"type": "switch",
"z": "1f17baae.3051ed",
"name": "補正あり",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "a",
"vt": "str"
},
{
"t": "eq",
"v": "b",
"vt": "str"
},
{
"t": "eq",
"v": "c",
"vt": "str"
}
],
"checkall": "true",
"repair": true,
"outputs": 3,
"x": 500,
"y": 480,
"wires": [
[
"46b283fc.12b7d4"
],
[
"a9f44b04.55129"
],
[
"dac3efdf.2ac328"
]
]
},
{
"id": "ae0fb368.aca6e8",
"type": "split",
"z": "1f17baae.3051ed",
"name": "",
"splt": "\\n",
"spltType": "str",
"arraySplt": 1,
"arraySpltType": "len",
"stream": false,
"addname": "",
"x": 330,
"y": 540,
"wires": [
[
"8c39fae.669bf08",
"34d42654.9be66a"
]
]
},
{
"id": "d91eabf7.e03cb",
"type": "inject",
"z": "1f17baae.3051ed",
"name": "",
"topic": "",
"payload": "[\"a\",\"b\",\"c\"]",
"payloadType": "json",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 180,
"y": 440,
"wires": [
[
"ae0fb368.aca6e8"
]
]
},
{
"id": "dac3efdf.2ac328",
"type": "debug",
"z": "1f17baae.3051ed",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 690,
"y": 520,
"wires": []
},
{
"id": "a9f44b04.55129",
"type": "debug",
"z": "1f17baae.3051ed",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 690,
"y": 480,
"wires": []
},
{
"id": "46b283fc.12b7d4",
"type": "debug",
"z": "1f17baae.3051ed",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 690,
"y": 440,
"wires": []
},
{
"id": "8c39fae.669bf08",
"type": "switch",
"z": "1f17baae.3051ed",
"name": "補正なし",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "a",
"vt": "str"
},
{
"t": "eq",
"v": "b",
"vt": "str"
},
{
"t": "eq",
"v": "c",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 500,
"y": 600,
"wires": [
[
"36116dd3.ccf49a"
],
[
"1a7026e2.8380d1"
],
[
"28652174.36329e"
]
]
},
{
"id": "28652174.36329e",
"type": "debug",
"z": "1f17baae.3051ed",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 690,
"y": 640,
"wires": []
},
{
"id": "1a7026e2.8380d1",
"type": "debug",
"z": "1f17baae.3051ed",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 690,
"y": 600,
"wires": []
},
{
"id": "36116dd3.ccf49a",
"type": "debug",
"z": "1f17baae.3051ed",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"x": 690,
"y": 560,
"wires": []
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment