Porting Pyhon to Node-red dashboard

I am trying to port a webserver written in python to node-red so webpages can be displayed on node-red dashboard. I am not sure what is the easiest way to do it?

I am looking for someone here to point me to right direction. The python server code is below:

Thanks.

Hi @happytm

The cookbook has some recipes that cover the basics of creating HTTP end points with Node-RED - https://cookbook.nodered.org/#http-endpoints

That's your starting point.

Beyond that, you'll have to describe any specific functionality you need from the python code you have - we can't really dig through 3000 lines of code for you.

Thanks for link.

In fact I have been using this flow to feed json:

[{"id":"5d1cd6cf.11ce88","type":"tab","label":"Http Endpoints","disabled":false,"info":""},{"id":"cc5f2701.209658","type":"http in","z":"5d1cd6cf.11ce88","name":"","url":"/json","method":"get","upload":false,"swaggerDoc":"","x":91,"y":129,"wires":[["16693221.3f343e"]]},{"id":"952f3954.b98098","type":"change","z":"5d1cd6cf.11ce88","name":"Set Headers","rules":[{"t":"set","p":"headers","pt":"msg","to":"{}","tot":"json"},{"t":"set","p":"headers.content-type","pt":"msg","to":"application/json","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":461,"y":105,"wires":[["70e9962d.b2ab28"]]},{"id":"70e9962d.b2ab28","type":"http response","z":"5d1cd6cf.11ce88","name":"","statusCode":"","headers":{},"x":621,"y":105,"wires":[]},{"id":"b48585f4.7809a8","type":"template","z":"5d1cd6cf.11ce88","name":"simpleFlowJson","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\n\t\"id\": \"b23f10d3.a520b\",\n\t\"label\": \"{{payload.System.Name}}\",\n\t\"nodes\": [\n\t\t{\n\t\t\t\"id\": \"c152d520.662a98\",\n\t\t\t\"type\": \"switch\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"{{payload.System.Name}}\",\n\t\t\t\"property\": \"topic\",\n\t\t\t\"propertyType\": \"msg\",\n\t\t\t\"rules\": [\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"uptime\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"rssi\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"ram\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"load\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"temprature\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"humidity\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"pressure\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"lux\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"breach\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"oled\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"pin\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"cont\",\n\t\t\t\t\t\"v\": \"dimvalue\",\n\t\t\t\t\t\"vt\": \"str\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"checkall\": \"true\",\n\t\t\t\"repair\": false,\n\t\t\t\"outputs\": 12,\n\t\t\t\"x\": 190,\n\t\t\t\"y\": 200,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"d3baafd.9f7165\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"a3fa045e.f08888\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"6a3ffd03.ad7894\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"e68ffe55.e73f7\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"190a885a.78a688\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"2d9a8c83.62d4a4\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"380ef9f5.079b96\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"db1bc5df.3c9ac8\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"8f6fa7dc.7dc448\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"9fac8da.837867\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"1858c6ba.9d3ce9\"\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t\"300865f4.6be85a\",\n\t\t\t\t\t\"748a4bcf.7c3cd4\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"d3baafd.9f7165\",\n\t\t\t\"type\": \"ui_text\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 5,\n\t\t\t\"width\": \"1\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"name\": \"\",\n\t\t\t\"label\": \"Uptime\",\n\t\t\t\"format\": \"{{msg.payload}}\",\n\t\t\t\"layout\": \"col-center\",\n\t\t\t\"x\": 380,\n\t\t\t\"y\": 100,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"e68ffe55.e73f7\",\n\t\t\t\"type\": \"ui_text\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 7,\n\t\t\t\"width\": \"1\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"name\": \"\",\n\t\t\t\"label\": \"Load\",\n\t\t\t\"format\": \"{{msg.payload}}\",\n\t\t\t\"layout\": \"col-center\",\n\t\t\t\"x\": 376,\n\t\t\t\"y\": 217,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"6a3ffd03.ad7894\",\n\t\t\t\"type\": \"ui_text\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 6,\n\t\t\t\"width\": \"1\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"name\": \"\",\n\t\t\t\"label\": \"RAM\",\n\t\t\t\"format\": \"{{msg.payload}}\",\n\t\t\t\"layout\": \"col-center\",\n\t\t\t\"x\": 375,\n\t\t\t\"y\": 177,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"a3fa045e.f08888\",\n\t\t\t\"type\": \"ui_text\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 8,\n\t\t\t\"width\": \"1\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"name\": \"\",\n\t\t\t\"label\": \"RSSI\",\n\t\t\t\"format\": \"{{msg.payload}}\",\n\t\t\t\"layout\": \"col-center\",\n\t\t\t\"x\": 371,\n\t\t\t\"y\": 137,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"300865f4.6be85a\",\n\t\t\t\"type\": \"ui_switch\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"\",\n\t\t\t\"label\": \"On/Off\",\n\t\t\t\"tooltip\": \"Turn Fan On/Off\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 3,\n\t\t\t\"width\": \"2\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"passthru\": false,\n\t\t\t\"decouple\": \"false\",\n\t\t\t\"topic\": \"Livingroom/dimmer/dimvalue/set\",\n\t\t\t\"style\": \"\",\n\t\t\t\"onvalue\": \"128\",\n\t\t\t\"onvalueType\": \"num\",\n\t\t\t\"onicon\": \"\",\n\t\t\t\"oncolor\": \"\",\n\t\t\t\"offvalue\": \"0\",\n\t\t\t\"offvalueType\": \"num\",\n\t\t\t\"officon\": \"\",\n\t\t\t\"offcolor\": \"\",\n\t\t\t\"x\": 370,\n\t\t\t\"y\": 300,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"1b2e4f9b.31b9d\",\n\t\t\t\t\t\"375f771f.a79638\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"748a4bcf.7c3cd4\",\n\t\t\t\"type\": \"ui_slider\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"\",\n\t\t\t\"label\": \"Fan Speed\",\n\t\t\t\"tooltip\": \"Adjust Fan Speed\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 4,\n\t\t\t\"width\": \"4\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"passthru\": false,\n\t\t\t\"outs\": \"end\",\n\t\t\t\"topic\": \"Livingroom/dimmer/dimvalue/set\",\n\t\t\t\"min\": 0,\n\t\t\t\"max\": \"128\",\n\t\t\t\"step\": 1,\n\t\t\t\"x\": 350,\n\t\t\t\"y\": 340,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"1b2e4f9b.31b9d\",\n\t\t\t\t\t\"375f771f.a79638\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"1858c6ba.9d3ce9\",\n\t\t\t\"type\": \"ui_numeric\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"\",\n\t\t\t\"label\": \"Fan\",\n\t\t\t\"tooltip\": \"Select Fan\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 2,\n\t\t\t\"width\": \"2\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"passthru\": false,\n\t\t\t\"topic\": \"Livingroom/dimmer/pin/set\",\n\t\t\t\"format\": \"{{value}}\",\n\t\t\t\"min\": \"6\",\n\t\t\t\"max\": \"9\",\n\t\t\t\"step\": 1,\n\t\t\t\"x\": 370,\n\t\t\t\"y\": 260,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"1b2e4f9b.31b9d\",\n\t\t\t\t\t\"375f771f.a79638\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"2d9a8c83.62d4a4\",\n\t\t\t\"type\": \"ui_gauge\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Humidity\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 10,\n\t\t\t\"width\": \"1\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"gtype\": \"gage\",\n\t\t\t\"title\": \"Humidity\",\n\t\t\t\"label\": \"\",\n\t\t\t\"format\": \"{{value}} %\",\n\t\t\t\"min\": \"40\",\n\t\t\t\"max\": \"100\",\n\t\t\t\"colors\": [\n\t\t\t\t\"#00b500\",\n\t\t\t\t\"#e6e600\",\n\t\t\t\t\"#ca3838\"\n\t\t\t],\n\t\t\t\"seg1\": \"\",\n\t\t\t\"seg2\": \"\",\n\t\t\t\"x\": 540,\n\t\t\t\"y\": 140,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"190a885a.78a688\",\n\t\t\t\"type\": \"ui_gauge\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Temperature\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 9,\n\t\t\t\"width\": \"1\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"gtype\": \"gage\",\n\t\t\t\"title\": \"Temperature\",\n\t\t\t\"label\": \"\",\n\t\t\t\"format\": \"{{value}} F\",\n\t\t\t\"min\": \"45\",\n\t\t\t\"max\": \"90\",\n\t\t\t\"colors\": [\n\t\t\t\t\"#00b500\",\n\t\t\t\t\"#e6e600\",\n\t\t\t\t\"#ca3838\"\n\t\t\t],\n\t\t\t\"seg1\": \"\",\n\t\t\t\"seg2\": \"\",\n\t\t\t\"x\": 550,\n\t\t\t\"y\": 100,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"db1bc5df.3c9ac8\",\n\t\t\t\"type\": \"ui_gauge\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Luminocity\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 12,\n\t\t\t\"width\": \"1\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"gtype\": \"gage\",\n\t\t\t\"title\": \"Luminocity\",\n\t\t\t\"label\": \"\",\n\t\t\t\"format\": \"{{value}} Lux\",\n\t\t\t\"min\": 0,\n\t\t\t\"max\": 10,\n\t\t\t\"colors\": [\n\t\t\t\t\"#00b500\",\n\t\t\t\t\"#e6e600\",\n\t\t\t\t\"#ca3838\"\n\t\t\t],\n\t\t\t\"seg1\": \"\",\n\t\t\t\"seg2\": \"\",\n\t\t\t\"x\": 550,\n\t\t\t\"y\": 220,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"380ef9f5.079b96\",\n\t\t\t\"type\": \"ui_gauge\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Pressure\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 11,\n\t\t\t\"width\": \"1\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"gtype\": \"gage\",\n\t\t\t\"title\": \"Pressure\",\n\t\t\t\"label\": \"\",\n\t\t\t\"format\": \"{{value}} Kpa\",\n\t\t\t\"min\": 0,\n\t\t\t\"max\": 10,\n\t\t\t\"colors\": [\n\t\t\t\t\"#00b500\",\n\t\t\t\t\"#e6e600\",\n\t\t\t\t\"#ca3838\"\n\t\t\t],\n\t\t\t\"seg1\": \"\",\n\t\t\t\"seg2\": \"\",\n\t\t\t\"x\": 540,\n\t\t\t\"y\": 180,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"5967f775.8c0db8\",\n\t\t\t\"type\": \"ui_switch\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Alarm\",\n\t\t\t\"label\": \"On/Off\",\n\t\t\t\"tooltip\": \"Turn Alarm On/Off\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 14,\n\t\t\t\"width\": \"2\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"passthru\": true,\n\t\t\t\"decouple\": \"false\",\n\t\t\t\"topic\": \"Livingroom/alarm/set\",\n\t\t\t\"style\": \"\",\n\t\t\t\"onvalue\": \"On\",\n\t\t\t\"onvalueType\": \"str\",\n\t\t\t\"onicon\": \"\",\n\t\t\t\"oncolor\": \"\",\n\t\t\t\"offvalue\": \"Off\",\n\t\t\t\"offvalueType\": \"str\",\n\t\t\t\"officon\": \"\",\n\t\t\t\"offcolor\": \"\",\n\t\t\t\"x\": 350,\n\t\t\t\"y\": 420,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"a31e1e6f.1c59f\",\n\t\t\t\t\t\"6711c0e3.3e981\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"8f6fa7dc.7dc448\",\n\t\t\t\"type\": \"ui_text_input\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Security\",\n\t\t\t\"label\": \"Security\",\n\t\t\t\"tooltip\": \"Watch for Security breach\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 13,\n\t\t\t\"width\": \"2\",\n\t\t\t\"height\": \"1\",\n\t\t\t\"passthru\": true,\n\t\t\t\"mode\": \"text\",\n\t\t\t\"delay\": 300,\n\t\t\t\"topic\": \"Livingroom/breach/set\",\n\t\t\t\"x\": 340,\n\t\t\t\"y\": 380,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"1b2e4f9b.31b9d\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"1b2e4f9b.31b9d\",\n\t\t\t\"type\": \"join\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Announce\",\n\t\t\t\"mode\": \"custom\",\n\t\t\t\"build\": \"string\",\n\t\t\t\"property\": \"payload\",\n\t\t\t\"propertyType\": \"msg\",\n\t\t\t\"key\": \"topic\",\n\t\t\t\"joiner\": \"\\\\n\",\n\t\t\t\"joinerType\": \"str\",\n\t\t\t\"accumulate\": false,\n\t\t\t\"timeout\": \"5\",\n\t\t\t\"count\": \"1\",\n\t\t\t\"reduceRight\": false,\n\t\t\t\"reduceExp\": \"\",\n\t\t\t\"reduceInit\": \"\",\n\t\t\t\"reduceInitType\": \"\",\n\t\t\t\"reduceFixup\": \"\",\n\t\t\t\"x\": 560,\n\t\t\t\"y\": 320,\n\t\t\t\"wires\": [\n\t\t\t\t[]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"a31e1e6f.1c59f\",\n\t\t\t\"type\": \"mqtt out\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"\",\n\t\t\t\"topic\": \"\",\n\t\t\t\"qos\": \"\",\n\t\t\t\"retain\": \"\",\n\t\t\t\"broker\": \"640a3afa.1e8d84\",\n\t\t\t\"x\": 570,\n\t\t\t\"y\": 360,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"375f771f.a79638\",\n\t\t\t\"type\": \"batch\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"2 Together\",\n\t\t\t\"mode\": \"count\",\n\t\t\t\"count\": \"2\",\n\t\t\t\"overlap\": 0,\n\t\t\t\"interval\": 10,\n\t\t\t\"allowEmptySequence\": false,\n\t\t\t\"topics\": [],\n\t\t\t\"x\": 560,\n\t\t\t\"y\": 280,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"a31e1e6f.1c59f\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"85c4dc23.863a1\",\n\t\t\t\"type\": \"ping\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Ken\",\n\t\t\t\"host\": \"10.1.10.27\",\n\t\t\t\"timer\": \"20\",\n\t\t\t\"x\": 70,\n\t\t\t\"y\": 320,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"a1c77827.174d68\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"a1c77827.174d68\",\n\t\t\t\"type\": \"switch\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"\",\n\t\t\t\"property\": \"payload\",\n\t\t\t\"propertyType\": \"msg\",\n\t\t\t\"rules\": [\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"false\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"checkall\": \"true\",\n\t\t\t\"repair\": false,\n\t\t\t\"outputs\": 1,\n\t\t\t\"x\": 190,\n\t\t\t\"y\": 320,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"36fa97cd.a7b618\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"b7846727.581da8\",\n\t\t\t\"type\": \"rbe\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Block \",\n\t\t\t\"func\": \"rbe\",\n\t\t\t\"gap\": \"\",\n\t\t\t\"start\": \"\",\n\t\t\t\"inout\": \"out\",\n\t\t\t\"property\": \"payload\",\n\t\t\t\"x\": 690,\n\t\t\t\"y\": 420,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"1b2e4f9b.31b9d\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"6711c0e3.3e981\",\n\t\t\t\"type\": \"change\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Alarm Status\",\n\t\t\t\"rules\": [\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"change\",\n\t\t\t\t\t\"p\": \"payload\",\n\t\t\t\t\t\"pt\": \"msg\",\n\t\t\t\t\t\"from\": \"On\",\n\t\t\t\t\t\"fromt\": \"str\",\n\t\t\t\t\t\"to\": \"Alarm is set to On\",\n\t\t\t\t\t\"tot\": \"str\"\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"change\",\n\t\t\t\t\t\"p\": \"payload\",\n\t\t\t\t\t\"pt\": \"msg\",\n\t\t\t\t\t\"from\": \"Off\",\n\t\t\t\t\t\"fromt\": \"str\",\n\t\t\t\t\t\"to\": \"Alarm is set to Off\",\n\t\t\t\t\t\"tot\": \"str\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"action\": \"\",\n\t\t\t\"property\": \"\",\n\t\t\t\"from\": \"\",\n\t\t\t\"to\": \"\",\n\t\t\t\"reg\": false,\n\t\t\t\"x\": 530,\n\t\t\t\"y\": 420,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"b7846727.581da8\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"36fa97cd.a7b618\",\n\t\t\t\"type\": \"change\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Alarm On\",\n\t\t\t\"rules\": [\n\t\t\t\t{\n\t\t\t\t\t\"t\": \"change\",\n\t\t\t\t\t\"p\": \"payload\",\n\t\t\t\t\t\"pt\": \"msg\",\n\t\t\t\t\t\"from\": \"false\",\n\t\t\t\t\t\"fromt\": \"bool\",\n\t\t\t\t\t\"to\": \"On\",\n\t\t\t\t\t\"tot\": \"str\"\n\t\t\t\t}\n\t\t\t],\n\t\t\t\"action\": \"\",\n\t\t\t\"property\": \"\",\n\t\t\t\"from\": \"\",\n\t\t\t\"to\": \"\",\n\t\t\t\"reg\": false,\n\t\t\t\"x\": 160,\n\t\t\t\"y\": 420,\n\t\t\t\"wires\": [\n\t\t\t\t[\n\t\t\t\t\t\"5967f775.8c0db8\"\n\t\t\t\t]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"53c6d405.0790cc\",\n\t\t\t\"type\": \"debug\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"\",\n\t\t\t\"active\": true,\n\t\t\t\"tosidebar\": true,\n\t\t\t\"console\": false,\n\t\t\t\"tostatus\": false,\n\t\t\t\"complete\": \"false\",\n\t\t\t\"x\": 370,\n\t\t\t\"y\": 520,\n\t\t\t\"wires\": []\n\t\t},\n\t\t{\n\t\t\t\"id\": \"9fac8da.837867\",\n\t\t\t\"type\": \"ui_text_input\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"Oled\",\n\t\t\t\"label\": \"Messages\",\n\t\t\t\"tooltip\": \"\",\n\t\t\t\"group\": \"11655475.b9d69c\",\n\t\t\t\"order\": 15,\n\t\t\t\"width\": 0,\n\t\t\t\"height\": 0,\n\t\t\t\"passthru\": true,\n\t\t\t\"mode\": \"text\",\n\t\t\t\"delay\": 300,\n\t\t\t\"topic\": \"\",\n\t\t\t\"x\": 350,\n\t\t\t\"y\": 460,\n\t\t\t\"wires\": [\n\t\t\t\t[]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"25824b00.577426\",\n\t\t\t\"type\": \"saveflow\",\n\t\t\t\"z\": \"b23f10d3.a520b\",\n\t\t\t\"name\": \"\",\n\t\t\t\"path\": \"/home/pi/rpieasy/flows/\",\n\t\t\t\"enabled\": true,\n\t\t\t\"exporttype\": \"addflow\",\n\t\t\t\"x\": 140,\n\t\t\t\"y\": 40,\n\t\t\t\"wires\": [\n\t\t\t\t[]\n\t\t\t]\n\t\t},\n\t\t{\n\t\t\t\"id\": \"11655475.b9d69c\",\n\t\t\t\"type\": \"ui_group\",\n\t\t\t\"z\": \"\",\n\t\t\t\"name\": \"{{payload.System.Name}}\",\n\t\t\t\"tab\": \"47f3aa96.cda2b4\",\n\t\t\t\"order\": 6,\n\t\t\t\"disp\": true,\n\t\t\t\"width\": \"4\",\n\t\t\t\"collapse\": true\n\t\t},\n\t\t{\n\t\t\t\"id\": \"640a3afa.1e8d84\",\n\t\t\t\"type\": \"mqtt-broker\",\n\t\t\t\"z\": \"\",\n\t\t\t\"name\": \"Eclipse\",\n\t\t\t\"broker\": \"iot.eclipse.org\",\n\t\t\t\"port\": \"1883\",\n\t\t\t\"clientid\": \"\",\n\t\t\t\"usetls\": false,\n\t\t\t\"compatmode\": true,\n\t\t\t\"keepalive\": \"60\",\n\t\t\t\"cleansession\": true,\n\t\t\t\"birthTopic\": \"\",\n\t\t\t\"birthQos\": \"0\",\n\t\t\t\"birthPayload\": \"\",\n\t\t\t\"closeTopic\": \"\",\n\t\t\t\"closeQos\": \"0\",\n\t\t\t\"closePayload\": \"\",\n\t\t\t\"willTopic\": \"\",\n\t\t\t\"willQos\": \"0\",\n\t\t\t\"willPayload\": \"\"\n\t\t}\n\t]\n}","output":"json","x":485,"y":192,"wires":[["952f3954.b98098"]]},{"id":"16693221.3f343e","type":"http request","z":"5d1cd6cf.11ce88","name":"","method":"GET","ret":"obj","paytoqs":false,"url":"http://{{{payload}}}/json","tls":"","proxy":"","authType":"","x":271,"y":163,"wires":[["b48585f4.7809a8"]]},{"id":"fdbcba43.6cf6e8","type":"inject","z":"5d1cd6cf.11ce88","name":"","topic":"","payload":"10.1.10.49","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":"1","x":107,"y":190,"wires":[["16693221.3f343e"]]}]

Thanks