[ { "id": "be9ee947.fc3dd8", "type": "mqtt out", "z": "c3aed0d3.3ce58", "name": "", "topic": "cocktail", "qos": "", "retain": "", "broker": "MQTT.Localhost", "x": 1580, "y": 440, "wires": [] }, { "id": "1709d7ba.007618", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 220, "wires": [ [ "3263d662.8d245a" ] ] }, { "id": "6f2f43aa.f1b1fc", "type": "function", "z": "c3aed0d3.3ce58", "name": "", "func": "msg.payload={};\nmsg.payload[0] = msg.titre;\nmsg.payload[1] = msg.ingredient1;\nmsg.payload[2] = msg.ingredient2;\nmsg.payload[3] = msg.ingredient3;\nmsg.payload[4] = msg.ingredient4;\nmsg.payload[5] = msg.ingredient5;\nmsg.payload[6] = msg.ingredient6;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1430, "y": 440, "wires": [ [ "be9ee947.fc3dd8" ] ] }, { "id": "3263d662.8d245a", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Winn", "name": "", "x": 310, "y": 220, "wires": [ [ "8ad4aa84.f4d728" ] ] }, { "id": "8ad4aa84.f4d728", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "0", "name": "", "x": 630, "y": 220, "wires": [ [ "7bb1cb58.e3ce04" ] ] }, { "id": "7bb1cb58.e3ce04", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "0", "name": "", "x": 750, "y": 220, "wires": [ [ "8cfe4ac1.8cff08" ] ] }, { "id": "8cfe4ac1.8cff08", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "1", "name": "", "x": 870, "y": 220, "wires": [ [ "2b1e8b39.23b514" ] ] }, { "id": "2b1e8b39.23b514", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "0", "name": "", "x": 990, "y": 220, "wires": [ [ "233cb6f3.56004a" ] ] }, { "id": "233cb6f3.56004a", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "3", "name": "", "x": 1110, "y": 220, "wires": [ [ "f4357e08.12eec" ] ] }, { "id": "f4357e08.12eec", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "2", "name": "", "x": 1230, "y": 220, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "a17e8e22.8daac", "type": "comment", "z": "c3aed0d3.3ce58", "name": "Ingr. 1", "info": "", "x": 630, "y": 180, "wires": [] }, { "id": "cf813d86.422f6", "type": "comment", "z": "c3aed0d3.3ce58", "name": "Ingr. 2", "info": "", "x": 750, "y": 180, "wires": [] }, { "id": "1957745c.82e98c", "type": "comment", "z": "c3aed0d3.3ce58", "name": "Ingr. 3", "info": "", "x": 870, "y": 180, "wires": [] }, { "id": "babcb4ed.953918", "type": "comment", "z": "c3aed0d3.3ce58", "name": "Ingr. 4", "info": "", "x": 990, "y": 180, "wires": [] }, { "id": "49f81ab5.1f8c44", "type": "comment", "z": "c3aed0d3.3ce58", "name": "Ingr. 5", "info": "", "x": 1110, "y": 180, "wires": [] }, { "id": "2343670f.c2f468", "type": "comment", "z": "c3aed0d3.3ce58", "name": "Ingr. 6", "info": "", "x": 1230, "y": 180, "wires": [] }, { "id": "42331889.288d18", "type": "comment", "z": "c3aed0d3.3ce58", "name": "Coktails :", "info": "", "x": 320, "y": 160, "wires": [] }, { "id": "d602a1cb.795f6", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 260, "wires": [ [ "79c93a12.541524" ] ] }, { "id": "79c93a12.541524", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Allô Mairie", "name": "", "x": 330, "y": 260, "wires": [ [ "9ee8b36.734c85" ] ] }, { "id": "9ee8b36.734c85", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "0", "name": "", "x": 630, "y": 260, "wires": [ [ "a7a2904.593487" ] ] }, { "id": "a7a2904.593487", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "0", "name": "", "x": 750, "y": 260, "wires": [ [ "279782c.479ba7e" ] ] }, { "id": "279782c.479ba7e", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "0", "name": "", "x": 870, "y": 260, "wires": [ [ "1303403f.395ae" ] ] }, { "id": "1303403f.395ae", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "0", "name": "", "x": 990, "y": 260, "wires": [ [ "69b03db9.060954" ] ] }, { "id": "69b03db9.060954", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "2", "name": "", "x": 1110, "y": 260, "wires": [ [ "b062acc0.196ee" ] ] }, { "id": "b062acc0.196ee", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "4", "name": "", "x": 1230, "y": 260, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "d7836c87.67457", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 300, "wires": [ [ "e8f59270.2bb38" ] ] }, { "id": "e8f59270.2bb38", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "VRV Prod", "name": "", "x": 320, "y": 300, "wires": [ [ "b3cb0ec1.8ef64" ] ] }, { "id": "b3cb0ec1.8ef64", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "1", "name": "", "x": 630, "y": 300, "wires": [ [ "2c56a8a.dd52b58" ] ] }, { "id": "2c56a8a.dd52b58", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "1", "name": "", "x": 750, "y": 300, "wires": [ [ "cdb8e2f6.e8e4e" ] ] }, { "id": "cdb8e2f6.e8e4e", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "1", "name": "", "x": 870, "y": 300, "wires": [ [ "42f4c4d1.4a12bc" ] ] }, { "id": "42f4c4d1.4a12bc", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "1", "name": "", "x": 990, "y": 300, "wires": [ [ "3b142f52.6ae08" ] ] }, { "id": "3b142f52.6ae08", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "1", "name": "", "x": 1110, "y": 300, "wires": [ [ "da9cc233.cb4ec" ] ] }, { "id": "da9cc233.cb4ec", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "1", "name": "", "x": 1230, "y": 300, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "43d8aa18.594ba4", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 340, "wires": [ [ "1bcd74aa.92fe9b" ] ] }, { "id": "1bcd74aa.92fe9b", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Margotte Tournicote", "name": "", "x": 360, "y": 340, "wires": [ [ "f9e74f39.595b" ] ] }, { "id": "f9e74f39.595b", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "2", "name": "", "x": 630, "y": 340, "wires": [ [ "3a82af45.d4bfb" ] ] }, { "id": "3a82af45.d4bfb", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "2", "name": "", "x": 750, "y": 340, "wires": [ [ "bd713309.4ded2" ] ] }, { "id": "bd713309.4ded2", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "0", "name": "", "x": 870, "y": 340, "wires": [ [ "2bf931a6.c3e67e" ] ] }, { "id": "2bf931a6.c3e67e", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "0", "name": "", "x": 990, "y": 340, "wires": [ [ "74cbb62f.cd35b8" ] ] }, { "id": "74cbb62f.cd35b8", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "2", "name": "", "x": 1110, "y": 340, "wires": [ [ "e05046ec.ab2488" ] ] }, { "id": "e05046ec.ab2488", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "0", "name": "", "x": 1230, "y": 340, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "be958282.c1a7c", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 380, "wires": [ [ "f9843635.46bf38" ] ] }, { "id": "f9843635.46bf38", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Miweo", "name": "", "x": 310, "y": 380, "wires": [ [ "cb3f62e7.7693a" ] ] }, { "id": "cb3f62e7.7693a", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "0", "name": "", "x": 630, "y": 380, "wires": [ [ "964f2e11.333c9" ] ] }, { "id": "964f2e11.333c9", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "0", "name": "", "x": 750, "y": 380, "wires": [ [ "5230b0d3.80b1f" ] ] }, { "id": "5230b0d3.80b1f", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "1", "name": "", "x": 870, "y": 380, "wires": [ [ "ea27b6a.12f6f48" ] ] }, { "id": "ea27b6a.12f6f48", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "1", "name": "", "x": 990, "y": 380, "wires": [ [ "a2d131f3.ccec3" ] ] }, { "id": "a2d131f3.ccec3", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "2", "name": "", "x": 1110, "y": 380, "wires": [ [ "1f2c2ae6.8fe395" ] ] }, { "id": "1f2c2ae6.8fe395", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "2", "name": "", "x": 1230, "y": 380, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "c032e485.62aee8", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 420, "wires": [ [ "5a509a78.3cac34" ] ] }, { "id": "5a509a78.3cac34", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Yousign", "name": "", "x": 320, "y": 420, "wires": [ [ "1319c7b9.b947f8" ] ] }, { "id": "1319c7b9.b947f8", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "0", "name": "", "x": 630, "y": 420, "wires": [ [ "ee00d593.f40dd8" ] ] }, { "id": "ee00d593.f40dd8", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "0", "name": "", "x": 750, "y": 420, "wires": [ [ "91819f8e.b301d" ] ] }, { "id": "91819f8e.b301d", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "2", "name": "", "x": 870, "y": 420, "wires": [ [ "8b781ed2.192b1" ] ] }, { "id": "8b781ed2.192b1", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "2", "name": "", "x": 990, "y": 420, "wires": [ [ "589c13c4.3badec" ] ] }, { "id": "589c13c4.3badec", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "0", "name": "", "x": 1110, "y": 420, "wires": [ [ "a1453da6.e1968" ] ] }, { "id": "a1453da6.e1968", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "2", "name": "", "x": 1230, "y": 420, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "f8d3a69b.a6b8f8", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 460, "wires": [ [ "80a1c03a.46ba1" ] ] }, { "id": "80a1c03a.46ba1", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Now Social", "name": "", "x": 330, "y": 460, "wires": [ [ "7d326e84.94b32" ] ] }, { "id": "7d326e84.94b32", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "2", "name": "", "x": 630, "y": 460, "wires": [ [ "b65cad6b.32fd7" ] ] }, { "id": "b65cad6b.32fd7", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "2", "name": "", "x": 750, "y": 460, "wires": [ [ "a3ef53ae.a42c6" ] ] }, { "id": "a3ef53ae.a42c6", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "0", "name": "", "x": 870, "y": 460, "wires": [ [ "89253d5.dc715c" ] ] }, { "id": "89253d5.dc715c", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "0", "name": "", "x": 990, "y": 460, "wires": [ [ "49c33a43.056594" ] ] }, { "id": "49c33a43.056594", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "0", "name": "", "x": 1110, "y": 460, "wires": [ [ "6df7069c.635d58" ] ] }, { "id": "6df7069c.635d58", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "2", "name": "", "x": 1230, "y": 460, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "e2df3288.acea4", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 500, "wires": [ [ "6414f3ed.8bec2c" ] ] }, { "id": "6414f3ed.8bec2c", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Partelya", "name": "", "x": 320, "y": 500, "wires": [ [ "672f43d0.292bbc" ] ] }, { "id": "672f43d0.292bbc", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "2", "name": "", "x": 630, "y": 500, "wires": [ [ "5b5c6724.acfec8" ] ] }, { "id": "5b5c6724.acfec8", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "2", "name": "", "x": 750, "y": 500, "wires": [ [ "eb4923ec.c6f06" ] ] }, { "id": "eb4923ec.c6f06", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "2", "name": "", "x": 870, "y": 500, "wires": [ [ "62759b9d.5f2a54" ] ] }, { "id": "62759b9d.5f2a54", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "0", "name": "", "x": 990, "y": 500, "wires": [ [ "872fb1dd.ac2e8" ] ] }, { "id": "872fb1dd.ac2e8", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "0", "name": "", "x": 1110, "y": 500, "wires": [ [ "8a86db3d.3b1de8" ] ] }, { "id": "8a86db3d.3b1de8", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "0", "name": "", "x": 1230, "y": 500, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "9d780ee6.92b81", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 540, "wires": [ [ "5a49de6.703452" ] ] }, { "id": "5a49de6.703452", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Pristi Mantis", "name": "", "x": 330, "y": 540, "wires": [ [ "ccc4e3.91374b2" ] ] }, { "id": "ccc4e3.91374b2", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "0", "name": "", "x": 630, "y": 540, "wires": [ [ "eae9121e.74a27" ] ] }, { "id": "eae9121e.74a27", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "0", "name": "", "x": 750, "y": 540, "wires": [ [ "aae36273.27697" ] ] }, { "id": "aae36273.27697", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "0", "name": "", "x": 870, "y": 540, "wires": [ [ "211c2627.f6485a" ] ] }, { "id": "211c2627.f6485a", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "3", "name": "", "x": 990, "y": 540, "wires": [ [ "afc9c366.7a12" ] ] }, { "id": "afc9c366.7a12", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "3", "name": "", "x": 1110, "y": 540, "wires": [ [ "e81eadba.5b2f5" ] ] }, { "id": "e81eadba.5b2f5", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "0", "name": "", "x": 1230, "y": 540, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "9ab0fa6.ecee308", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 580, "wires": [ [ "d2edced1.eb61f" ] ] }, { "id": "d2edced1.eb61f", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Shop & Co", "name": "", "x": 330, "y": 580, "wires": [ [ "aa939d4f.a99c2" ] ] }, { "id": "aa939d4f.a99c2", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "0", "name": "", "x": 630, "y": 580, "wires": [ [ "cdd215d6.7c1338" ] ] }, { "id": "cdd215d6.7c1338", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "0", "name": "", "x": 750, "y": 580, "wires": [ [ "a3d49cfa.62d24" ] ] }, { "id": "a3d49cfa.62d24", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "0", "name": "", "x": 870, "y": 580, "wires": [ [ "a4c16d56.24d5" ] ] }, { "id": "a4c16d56.24d5", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "2", "name": "", "x": 990, "y": 580, "wires": [ [ "73db129c.3e866c" ] ] }, { "id": "73db129c.3e866c", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "2", "name": "", "x": 1110, "y": 580, "wires": [ [ "9aa55b.abc34aa8" ] ] }, { "id": "9aa55b.abc34aa8", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "2", "name": "", "x": 1230, "y": 580, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "4f862682.a1f898", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 620, "wires": [ [ "f4dcc774.1806a8" ] ] }, { "id": "f4dcc774.1806a8", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "SRCI", "name": "", "x": 310, "y": 620, "wires": [ [ "e3330375.b7fd9" ] ] }, { "id": "e3330375.b7fd9", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "2", "name": "", "x": 630, "y": 620, "wires": [ [ "752b8306.6bcc0c" ] ] }, { "id": "752b8306.6bcc0c", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "2", "name": "", "x": 750, "y": 620, "wires": [ [ "24a842af.514afe" ] ] }, { "id": "24a842af.514afe", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "0", "name": "", "x": 870, "y": 620, "wires": [ [ "da0d46cf.d28fc8" ] ] }, { "id": "da0d46cf.d28fc8", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "2", "name": "", "x": 990, "y": 620, "wires": [ [ "ec41db6a.452988" ] ] }, { "id": "ec41db6a.452988", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "0", "name": "", "x": 1110, "y": 620, "wires": [ [ "613004a2.4fc8cc" ] ] }, { "id": "613004a2.4fc8cc", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "0", "name": "", "x": 1230, "y": 620, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "9e03af2f.a200b", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 660, "wires": [ [ "3dfa0a00.c21176" ] ] }, { "id": "3dfa0a00.c21176", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Cocktail 12", "name": "", "x": 330, "y": 660, "wires": [ [ "3681dfd3.e2403" ] ] }, { "id": "3681dfd3.e2403", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient1", "value": "0", "name": "", "x": 630, "y": 660, "wires": [ [ "865e4323.04dc4" ] ] }, { "id": "865e4323.04dc4", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient2", "value": "0", "name": "", "x": 750, "y": 660, "wires": [ [ "78d8b3d7.80ccec" ] ] }, { "id": "78d8b3d7.80ccec", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient3", "value": "0", "name": "", "x": 870, "y": 660, "wires": [ [ "31ee447e.ec33fc" ] ] }, { "id": "31ee447e.ec33fc", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient4", "value": "0", "name": "", "x": 990, "y": 660, "wires": [ [ "76bcfe77.a2621" ] ] }, { "id": "76bcfe77.a2621", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient5", "value": "0", "name": "", "x": 1110, "y": 660, "wires": [ [ "9f6cbd6c.9ca7b" ] ] }, { "id": "9f6cbd6c.9ca7b", "type": "set", "z": "c3aed0d3.3ce58", "property": "ingredient6", "value": "0", "name": "", "x": 1230, "y": 660, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "825d32ca.5587e", "type": "go", "z": "c3aed0d3.3ce58", "name": "", "x": 110, "y": 700, "wires": [ [ "e8ae43e9.437ae" ] ] }, { "id": "e8ae43e9.437ae", "type": "set", "z": "c3aed0d3.3ce58", "property": "titre", "value": "Normandy FrenchTech", "name": "", "x": 370, "y": 700, "wires": [ [ "44883b1d.9f9484" ] ] }, { "id": "44883b1d.9f9484", "type": "function", "z": "c3aed0d3.3ce58", "name": "", "func": "var tab = [0,0,0,0,0,0];\nvar dose = 0;\nvar verre = 0;\nvar maxIngredient = 6;\nvar minIngredient = 0;\nvar maxDose = 3;\nvar minDose = 1; \nfor(var i = 0; i < 6; i++){\n dose = Math.floor( Math.random() * (maxDose - minDose) + minDose)* 1000;\n verre += dose;\n if( verre < 10000){\n tab[Math.floor( Math.random() * (maxIngredient - minIngredient) + minIngredient)] = dose;\n }\n if( verre < 3000 && i == 5){\n i = 0;\n }\n}\nmsg.ingredient1 = tab[0]/1000;\nmsg.ingredient2 = tab[1]/1000;\nmsg.ingredient3 = tab[2]/1000;\nmsg.ingredient4 = tab[3]/1000;\nmsg.ingredient5 = tab[4]/1000;\nmsg.ingredient6 = tab[5]/1000;\nreturn msg;", "outputs": 1, "noerr": 0, "x": 1230, "y": 700, "wires": [ [ "6f2f43aa.f1b1fc" ] ] }, { "id": "2727272420211e1e261f58", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "11", "topic": "smartcard/msgread/2727272420211e1e261f58", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 620, "wires": [ [ "f4dcc774.1806a8" ] ] }, { "id": "272727201f1e1f211f2158", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "6", "topic": "smartcard/msgread/272727201f1e1f211f2158", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 420, "wires": [ [ "5a509a78.3cac34" ] ] }, { "id": "2727272523221e261e1f58", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "?", "topic": "smartcard/msgread/2727272523221e261e1f58", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 700, "wires": [ [ "e8ae43e9.437ae" ] ] }, { "id": "2727271f251e261f272558", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "3", "topic": "smartcard/msgread/2727271f251e261f272558", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 300, "wires": [ [ "e8f59270.2bb38" ] ] }, { "id": "272727201f242426232758", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "4", "topic": "smartcard/msgread/272727201f242426232758", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 340, "wires": [ [ "1bcd74aa.92fe9b" ] ] }, { "id": "2727272225262621272758", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "10", "topic": "smartcard/msgread/2727272225262621272758", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 580, "wires": [ [ "d2edced1.eb61f" ] ] }, { "id": "2727271f25252124212158", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "5", "topic": "smartcard/msgread/2727271f25252124212158", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 380, "wires": [ [ "f9843635.46bf38" ] ] }, { "id": "272727241f242223222358", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "9", "topic": "smartcard/msgread/272727241f242223222358", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 540, "wires": [ [ "5a49de6.703452" ] ] }, { "id": "27271e221e202626242358", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "1", "topic": "smartcard/msgread/27271e221e202626242358", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 220, "wires": [ [ "3263d662.8d245a" ] ] }, { "id": "2727272226232126202358", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "8", "topic": "smartcard/msgread/2727272226232126202358", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 500, "wires": [ [ "6414f3ed.8bec2c" ] ] }, { "id": "27272727212226261e1f58", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "2", "topic": "smartcard/msgread/27272727212226261e1f58", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 260, "wires": [ [ "79c93a12.541524" ] ] }, { "id": "272727211f231e27272758", "type": "mqtt in", "z": "c3aed0d3.3ce58", "name": "7", "topic": "smartcard/msgread/272727211f231e27272758", "qos": "2", "broker": "MQTT.Localhost", "x": 190, "y": 460, "wires": [ [ "80a1c03a.46ba1" ] ] }, { "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": "" } ]