whatever

abc

[{"id":"d77c9afc.66f178","type":"inject","z":"2f43f52c.5f5eba","name":"email+password","topic":"","payload":"email=xxx@xxx&password=yyy","payloadType":"str","repeat":"","crontab":"","once":false,"x":146.10226440429688,"y":90.20169067382812,"wires":[["35cc64fc.0c5f3c"]]},{"id":"39f3afa1.0bfa4","type":"debug","z":"2f43f52c.5f5eba","name":"","active":true,"console":"false","complete":"true","x":887.0994110107422,"y":41.090911865234375,"wires":[]},{"id":"35cc64fc.0c5f3c","type":"function","z":"2f43f52c.5f5eba","name":"User Login","func":"msg.url=\"https://iot.seeed.cc/v1/user/login?\"+msg.payload;\nmsg.payload=\" \";\nmsg.method=\"POST\";\nreturn msg;","outputs":1,"noerr":0,"x":313.95738220214844,"y":90.87786865234375,"wires":[["a0a29e6.54e686"]]},{"id":"a0a29e6.54e686","type":"http request","z":"2f43f52c.5f5eba","name":"HTTP Request","method":"use","ret":"obj","url":"","x":523.0994110107422,"y":91.09091186523438,"wires":[["76d6cb8d.d7bcb4"]]},{"id":"1fa972fe.cad82d","type":"inject","z":"2f43f52c.5f5eba","name":"Fire","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":125.99995422363281,"y":194.20172119140625,"wires":[["e82a22f.d7e69e"]]},{"id":"e82a22f.d7e69e","type":"function","z":"2f43f52c.5f5eba","name":"Node List","func":"msg.url=\"https://iot.seeed.cc/v1/nodes/list\"; \nmsg.method=\"GET\";\nmsg.headers = {\"Authorization\": global.get(\"user_token\")};\nmsg.payload=\"\";\nreturn msg;","outputs":1,"noerr":0,"x":313.8550720214844,"y":194.87789916992188,"wires":[["9b70d42a.11d4c8"]]},{"id":"9b70d42a.11d4c8","type":"http request","z":"2f43f52c.5f5eba","name":"HTTP Request","method":"use","ret":"obj","url":"","x":530.9970550537109,"y":194.0909423828125,"wires":[["c18e05ff.5ad8c8"]]},{"id":"cfd92133.b8422","type":"debug","z":"2f43f52c.5f5eba","name":"","active":true,"console":"false","complete":"true","x":777.0964508056641,"y":413.9801330566406,"wires":[]},{"id":"6852da9c.f3efc4","type":"function","z":"2f43f52c.5f5eba","name":"User Boards List","func":"msg.url=\"https://iot.seeed.cc/v1/boards/list\"; \nmsg.method=\"GET\";\nmsg.headers = {\"Authorization\": global.get(\"user_token\")};\nmsg.payload=\"\";\nreturn msg;","outputs":1,"noerr":0,"x":320.95448303222656,"y":271.7670593261719,"wires":[["2a30e96d.cf13a6"]]},{"id":"2a30e96d.cf13a6","type":"http request","z":"2f43f52c.5f5eba","name":"HTTP Request","method":"use","ret":"obj","url":"","x":532.0964508056641,"y":271.9801025390625,"wires":[["cfd92133.b8422","eddeb56c.30a548"]]},{"id":"e828c101.e7271","type":"function","z":"2f43f52c.5f5eba","name":"User Scan Drivers","func":"msg.url=\"https://iot.seeed.cc/v1/scan/drivers\"; \nmsg.method=\"GET\";\nmsg.headers = {\"Authorization\": global.get(\"user_token\")};\nmsg.payload=\"\";\nreturn msg;","outputs":1,"noerr":0,"x":320.95448303222656,"y":340.7670593261719,"wires":[["79a9a182.e4043"]]},{"id":"79a9a182.e4043","type":"http request","z":"2f43f52c.5f5eba","name":"HTTP Request","method":"use","ret":"obj","url":"","x":532.0964508056641,"y":339.9801025390625,"wires":[["eddeb56c.30a548","cfd92133.b8422"]]},{"id":"27a0aad2.8ce846","type":"function","z":"2f43f52c.5f5eba","name":"User Scan Status","func":"msg.url=\"https://iot.seeed.cc/v1/scan/status\"; \nmsg.method=\"GET\";\nmsg.headers = {\"Authorization\": global.get(\"user_token\")};\nmsg.payload=\"\";\nreturn msg;","outputs":1,"noerr":0,"x":323.95448303222656,"y":401.76708984375,"wires":[["6e5938c4.1591e8"]]},{"id":"6e5938c4.1591e8","type":"http request","z":"2f43f52c.5f5eba","name":"HTTP Request","method":"use","ret":"obj","url":"","x":530.0964508056641,"y":398.9801330566406,"wires":[["eddeb56c.30a548","cfd92133.b8422"]]},{"id":"6fdb1ba7.a01fc4","type":"function","z":"2f43f52c.5f5eba","name":"Node Config","func":"msg.url=\"https://iot.seeed.cc/v1/node/config\"; \nmsg.method=\"GET\";\nmsg.headers = {\"Authorization\": global.get(\"node_token\")};\nmsg.payload=\"\";\nreturn msg;","outputs":1,"noerr":0,"x":303.9545135498047,"y":493.76702880859375,"wires":[["b848318f.d6a42"]]},{"id":"b848318f.d6a42","type":"http request","z":"2f43f52c.5f5eba","name":"HTTP Request","method":"use","ret":"obj","url":"","x":534.0965118408203,"y":493.9801330566406,"wires":[["eddeb56c.30a548","cfd92133.b8422"]]},{"id":"ec87119f.0731f","type":"function","z":"2f43f52c.5f5eba","name":"Node .well-known","func":"msg.url=\"https://iot.seeed.cc/v1/node/.well-known\"; \nmsg.method=\"GET\";\nmsg.headers = {\"Authorization\": global.get(\"node_token\")};\nreturn msg;","outputs":1,"noerr":0,"x":321.8550567626953,"y":547.7670593261719,"wires":[["11ef70ee.f734df"]]},{"id":"11ef70ee.f734df","type":"http request","z":"2f43f52c.5f5eba","name":"HTTP Request","method":"use","ret":"obj","url":"","x":527.9970550537109,"y":548.9801330566406,"wires":[["eddeb56c.30a548","cfd92133.b8422"]]},{"id":"76d6cb8d.d7bcb4","type":"function","z":"2f43f52c.5f5eba","name":"Store user_token","func":"global.set(\"user_token\",msg.payload.token)\nreturn msg;","outputs":1,"noerr":0,"x":720.9516448974609,"y":89.78408813476562,"wires":[["39f3afa1.0bfa4","106b92ce.32fa4d"]]},{"id":"c18e05ff.5ad8c8","type":"function","z":"2f43f52c.5f5eba","name":"Store node_token","func":"global.set(\"node_token\",\"token \"+msg.payload.nodes[0].node_key);\nreturn msg;","outputs":1,"noerr":0,"x":724.0994110107422,"y":194.09091186523438,"wires":[["106b92ce.32fa4d","ad821c7c.a8c1f"]]},{"id":"f9597e64.eedbb","type":"inject","z":"2f43f52c.5f5eba","name":"Fire","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":123.09939575195312,"y":270.9090881347656,"wires":[["6852da9c.f3efc4"]]},{"id":"81cc9ced.dea8","type":"inject","z":"2f43f52c.5f5eba","name":"Fire","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":128.09939575195312,"y":340.9090576171875,"wires":[["e828c101.e7271"]]},{"id":"541385e7.66308c","type":"inject","z":"2f43f52c.5f5eba","name":"Fire","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":127.09939575195312,"y":403.9090576171875,"wires":[["27a0aad2.8ce846"]]},{"id":"4d3c0e41.e1ab9","type":"inject","z":"2f43f52c.5f5eba","name":"Fire","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":133.0994110107422,"y":494.9090576171875,"wires":[["6fdb1ba7.a01fc4"]]},{"id":"fffcf9c2.159ec8","type":"inject","z":"2f43f52c.5f5eba","name":"Fire","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":133.0994110107422,"y":548.9090576171875,"wires":[["ec87119f.0731f"]]},{"id":"eddeb56c.30a548","type":"dweetio out","z":"2f43f52c.5f5eba","thing":"my-wio","name":"Dweet ","x":774.9515838623047,"y":365.9062805175781,"wires":[]},{"id":"4a72d4bd.dd359c","type":"function","z":"2f43f52c.5f5eba","name":"Grove Temperature","func":"msg.url=\"https://iot.seeed.cc/v1/node/GroveTempHumD0/temperature\"; \nmsg.method=\"GET\";\nmsg.headers = {\"Authorization\": global.get(\"node_token\")};\nreturn msg;","outputs":1,"noerr":0,"x":319.75563049316406,"y":610.8181762695312,"wires":[["f0eec6d0.24c798"]]},{"id":"f0eec6d0.24c798","type":"http request","z":"2f43f52c.5f5eba","name":"HTTP Request","method":"use","ret":"obj","url":"","x":525.8976287841797,"y":612.03125,"wires":[["c9304765.1d5a98","c9aa3db2.8f90a"]]},{"id":"319b9cb3.10f4a4","type":"inject","z":"2f43f52c.5f5eba","name":"Fire","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":130.99998474121094,"y":611.9601745605469,"wires":[["4a72d4bd.dd359c"]]},{"id":"c9aa3db2.8f90a","type":"debug","z":"2f43f52c.5f5eba","name":"","active":true,"console":"false","complete":"true","x":787.0994110107422,"y":639.8181762695312,"wires":[]},{"id":"c9304765.1d5a98","type":"dweetio out","z":"2f43f52c.5f5eba","thing":"my-wio","name":"Dweet","x":784.9545440673828,"y":591.7443237304688,"wires":[]},{"id":"106b92ce.32fa4d","type":"dweetio out","z":"2f43f52c.5f5eba","thing":"my-wio","name":"Dweet ","x":902.0994110107422,"y":133.09091186523438,"wires":[]},{"id":"ad821c7c.a8c1f","type":"debug","z":"2f43f52c.5f5eba","name":"","active":true,"console":"false","complete":"true","x":893.9970550537109,"y":220.0909423828125,"wires":[]}]
sairarafique

Flow Info

created 5 months, 1 week ago

Node Types

Core
  • debug (x4)
  • function (x10)
  • http request (x8)
  • inject (x8)
Other

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option