[ { "id": "378fb54d.95f9da", "type": "picturepicker", "z": "7a808a2b.2a71c4", "name": "", "picture": "/root/userdir/media/image-01.png", "x": 910, "y": 60, "wires": [ [ "6dff8db6.a59ce4" ] ] }, { "id": "3affda33.cb6a76", "type": "mqtt in", "z": "7a808a2b.2a71c4", "name": "", "topic": "Affichage-attente", "qos": "2", "broker": "MQTT.Localhost", "x": 140, "y": 160, "wires": [ [ "b9eb4263.e8db7" ] ] }, { "id": "6dff8db6.a59ce4", "type": "ledpicture", "z": "7a808a2b.2a71c4", "picture": "", "name": "", "x": 1110, "y": 160, "wires": [ [ "c77cabde.7e73c8", "3469bde4.16a962" ] ] }, { "id": "c77cabde.7e73c8", "type": "ledmatrix", "z": "7a808a2b.2a71c4", "speed": 50, "time": 500, "name": "", "x": 1260, "y": 160, "wires": [] }, { "id": "57ad9602.a0d0e8", "type": "speed", "z": "7a808a2b.2a71c4", "name": "", "fix": false, "val": 3, "x": 740, "y": 60, "wires": [ [ "378fb54d.95f9da" ] ] }, { "id": "4edb48e1.7b15d8", "type": "picturepicker", "z": "7a808a2b.2a71c4", "name": "", "picture": "/root/userdir/media/image-02.png", "x": 910, "y": 100, "wires": [ [ "6dff8db6.a59ce4" ] ] }, { "id": "fefcdcb.287b22", "type": "picturepicker", "z": "7a808a2b.2a71c4", "name": "", "picture": "/root/userdir/media/image-03.png", "x": 910, "y": 140, "wires": [ [ "6dff8db6.a59ce4" ] ] }, { "id": "3f933cfc.b3dab4", "type": "picturepicker", "z": "7a808a2b.2a71c4", "name": "", "picture": "/root/userdir/media/image-04.png", "x": 910, "y": 180, "wires": [ [ "6dff8db6.a59ce4" ] ] }, { "id": "3723c60.54f6d3a", "type": "picturepicker", "z": "7a808a2b.2a71c4", "name": "", "picture": "/root/userdir/media/image-05.png", "x": 910, "y": 220, "wires": [ [ "6dff8db6.a59ce4" ] ] }, { "id": "b20c0423.e82278", "type": "ledblank", "z": "7a808a2b.2a71c4", "name": "", "x": 600, "y": 60, "wires": [ [ "57ad9602.a0d0e8" ] ] }, { "id": "ea778654.3cc358", "type": "ledblank", "z": "7a808a2b.2a71c4", "name": "", "x": 600, "y": 100, "wires": [ [ "a9000eb5.568e5" ] ] }, { "id": "fab81679.062868", "type": "ledblank", "z": "7a808a2b.2a71c4", "name": "", "x": 600, "y": 140, "wires": [ [ "68f19e71.eacfb" ] ] }, { "id": "52d5d1bb.147b8", "type": "ledblank", "z": "7a808a2b.2a71c4", "name": "", "x": 600, "y": 180, "wires": [ [ "78bd657d.7fc10c" ] ] }, { "id": "1668fe25.21f202", "type": "ledblank", "z": "7a808a2b.2a71c4", "name": "", "x": 600, "y": 220, "wires": [ [ "bdc5a6a8.c962f8" ] ] }, { "id": "cde81fba.1d122", "type": "picturepicker", "z": "7a808a2b.2a71c4", "name": "", "picture": "/root/userdir/media/image-06.png", "x": 910, "y": 260, "wires": [ [ "6dff8db6.a59ce4" ] ] }, { "id": "fae91e4f.b3553", "type": "ledblank", "z": "7a808a2b.2a71c4", "name": "", "x": 600, "y": 260, "wires": [ [ "2317eb49.9b5cf4" ] ] }, { "id": "a9000eb5.568e5", "type": "speed", "z": "7a808a2b.2a71c4", "name": "", "fix": false, "val": "0", "x": 740, "y": 100, "wires": [ [ "4edb48e1.7b15d8" ] ] }, { "id": "68f19e71.eacfb", "type": "speed", "z": "7a808a2b.2a71c4", "name": "", "fix": false, "val": 3, "x": 740, "y": 140, "wires": [ [ "fefcdcb.287b22" ] ] }, { "id": "78bd657d.7fc10c", "type": "speed", "z": "7a808a2b.2a71c4", "name": "", "fix": false, "val": 3, "x": 740, "y": 180, "wires": [ [ "3f933cfc.b3dab4" ] ] }, { "id": "bdc5a6a8.c962f8", "type": "speed", "z": "7a808a2b.2a71c4", "name": "", "fix": false, "val": 3, "x": 740, "y": 220, "wires": [ [ "3723c60.54f6d3a" ] ] }, { "id": "2317eb49.9b5cf4", "type": "speed", "z": "7a808a2b.2a71c4", "name": "", "fix": false, "val": 3, "x": 740, "y": 260, "wires": [ [ "cde81fba.1d122" ] ] }, { "id": "3469bde4.16a962", "type": "delay", "z": "7a808a2b.2a71c4", "name": "", "pauseType": "delay", "timeout": "5", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1260, "y": 200, "wires": [ [ "b90c33b2.7ed51" ] ] }, { "id": "c45898e7.74f258", "type": "mqtt out", "z": "7a808a2b.2a71c4", "name": "", "topic": "Affichage-attente", "qos": "", "retain": "", "broker": "MQTT.Localhost", "x": 1550, "y": 180, "wires": [] }, { "id": "b9eb4263.e8db7", "type": "switch", "z": "7a808a2b.2a71c4", "name": "", "property": "payload", "propertyType": "msg", "rules": [ { "t": "eq", "v": "1", "vt": "str" }, { "t": "eq", "v": "2", "vt": "str" }, { "t": "eq", "v": "3", "vt": "str" }, { "t": "eq", "v": "4", "vt": "str" }, { "t": "eq", "v": "5", "vt": "str" }, { "t": "eq", "v": "6", "vt": "str" } ], "checkall": "true", "outputs": 6, "x": 410, "y": 160, "wires": [ [ "b20c0423.e82278" ], [ "ea778654.3cc358" ], [ "fab81679.062868" ], [ "52d5d1bb.147b8" ], [ "1668fe25.21f202" ], [ "fae91e4f.b3553" ] ] }, { "id": "b90c33b2.7ed51", "type": "function", "z": "7a808a2b.2a71c4", "name": "", "func": "if (context.global.attente){\n msg.payload = Math.floor( Math.random() * 6 + 1);\n return[msg,null];\n}\nelse{\n return [null,msg];\n}\n\nreturn msg;", "outputs": "2", "noerr": 0, "x": 1390, "y": 200, "wires": [ [ "c45898e7.74f258", "59b68aff.00d584" ], [] ] }, { "id": "59b68aff.00d584", "type": "display", "z": "7a808a2b.2a71c4", "active": true, "x": 1517, "y": 140, "wires": [] }, { "id": "300a748b.ff770c", "type": "go", "z": "7a808a2b.2a71c4", "name": "", "x": 1026, "y": 353, "wires": [ [ "3469bde4.16a962" ] ] }, { "id": "MQTT.Localhost", "type": "mqtt-broker", "z": "", "origin": "/root/thethingbox/node_modules/node-red/flow/flows.json", "broker": "localhost", "port": "1883", "clientid": "", "usetls": false, "compatmode": true, "keepalive": "15", "cleansession": true, "willTopic": "", "willQos": "0", "willPayload": "", "birthTopic": "", "birthQos": "0", "birthPayload": "" } ]