A simple example
[
{
"id": "428703f9.dabacc",
"type": "tab",
"label": "Flow 3",
"disabled": false,
"info": ""
},
{
"id": "b17b5476.57a298",
"type": "http in",
"z": "428703f9.dabacc",
"name": "http request from scene",
"url": "sceneTrigger",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 200,
"y": 240,
"wires": [
[
"3b703b98.327224"
]
]
},
{
"id": "532c9cdb.e466dc",
"type": "http response",
"z": "428703f9.dabacc",
"name": "http response",
"statusCode": "",
"headers": {},
"x": 690,
"y": 240,
"wires": []
},
{
"id": "3b703b98.327224",
"type": "function",
"z": "428703f9.dabacc",
"name": "create response",
"func": "msg.payload = msg.payload.test + \" a response\"\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 460,
"y": 240,
"wires": [
[
"532c9cdb.e466dc"
]
]
}
]
View in browser
http://ip_of_node-red:1880/sceneTrigger
You can also add paramater
http://ip_of_node-red:1880/sceneTrigger?test=yes