[
{
"id": "70f72e17.02b55",
"type": "tab",
"label": "Day8_UDPadc",
"disabled": true,
"info": ""
},
{
"id": "8642b347.e8bc9",
"type": "udp in",
"z": "70f72e17.02b55",
"name": "",
"iface": "",
"port": "55056",
"ipv": "udp4",
"multicast": "false",
"group": "",
"datatype": "utf8",
"x": 100,
"y": 140,
"wires": [
[
"500a1d79.82d6c4",
"9f568678.eb1e48"
]
]
},
{
"id": "baf726af.ce0978",
"type": "switch",
"z": "70f72e17.02b55",
"name": "",
"property": "payload.cmd",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "trigger",
"vt": "str"
},
{
"t": "eq",
"v": "adc",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 390,
"y": 140,
"wires": [
[
"2b26fa17.231f26"
],
[
"cf929191.b7cce"
]
]
},
{
"id": "2b26fa17.231f26",
"type": "trigger",
"z": "70f72e17.02b55",
"op1": "{\"cmd\":\"light_on\"}",
"op2": "{\"cmd\":\"light_off\"}",
"op1type": "str",
"op2type": "str",
"duration": "4",
"extend": true,
"units": "s",
"reset": "",
"bytopic": "all",
"name": "",
"x": 580,
"y": 120,
"wires": [
[
"dd6b6763.c2cd08"
]
]
},
{
"id": "dd6b6763.c2cd08",
"type": "udp out",
"z": "70f72e17.02b55",
"name": "",
"addr": "192.168.178.255",
"iface": "",
"port": "55056",
"ipv": "udp4",
"outport": "",
"base64": false,
"multicast": "false",
"x": 800,
"y": 120,
"wires": []
},
{
"id": "f16cdd79.7c75f",
"type": "ui_button",
"z": "70f72e17.02b55",
"name": "",
"group": "c9b695b7.dc9628",
"order": 0,
"width": 0,
"height": 0,
"passthru": false,
"label": "Staircase Trigger",
"color": "",
"bgcolor": "",
"icon": "",
"payload": "",
"payloadType": "str",
"topic": "",
"x": 350,
"y": 80,
"wires": [
[
"2b26fa17.231f26"
]
]
},
{
"id": "500a1d79.82d6c4",
"type": "debug",
"z": "70f72e17.02b55",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"x": 290,
"y": 200,
"wires": []
},
{
"id": "9f568678.eb1e48",
"type": "json",
"z": "70f72e17.02b55",
"name": "",
"property": "payload",
"action": "",
"pretty": false,
"x": 250,
"y": 140,
"wires": [
[
"baf726af.ce0978"
]
]
},
{
"id": "cf929191.b7cce",
"type": "template",
"z": "70f72e17.02b55",
"name": "Get Values",
"field": "payload",
"fieldType": "msg",
"format": "handlebars",
"syntax": "mustache",
"template": "{{payload.value}}",
"output": "str",
"x": 590,
"y": 180,
"wires": [
[
"9a6491cf.8ede5"
]
]
},
{
"id": "9a6491cf.8ede5",
"type": "ui_gauge",
"z": "70f72e17.02b55",
"name": "",
"group": "c9b695b7.dc9628",
"order": 0,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "ADC Values",
"label": "RAW",
"format": "{{value}}",
"min": 0,
"max": "4096",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "1500",
"seg2": "3000",
"x": 770,
"y": 180,
"wires": []
},
{
"id": "c9b695b7.dc9628",
"type": "ui_group",
"z": "",
"name": "[Day 8] Staircase and ADC",
"tab": "3956cd61.43b7f2",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "3956cd61.43b7f2",
"type": "ui_tab",
"z": "",
"name": "Day8",
"icon": "dashboard",
"order": 4
}
]