Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "646f35fa.2257bc",
- "type": "tab",
- "label": "Day8_UDPadc",
- "disabled": false,
- "info": ""
- },
- {
- "id": "cf022a51.4b462",
- "type": "udp in",
- "z": "646f35fa.2257bc",
- "name": "",
- "iface": "",
- "port": "55056",
- "ipv": "udp4",
- "multicast": "false",
- "group": "",
- "datatype": "utf8",
- "x": 80,
- "y": 40,
- "wires": [
- [
- "c26bde43.49f9c8"
- ]
- ]
- },
- {
- "id": "15a5801a.c8197",
- "type": "switch",
- "z": "646f35fa.2257bc",
- "name": "",
- "property": "payload.cmd",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "adc",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "trigger",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 2,
- "x": 330,
- "y": 40,
- "wires": [
- [
- "5de40759.b1b24"
- ],
- [
- "df63fe54.ae01c8",
- "fd3353ba.e0936"
- ]
- ]
- },
- {
- "id": "51a50b88.ffc204",
- "type": "udp out",
- "z": "646f35fa.2257bc",
- "name": "",
- "addr": "192.168.43.211",
- "iface": "",
- "port": "55056",
- "ipv": "udp4",
- "outport": "",
- "base64": false,
- "multicast": "false",
- "x": 760,
- "y": 100,
- "wires": []
- },
- {
- "id": "8fccbe6f.3d758",
- "type": "ui_button",
- "z": "646f35fa.2257bc",
- "name": "",
- "group": "efd95665.2b8028",
- "order": 0,
- "width": 0,
- "height": 0,
- "passthru": false,
- "label": "Staircase Trigger",
- "tooltip": "",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "{\"cmd\":\"trigger\"}",
- "payloadType": "json",
- "topic": "",
- "x": 110,
- "y": 100,
- "wires": [
- [
- "df63fe54.ae01c8",
- "fd3353ba.e0936"
- ]
- ]
- },
- {
- "id": "c26bde43.49f9c8",
- "type": "json",
- "z": "646f35fa.2257bc",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 210,
- "y": 40,
- "wires": [
- [
- "15a5801a.c8197"
- ]
- ]
- },
- {
- "id": "22568727.01d51",
- "type": "template",
- "z": "646f35fa.2257bc",
- "name": "Get Values",
- "field": "payload",
- "fieldType": "msg",
- "format": "handlebars",
- "syntax": "mustache",
- "template": "{{payload.value}}",
- "output": "str",
- "x": 650,
- "y": 40,
- "wires": [
- [
- "812fd013.05827"
- ]
- ]
- },
- {
- "id": "812fd013.05827",
- "type": "ui_gauge",
- "z": "646f35fa.2257bc",
- "name": "",
- "group": "efd95665.2b8028",
- "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": 810,
- "y": 40,
- "wires": []
- },
- {
- "id": "4cebb362.1153fc",
- "type": "delay",
- "z": "646f35fa.2257bc",
- "name": "Delay delay ms",
- "pauseType": "delayv",
- "timeout": "4",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 520,
- "y": 200,
- "wires": [
- [
- "6e5787fb.b7ee1"
- ]
- ]
- },
- {
- "id": "6e5787fb.b7ee1",
- "type": "change",
- "z": "646f35fa.2257bc",
- "name": "setze cmd=light_off",
- "rules": [
- {
- "t": "set",
- "p": "payload.cmd",
- "pt": "msg",
- "to": "light_off",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 370,
- "y": 140,
- "wires": [
- [
- "2ee9c43c.225c74"
- ]
- ]
- },
- {
- "id": "df63fe54.ae01c8",
- "type": "change",
- "z": "646f35fa.2257bc",
- "name": "setze cmd=light_on",
- "rules": [
- {
- "t": "set",
- "p": "payload.cmd",
- "pt": "msg",
- "to": "light_on",
- "tot": "str"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 370,
- "y": 100,
- "wires": [
- [
- "2ee9c43c.225c74"
- ]
- ]
- },
- {
- "id": "2ee9c43c.225c74",
- "type": "json",
- "z": "646f35fa.2257bc",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 570,
- "y": 100,
- "wires": [
- [
- "51a50b88.ffc204"
- ]
- ]
- },
- {
- "id": "fd3353ba.e0936",
- "type": "json",
- "z": "646f35fa.2257bc",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 90,
- "y": 200,
- "wires": [
- [
- "f8c8aac.c35abd8"
- ]
- ]
- },
- {
- "id": "f15d30c4.9239d",
- "type": "json",
- "z": "646f35fa.2257bc",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 370,
- "y": 200,
- "wires": [
- [
- "4cebb362.1153fc"
- ]
- ]
- },
- {
- "id": "f8c8aac.c35abd8",
- "type": "change",
- "z": "646f35fa.2257bc",
- "name": "retrieve delay",
- "rules": [
- {
- "t": "set",
- "p": "delay",
- "pt": "msg",
- "to": "delay",
- "tot": "global"
- }
- ],
- "action": "",
- "property": "",
- "from": "",
- "to": "",
- "reg": false,
- "x": 230,
- "y": 200,
- "wires": [
- [
- "f15d30c4.9239d"
- ]
- ]
- },
- {
- "id": "5de40759.b1b24",
- "type": "function",
- "z": "646f35fa.2257bc",
- "name": "store delay",
- "func": "global.set('delay',msg.payload.value);\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 490,
- "y": 40,
- "wires": [
- [
- "22568727.01d51"
- ]
- ]
- },
- {
- "id": "efd95665.2b8028",
- "type": "ui_group",
- "z": "",
- "name": "[Day 8] Staircase and ADC",
- "tab": "89b6cfa1.4c697",
- "order": 1,
- "disp": true,
- "width": "6",
- "collapse": false
- },
- {
- "id": "89b6cfa1.4c697",
- "type": "ui_tab",
- "z": "",
- "name": "Day8",
- "icon": "dashboard",
- "order": 4
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement