[ { "id": "1351c43d.6fb6bc", "type": "http in", "z": "33aef25f.2993be", "name": "", "url": "/data", "method": "get", "swaggerDoc": "", "x": 124, "y": 1059, "wires": [ [ "3089c546.8a0eca" ] ] }, { "id": "c3a67ddc.c1fea", "type": "template", "z": "33aef25f.2993be", "name": "Css", "field": "payload.style", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "input[type=text], select {\n width: 100%;\n padding: 12px 20px;\n margin: 8px 0;\n display: inline-block;\n border: 1px solid #ccc;\n border-radius: 4px;\n box-sizing: border-box;\n}\n\ninput[type=submit] {\n width: 100%;\n background-color: #4CAF50;\n color: white;\n padding: 14px 20px;\n margin: 8px 0;\n border: none;\n border-radius: 4px;\n cursor: pointer;\n}\n\ninput[type=submit]:hover {\n background-color: #45a049;\n}\n\nh1 {\n text-align: center;\n text-decoration : underline;\n}\n\np {\n position:relative;\n text-align: center;\n top:35%;\n font-size:200%;\n}\n\n.ligne_verticale\n{\n position:absolute;\n left:50%;\n background-color: black;\n width : 1px;\n height : 500px;\n}\n\n.classe1{\n position:absolute;\n height : 500px;\n left:0%;\n right:50%;\n border-color : black;\n border-width:2px;\n border-style:solid;\n text-align: center;\n background-image:url(https://thumbs.dreamstime.com/z/salle-de-classe-4080466.jpg);\n background-size: 1000px;\n font-size:150%;\n}\n\n.classe2{\n position:absolute;\n height : 500px;\n left:50%;\n right:0%;\n border-color : black;\n border-width:2px;\n border-style:solid;\n text-align: center;\n background-image:url(http://ekladata.com/pkDkulWd3dWUorCGAReBL7zumRo.jpg);\n background-size: 1000px;\n font-size:150%;\n}\n", "x": 694.5, "y": 1027, "wires": [ [ "f16732de.311ba8" ] ] }, { "id": "5c204610.4f9638", "type": "http response", "z": "33aef25f.2993be", "name": "http out", "x": 1065, "y": 1096, "wires": [] }, { "id": "3089c546.8a0eca", "type": "function", "z": "33aef25f.2993be", "name": "Data buffer1", "func": "context.data = context.data || new Object();\n\nvar counter1 = global.get(\"counter1\");\nvar name1 = global.get(\"name1\");\nvar counter2 = global.get(\"counter2\");\nvar name2 = global.get(\"name2\");\n\nswitch (msg.topic) {\n case \"json\":\n context.data.count1 = counter1;\n context.data.room1 = name1;\n context.data.count2 = counter2;\n context.data.room2 = name2;\n msg = null;\n break;\n case \"test\":\n context.data.time = msg.payload;\n msg = null;\n break;\n default:\n msg.data = context.data;\n}\nreturn msg;", "outputs": "1", "noerr": 0, "x": 327, "y": 1026, "wires": [ [ "301db3b1.07028c" ] ] }, { "id": "9fc606f.07c88f8", "type": "http in", "z": "33aef25f.2993be", "name": "", "url": "/web", "method": "get", "swaggerDoc": "", "x": 297, "y": 1148, "wires": [ [ "27f46084.269eb" ] ] }, { "id": "27f46084.269eb", "type": "template", "z": "33aef25f.2993be", "name": "Auto Update Script", "field": "payload", "fieldType": "msg", "format": "handlebars", "syntax": "mustache", "template": "\n
{{data.count1}} / 30
\n{{data.count2}} / 45
\n