[text] ctc

Viewer

  1. [
  2.     {
  3.         "id": "83fdf38bc3f0ef2c",
  4.         "type": "tab",
  5.         "label": "21BAI1915 Exp2",
  6.         "disabled": false,
  7.         "info": "",
  8.         "env": []
  9.     },
  10.     {
  11.         "id": "2015600737bad1f6",
  12.         "type": "http in",
  13.         "z": "83fdf38bc3f0ef2c",
  14.         "name": "IoT Domain",
  15.         "url": "/IotDomain",
  16.         "method": "get",
  17.         "upload": false,
  18.         "swaggerDoc": "",
  19.         "x": 170,
  20.         "y": 80,
  21.         "wires": [
  22.             [
  23.                 "d7348c3d26790ce0"
  24.             ]
  25.         ]
  26.     },
  27.     {
  28.         "id": "d7348c3d26790ce0",
  29.         "type": "function",
  30.         "z": "83fdf38bc3f0ef2c",
  31.         "name": "function 1",
  32.         "func": "msg.url =\"Project\";\nreturn msg;",
  33.         "outputs": 1,
  34.         "noerr": 0,
  35.         "initialize": "",
  36.         "finalize": "",
  37.         "libs": [],
  38.         "x": 360,
  39.         "y": 120,
  40.         "wires": [
  41.             [
  42.                 "0837e3d792da7706"
  43.             ]
  44.         ]
  45.     },
  46.     {
  47.         "id": "0837e3d792da7706",
  48.         "type": "template",
  49.         "z": "83fdf38bc3f0ef2c",
  50.         "name": "Display Panel",
  51.         "field": "payload",
  52.         "fieldType": "msg",
  53.         "format": "handlebars",
  54.         "syntax": "mustache",
  55.         "template": "<!DOCTYPE html>\n\n<html>\n    <head>\n        <h1 style=\"background-color:DodgerBlue;\">IoT Domain</h1>\n    </head>\n    <body>\n<p style=\"background-color:Tomato;\">\n    \n<OL>\n<LI> Enter your Name. \n<LI> Registration Number.\n</OL>\n\n<h4>\n    <a href=\"https://projectmark.com/\"> Project Mark</a>\n    \n    </h4>\n\n<form method=\"post\" action=\"/{{url}}\">\n\n  <label for=\"name\">First name:</label><br>\n  <input type=\"text\" id=\"fname\" name=\"fname\"><br>\n  \n  <label for=\"reg\">Reg No:</label><br>\n  <input type=\"text\" id=\"reg\" name=\"reg\" ><br><br>\n  \n  <label for=\"topic\">Project Title:</label><br>\n  <input type=\"text\" id=\"topic\" name=\"Project Topic\" ><br><br>\n  \n  <input type=\"submit\" value=\"Submit\">\n  \n  <input type=\"reset\" value=\"Reset\" >\n\n</form> \n\n</body>\n</html>",
  56.         "output": "str",
  57.         "x": 560,
  58.         "y": 180,
  59.         "wires": [
  60.             [
  61.                 "aa20c83527ff4912"
  62.             ]
  63.         ]
  64.     },
  65.     {
  66.         "id": "aa20c83527ff4912",
  67.         "type": "http response",
  68.         "z": "83fdf38bc3f0ef2c",
  69.         "name": "IoT Domain",
  70.         "statusCode": "",
  71.         "headers": {},
  72.         "x": 810,
  73.         "y": 200,
  74.         "wires": []
  75.     },
  76.     {
  77.         "id": "3ecdfcb19778ac59",
  78.         "type": "http in",
  79.         "z": "83fdf38bc3f0ef2c",
  80.         "name": "",
  81.         "url": "/Project",
  82.         "method": "post",
  83.         "upload": false,
  84.         "swaggerDoc": "",
  85.         "x": 190,
  86.         "y": 360,
  87.         "wires": [
  88.             [
  89.                 "80c580e87e925add",
  90.                 "e55ac42a672e6525"
  91.             ]
  92.         ]
  93.     },
  94.     {
  95.         "id": "80c580e87e925add",
  96.         "type": "json",
  97.         "z": "83fdf38bc3f0ef2c",
  98.         "name": "",
  99.         "property": "payload",
  100.         "action": "",
  101.         "pretty": false,
  102.         "x": 390,
  103.         "y": 300,
  104.         "wires": [
  105.             [
  106.                 "4e303c65f50c16c0"
  107.             ]
  108.         ]
  109.     },
  110.     {
  111.         "id": "4e303c65f50c16c0",
  112.         "type": "function",
  113.         "z": "83fdf38bc3f0ef2c",
  114.         "name": "function 2",
  115.         "func": "msg.payload = \"Data Submited and is available in debug window; \" + msg.payload;\nreturn msg;",
  116.         "outputs": 1,
  117.         "noerr": 0,
  118.         "initialize": "",
  119.         "finalize": "",
  120.         "libs": [],
  121.         "x": 640,
  122.         "y": 320,
  123.         "wires": [
  124.             [
  125.                 "16b10152b23234a1"
  126.             ]
  127.         ]
  128.     },
  129.     {
  130.         "id": "e55ac42a672e6525",
  131.         "type": "debug",
  132.         "z": "83fdf38bc3f0ef2c",
  133.         "name": "Display",
  134.         "active": true,
  135.         "tosidebar": true,
  136.         "console": false,
  137.         "tostatus": false,
  138.         "complete": "payload",
  139.         "targetType": "msg",
  140.         "statusVal": "",
  141.         "statusType": "auto",
  142.         "x": 560,
  143.         "y": 440,
  144.         "wires": []
  145.     },
  146.     {
  147.         "id": "16b10152b23234a1",
  148.         "type": "http response",
  149.         "z": "83fdf38bc3f0ef2c",
  150.         "name": "Submitted",
  151.         "statusCode": "",
  152.         "headers": {},
  153.         "x": 880,
  154.         "y": 360,
  155.         "wires": []
  156.     },
  157.     {
  158.         "id": "798428370d62d0ac",
  159.         "type": "comment",
  160.         "z": "83fdf38bc3f0ef2c",
  161.         "name": "Form Submission",
  162.         "info": "",
  163.         "x": 260,
  164.         "y": 240,
  165.         "wires": []
  166.     }
  167. ]

Editor

You can edit this paste and save as new:


File Description
  • ctc
  • Paste Code
  • 23 Apr-2024
  • 4.63 Kb
You can Share it: