Simple node-red plugin for defining and processing commands from input of node or from HTTP request.
- Clone this repository:
git clone https://github.com/ladanovn/node-red-parser.git
- Install the necessary dependencies in node-red-parser.
cd node-red-parser
npm install
- Install this from $HOME/.node-red.
For example,npm install <path where are you cloning the repo>/node-red-parser
- Run the node-red, add this node.
- Device information is taken from other nodes of node-red.
In this case, used 'sonoff device' from 'node-red-contrib-sonoff-tasmota'. - It may works with alisa-driver.
- Using inject node.
{
"sender": {
"type": "text"
},
"source_text": "Включить свет в спальне"
}
- POST
localhost/:<node port>
Node port by default is 3001, but you can change in node properties