2020年10月16日 星期五

Node-RED HTTP

Node-RED HTTP










[{"id":"8482af94.daf62","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/index","method":"get","swaggerDoc":"","x":140,"y":100,"wires":[["e7ea66d5.1e5a48"]]},{"id":"e7ea66d5.1e5a48","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html>\n<html>\n<head></head>\n<body>\n<p id=\"demo\">Homepage Demo 網頁示範</p> \n<button onclick=\"ON()\">ON</button>\n<script>\nfunction ON() {\n    document.getElementById(\"demo\").innerHTML = \"LED is on (開燈)\";\n}\n</script>\n\n<button onclick=\"OFF()\">OFF</button>\n<script>\nfunction OFF() {\n     document.getElementById(\"demo\").innerHTML = \"LED is off (關燈)\";\n}\n</script>\n</body>\n</html> ","x":290,"y":100,"wires":[["ea529912.8a7118"]]},{"id":"ea529912.8a7118","type":"http response","z":"7366c746.f2b2d8","name":"","x":430,"y":100,"wires":[]},{"id":"3ecfdd4a.689022","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/index2","method":"get","upload":false,"swaggerDoc":"","x":150,"y":180,"wires":[["ba486fbe.66961"]]},{"id":"ba486fbe.66961","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html>\n<html>\n<body>\n<center>\n<h1>    \n<p> ESP32 LED on off Control demo</p> \n</h1>\n\nCiclk to turn LED ON \n<button onclick=\"ON()\">ON</button>\n<script>\nfunction ON() {\n    document.getElementById(\"demo\").innerHTML = \"LED is on (開燈)\";\n}\n</script>\n\n<br>\n\nCiclk to turn LED OFF \n<button onclick=\"OFF()\">OFF</button>\n<script>\nfunction OFF() {\n     document.getElementById(\"demo\").innerHTML = \"LED is off (關燈)\";\n}\n</script>\n\n<br>\n<hr>\n<a href=\"http://alex9ufoexploer.blogspot.com/\">http://alex9ufoexploer.blogspot.com/</a>\n\n <p  id=\"demo\" >WiFi LED on off demo: 1</p> \n </center>\n \n</body>\n</html>","x":290,"y":180,"wires":[["cf3b4497.aa2cc8"]]},{"id":"cf3b4497.aa2cc8","type":"http response","z":"7366c746.f2b2d8","name":"","x":430,"y":180,"wires":[]},{"id":"8ddbef54.75a03","type":"http response","z":"7366c746.f2b2d8","name":"","x":450,"y":220,"wires":[]},{"id":"d512e108.1cafb","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":" <!DOCTYPE HTML> \n <html> \n <head><meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\"> \n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n <title>ESP8266 Wifi LED Control</title> \n\n <style> \n \n input[type=\"submit\"] { color:#050; width:70px; padding:10px; \n font: bold 84% \"trebuchet ms\",helvetica,sans-serif;  background-color:lightgreen;  border:1px solid; border-radius: 12px;  transition-duration: 0.4s;  } \n \n input[type=\"submit\"]:hover {  background-color:lightblue;  color: white;  }\n \n </style></head> \n\n <body>\n <h1>Control of nodeMCU<br>(ESP8266-E12) Built in LED.</h1> \n <p>The built in LED for NodeMCU V3 is on D4</p> \n <form action=\"/index3/LEDon\" method=\"GET\"> \n <input type=\"submit\" name=\"ledbi\" value=\"ON\" > Turn Built in LED on<br><br> \n </form> \n \n <form action=\"/index3/LEDoff\" method=\"GET\"> \n <input type=\"submit\" name=\"ledbi\" value=\"OFF\"> Turn Built in LED off<br><br> \n </form> \n \n <form action=\"/index3/LEDblink\" method=\"GET\"> \n <input type=\"submit\" name=\"ledbi\" value=\"Blink\"> Blink LED<br><br> \n </form> \n  \n <form action=\"/index3/Blinkoff\" method=\"GET\"> \n <input type=\"submit\" name=\"ledbi\" value=\"Blinkoff\"> Stop LED Blink\n </form> \n \n \n <br>\n<hr>\n<a href=\"http://alex9ufoexploer.blogspot.com/\">http://alex9ufoexploer.blogspot.com/</a>\n\n <p id=\"demo1\"><h2>LED on off blink control </h2> </p> \n \n\n<script>\nfunction ON() {\n    document.getElementById(\"demo1\").innerHTML = \"LED is on (開燈)\";\n}\n</script>\n\n<br>\n \n \n </body></html> \n","x":310,"y":220,"wires":[["8ddbef54.75a03"]]},{"id":"a270a1f5.d0974","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/index3","method":"get","upload":false,"swaggerDoc":"","x":150,"y":220,"wires":[["d512e108.1cafb"]]},{"id":"cfd88793.386f98","type":"http response","z":"7366c746.f2b2d8","name":"","x":430,"y":431,"wires":[]},{"id":"182625a4.2c306a","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html> \n<html> \n\n<head><style>\n.button {background-color: #4CAF50;border: 2px solid #4CAF50;;\ncolor: white;padding: 15px 32px;text-align: center;\ntext-decoration: none;display: inline-block;font-size: 16px;\nmargin: 4px 2px;cursor: pointer;}\n\n</style></head>\n\n<body> \n<center><h1 style=\"color:blue;\">ESP32 Web server LED controlling example</h1></center> \n<center><h2 style=\"color:black;\">Web Server Example Microcontrollerslab.com</h2></center> \n<center><h2 style=\"color:Green;\">Press \"ON\" button to turn on led and \"OFF\" button to turn off LED </h2></center> \n<center>\n<a href=\"/26/on\"><button class=\"button\">ON</button></a>\n\n<img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAC0CAYAAABi3Il7AAASXElEQVR4Xu1da7qjIAy1a3LW5F1TXVNdk/OFEAgBFBCQPvrnzrRWLYeTk4QQH9PvNdQIPIa6m4Ob2ffXjh9v0zSt+u/R3c/TNC36gHl6PP69xW8d9iYRABj8v8pzBkACgP6G/O1D3VQ7EDimwBwAml4A0DIMg4YAZN9nzYbKZMg+HYD1vBWcWwDxmSBnbfZIVvoC3Qfqzx1mrSsgCARoAjcZlcay6mn4BAHG9NObboDs+1ODUXXkOp2snylrDgiy4l+ngWt9GTBja9Mxa3ryfV92jBk+6dVWX5oBgmCAVoyuF+WT5fGYqo9f9RN+lok6A6u+tlQF5DNN1Bko01STKVU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SZL3siuoncYSOrNGxlUE2/QegY/js4a0o3IipYCE89xl27wsRgHENIUkxIPpEO8jKEsoGPLvuS5yXovzjgu/jebqmE0xGMKpFUgTomlUEIxihF1ZoaMCaQkIr+SsHE3ubghrRuGIfzmlAcGLrEa1JTFc1YIEUqDGJdaDgF6d723HBw5HUMCQjesNl5i13e3Sp6bIcfltXqA55ARIoo3vAun+Fv7lvice383VS6m3BgcA5Xtf3//zNOfF5Utx24OSJzAurosJdWMwUYF27SqXcDT9Hw+va4NqffV8rihGQI/fFme+8qqVHDnkx5lY57IAdDZj1ixnR5J3f9kyN8+5E3JGbgsy76qqN5uVRaLu06ZydFGUgDj+Xw1fSjLFQa9BSB6U44FxKCB/5A6fgTIqKZqWLc3NrskS1RbStreJkxXDJBlWaZ17bvfI5ctb8EQ+lHzPJv+I+Y9hyPat3Iq2J0hGf73Dn+DfDjBDSYtCUQUJu4OMWR0U/V2JksCo7Y+4/4nrSHwf+wex/svgpnKaS6Qa2JqH/8f8TsYLbP4YsEAAAAASUVORK5CYII=' alt=''>\n<a href=\"/26/off\"><button class=\"button button2\">OFF</button></a>\n</body> \n\n</html>","x":290,"y":431,"wires":[["cfd88793.386f98"]]},{"id":"e042706f.9930d","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/index4","method":"get","upload":false,"swaggerDoc":"","x":150,"y":431,"wires":[["182625a4.2c306a"]]},{"id":"ab76892.4798278","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/26/on","method":"get","upload":false,"swaggerDoc":"","x":140,"y":471,"wires":[["8f20b93b.e08388"]]},{"id":"8f20b93b.e08388","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html> \n<html> \n\n<h2>Control of ESP32\n<br>\nBuilt in LED on 開.\n</h2>\n\n</html>","x":290,"y":471,"wires":[["578a102.d8ebdf"]]},{"id":"578a102.d8ebdf","type":"http response","z":"7366c746.f2b2d8","name":"","x":430,"y":471,"wires":[]},{"id":"20d9f4f9.a6d5ec","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/26/off","method":"get","upload":false,"swaggerDoc":"","x":140,"y":511,"wires":[["64965a8.cbaa9a4"]]},{"id":"64965a8.cbaa9a4","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html> \n<html> \n\n<h2>Control of ESP32\n<br>\nBuilt in LED off 關.\n</h2>\n\n</html>","x":290,"y":511,"wires":[["57eb86e3.9e1e58"]]},{"id":"57eb86e3.9e1e58","type":"http response","z":"7366c746.f2b2d8","name":"","x":430,"y":511,"wires":[]},{"id":"40c4bfb7.655a6","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/index3/LEDon","method":"get","upload":false,"swaggerDoc":"","x":170,"y":260,"wires":[["6643c0aa.036a1"]]},{"id":"6643c0aa.036a1","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html> \n<html> \n<body>\n<h2>Control of ESP32\n<br>\nBuilt in LED ON 開.\n</h2>\n\n <form action=\"/index3\" method=\"GET\"> \n <input type=\"submit\" name=\"ledbi\" value=\"返回\" > Turn Built in LED on<br><br> \n </form> \n</body>\n\n</html>","x":330,"y":260,"wires":[["d11dc58.204e438"]]},{"id":"d11dc58.204e438","type":"http response","z":"7366c746.f2b2d8","name":"","x":450,"y":260,"wires":[]},{"id":"ee60cc30.cfd47","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/index3/LEDoff","method":"get","upload":false,"swaggerDoc":"","x":170,"y":300,"wires":[["2e4c6217.443fbe"]]},{"id":"2e4c6217.443fbe","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html> \n<html> \n<body>\n<h2>\nControl of ESP32\n<br>\nBuilt in LED OFF 關.\n</h2>\n\n <form action=\"/index3\" method=\"GET\"> \n <input type=\"submit\" name=\"ledbi\" value=\"返回\" > Turn Built in LED on<br><br> \n </form> \n</body>\n\n</html>","x":330,"y":300,"wires":[["c3bf9007.62fce"]]},{"id":"c3bf9007.62fce","type":"http response","z":"7366c746.f2b2d8","name":"","x":450,"y":300,"wires":[]},{"id":"119eaef1.be5481","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/index3/LEDblink","method":"get","upload":false,"swaggerDoc":"","x":180,"y":340,"wires":[["52cd4dce.4e6464"]]},{"id":"52cd4dce.4e6464","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html> \n<html> \n<body>\n<h2>\nControl of ESP32\n<br>\nBuilt in LED Blink 開始閃爍.\n</h2>\n\n <form action=\"/index3\" method=\"GET\"> \n <input type=\"submit\" name=\"ledbi\" value=\"返回\" > Turn Built in LED on<br><br> \n </form> \n</body>\n\n</html>","x":350,"y":340,"wires":[["79b3aa76.471e34"]]},{"id":"79b3aa76.471e34","type":"http response","z":"7366c746.f2b2d8","name":"","x":470,"y":340,"wires":[]},{"id":"67667ab1.28eb74","type":"http in","z":"7366c746.f2b2d8","name":"","url":"/index3/Blinkoff","method":"get","upload":false,"swaggerDoc":"","x":170,"y":380,"wires":[["8e993c85.7f651"]]},{"id":"8e993c85.7f651","type":"template","z":"7366c746.f2b2d8","name":"html5","field":"payload","fieldType":"msg","format":"html","syntax":"mustache","template":"<!DOCTYPE html> \n<html> \n<body>\n<h2>\nControl of ESP32\n<br>\nBuilt in LED Blink OFF 閃爍停止.\n</h2>\n\n <form action=\"/index3\" method=\"GET\"> \n <input type=\"submit\" name=\"ledbi\" value=\"返回\" > Turn Built in LED on<br><br> \n </form> \n</body>\n\n</html>","x":350,"y":380,"wires":[["899838c1.447c18"]]},{"id":"899838c1.447c18","type":"http response","z":"7366c746.f2b2d8","name":"","x":470,"y":380,"wires":[]}]

沒有留言:

張貼留言

2024_09 作業3 以Node-Red 為主

 2024_09 作業3  (以Node-Red 為主  Arduino 可能需要配合修改 ) Arduino 可能需要修改的部分 1)mqtt broker  2) 主題Topic (發行 接收) 3) WIFI ssid , password const char br...