Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- {
- "id": "60b6526a.80f66c",
- "type": "tab",
- "label": "[K3_P8 - MQTT Touch]",
- "disabled": false,
- "info": ""
- },
- {
- "id": "30fb997c.b96976",
- "type": "mqtt in",
- "z": "60b6526a.80f66c",
- "name": "",
- "topic": "NodeESP/[PID]/touch/state/get/out",
- "qos": "2",
- "broker": "3c53c9b8.8965a6",
- "x": 200,
- "y": 80,
- "wires": [
- [
- "d51e50e8.e0eff"
- ]
- ]
- },
- {
- "id": "d51e50e8.e0eff",
- "type": "json",
- "z": "60b6526a.80f66c",
- "name": "",
- "property": "payload",
- "action": "",
- "pretty": false,
- "x": 170,
- "y": 180,
- "wires": [
- [
- "fe92302e.84913"
- ]
- ]
- },
- {
- "id": "fe92302e.84913",
- "type": "switch",
- "z": "60b6526a.80f66c",
- "name": "",
- "property": "payload.pin_name",
- "propertyType": "msg",
- "rules": [
- {
- "t": "eq",
- "v": "Touch1",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "Touch2",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "Touch3",
- "vt": "str"
- },
- {
- "t": "eq",
- "v": "Touch4",
- "vt": "str"
- }
- ],
- "checkall": "true",
- "repair": false,
- "outputs": 4,
- "x": 310,
- "y": 180,
- "wires": [
- [
- "aafb8754.328158"
- ],
- [
- "28572b77.e37014"
- ],
- [
- "6ddbf81b.410828"
- ],
- [
- "8bc1a376.ea252"
- ]
- ]
- },
- {
- "id": "43faa32f.f7d4ec",
- "type": "ui_audio",
- "z": "60b6526a.80f66c",
- "name": "",
- "group": "158410c0.95e66f",
- "voice": "de-DE",
- "always": "",
- "x": 1200,
- "y": 180,
- "wires": []
- },
- {
- "id": "6a91c1ed.bbe56",
- "type": "feedparse",
- "z": "60b6526a.80f66c",
- "name": "https://iot.fkainka.de/feed",
- "url": "https://iot.fkainka.de/category/nodeesp/calendar-2018/feed",
- "interval": 15,
- "x": 230,
- "y": 400,
- "wires": [
- [
- "c127130a.0804"
- ]
- ]
- },
- {
- "id": "414e9135.653f6",
- "type": "feedparse",
- "z": "60b6526a.80f66c",
- "name": "",
- "url": "http://iot.fkainka.de/feed",
- "interval": 15,
- "x": 780,
- "y": 1360,
- "wires": [
- []
- ]
- },
- {
- "id": "c127130a.0804",
- "type": "delay",
- "z": "60b6526a.80f66c",
- "name": "",
- "pauseType": "rate",
- "timeout": "5",
- "timeoutUnits": "seconds",
- "rate": "100",
- "nbRateUnits": "1",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": false,
- "x": 480,
- "y": 400,
- "wires": [
- [
- "861e15d3.44e1c8"
- ]
- ]
- },
- {
- "id": "a5bf77b4.b80d88",
- "type": "split",
- "z": "60b6526a.80f66c",
- "name": "",
- "splt": "\\n",
- "spltType": "str",
- "arraySplt": 1,
- "arraySpltType": "len",
- "stream": false,
- "addname": "",
- "x": 490,
- "y": 1360,
- "wires": [
- []
- ]
- },
- {
- "id": "39fc0b37.1c3a74",
- "type": "batch",
- "z": "60b6526a.80f66c",
- "name": "",
- "mode": "count",
- "count": 10,
- "overlap": 0,
- "interval": 10,
- "allowEmptySequence": false,
- "topics": [
- {
- "topic": ""
- }
- ],
- "x": 230,
- "y": 1340,
- "wires": [
- []
- ]
- },
- {
- "id": "861e15d3.44e1c8",
- "type": "function",
- "z": "60b6526a.80f66c",
- "name": "Textbuffer: Last Article",
- "func": "global.set('RSS', msg.payload);\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 700,
- "y": 400,
- "wires": [
- []
- ]
- },
- {
- "id": "bbb14dd7.82553",
- "type": "http request",
- "z": "60b6526a.80f66c",
- "name": "Sorry Dave",
- "method": "GET",
- "ret": "bin",
- "url": "http://www.wavsource.com/snds_2018-06-03_5106726768923853/movies/2001/sorry_dave.wav",
- "tls": "",
- "x": 470,
- "y": 360,
- "wires": [
- [
- "86855aad.e44708"
- ]
- ]
- },
- {
- "id": "86855aad.e44708",
- "type": "function",
- "z": "60b6526a.80f66c",
- "name": "Audiobuffer: DAVE",
- "func": "global.set('DAVE', msg.payload);\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 690,
- "y": 360,
- "wires": [
- []
- ]
- },
- {
- "id": "92e8281c.49b1e8",
- "type": "http request",
- "z": "60b6526a.80f66c",
- "name": "Dog",
- "method": "GET",
- "ret": "bin",
- "url": "http://soundbible.com/grab.php?id=2215&type=mp3",
- "tls": "",
- "x": 450,
- "y": 320,
- "wires": [
- [
- "ca747150.7556a"
- ]
- ]
- },
- {
- "id": "9a024b1d.78cbc8",
- "type": "inject",
- "z": "60b6526a.80f66c",
- "name": "Execute on Start",
- "topic": "",
- "payload": "true",
- "payloadType": "bool",
- "repeat": "",
- "crontab": "",
- "once": true,
- "onceDelay": 0.1,
- "x": 230,
- "y": 340,
- "wires": [
- [
- "92e8281c.49b1e8",
- "bbb14dd7.82553"
- ]
- ]
- },
- {
- "id": "ca747150.7556a",
- "type": "function",
- "z": "60b6526a.80f66c",
- "name": "Audiobuffer: DOG",
- "func": "global.set('DOG', msg.payload);\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 690,
- "y": 320,
- "wires": [
- []
- ]
- },
- {
- "id": "aafb8754.328158",
- "type": "ui_button",
- "z": "60b6526a.80f66c",
- "name": "",
- "group": "158410c0.95e66f",
- "order": 0,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "Time",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 470,
- "y": 100,
- "wires": [
- [
- "ebdcf839.ce1818"
- ]
- ]
- },
- {
- "id": "28572b77.e37014",
- "type": "ui_button",
- "z": "60b6526a.80f66c",
- "name": "",
- "group": "158410c0.95e66f",
- "order": 0,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "Dog",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 470,
- "y": 140,
- "wires": [
- [
- "d4eb779f.d12b98"
- ]
- ]
- },
- {
- "id": "6ddbf81b.410828",
- "type": "ui_button",
- "z": "60b6526a.80f66c",
- "name": "",
- "group": "158410c0.95e66f",
- "order": 0,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "Dave",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 470,
- "y": 180,
- "wires": [
- [
- "727baf1a.ea1e3"
- ]
- ]
- },
- {
- "id": "8bc1a376.ea252",
- "type": "ui_button",
- "z": "60b6526a.80f66c",
- "name": "",
- "group": "158410c0.95e66f",
- "order": 0,
- "width": 0,
- "height": 0,
- "passthru": true,
- "label": "Last Article",
- "color": "",
- "bgcolor": "",
- "icon": "",
- "payload": "",
- "payloadType": "str",
- "topic": "",
- "x": 490,
- "y": 220,
- "wires": [
- [
- "ed7aa19c.8169f"
- ]
- ]
- },
- {
- "id": "ebdcf839.ce1818",
- "type": "function",
- "z": "60b6526a.80f66c",
- "name": "Time to Speechtext",
- "func": "var date = new Date();\nvar months = [\"Januar\", \"Februar\", \"März\", \"April\", \"Mai\", \"Juni\", \"July\", \"August\", \"September\", \"Oktober\", \"November\", \"Dezember\"];\nmsg.payload = \"Wir haben \" + date.getHours()+\"Uhr \"+date.getMinutes()+\" am \"+date.getDate()+\". \"+ months[date.getMonth()] +\" \" +date.getFullYear();\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 690,
- "y": 100,
- "wires": [
- [
- "f257e0a2.a104"
- ]
- ]
- },
- {
- "id": "d4eb779f.d12b98",
- "type": "function",
- "z": "60b6526a.80f66c",
- "name": "Audiobuffer: DOG",
- "func": "msg.payload = global.get('DOG');\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 690,
- "y": 140,
- "wires": [
- [
- "f257e0a2.a104"
- ]
- ]
- },
- {
- "id": "727baf1a.ea1e3",
- "type": "function",
- "z": "60b6526a.80f66c",
- "name": "Audiobuffer: DAVE",
- "func": "msg.payload = global.get('DAVE');\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 690,
- "y": 180,
- "wires": [
- [
- "f257e0a2.a104"
- ]
- ]
- },
- {
- "id": "ed7aa19c.8169f",
- "type": "function",
- "z": "60b6526a.80f66c",
- "name": "Textbuffer: Last Article",
- "func": "msg.payload = global.get('RSS');\nreturn msg;",
- "outputs": 1,
- "noerr": 0,
- "x": 700,
- "y": 220,
- "wires": [
- [
- "f257e0a2.a104"
- ]
- ]
- },
- {
- "id": "f257e0a2.a104",
- "type": "delay",
- "z": "60b6526a.80f66c",
- "name": "",
- "pauseType": "rate",
- "timeout": "5",
- "timeoutUnits": "seconds",
- "rate": "1",
- "nbRateUnits": "5",
- "rateUnits": "second",
- "randomFirst": "1",
- "randomLast": "5",
- "randomUnits": "seconds",
- "drop": true,
- "x": 1020,
- "y": 180,
- "wires": [
- [
- "43faa32f.f7d4ec",
- "4baa8572.01e80c"
- ]
- ]
- },
- {
- "id": "4baa8572.01e80c",
- "type": "ui_toast",
- "z": "60b6526a.80f66c",
- "position": "top right",
- "displayTime": "3",
- "highlight": "",
- "outputs": 0,
- "ok": "OK",
- "cancel": "",
- "topic": "",
- "name": "",
- "x": 1230,
- "y": 120,
- "wires": []
- },
- {
- "id": "3c53c9b8.8965a6",
- "type": "mqtt-broker",
- "z": "",
- "name": "fkainka.de",
- "broker": "broker.fkainka.de",
- "port": "1883",
- "clientid": "",
- "usetls": false,
- "compatmode": true,
- "keepalive": "60",
- "cleansession": true,
- "willTopic": "",
- "willQos": "0",
- "willPayload": "",
- "birthTopic": "",
- "birthQos": "0",
- "birthPayload": ""
- },
- {
- "id": "158410c0.95e66f",
- "type": "ui_group",
- "z": "",
- "name": "Touch Buttons",
- "tab": "33c29247.efde4e",
- "order": 1,
- "disp": true,
- "width": "6",
- "collapse": false
- },
- {
- "id": "33c29247.efde4e",
- "type": "ui_tab",
- "z": "",
- "name": "[K3_P8]",
- "icon": "dashboard",
- "order": 8
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement