How to trigger a Node-RED flow from a shell script

MQTT would work, but you would need an MQTT client installed on the PC, which you may not. curl may well already be installed, and is easily installed if it isn't, so possibly best to use that.

Yes

It would be the same port that node red uses (1880 by default). This post in the cookbook shows how you can easily create an http endpoint in node-red.

It will respond, as described in the example.

1 Like