I'm not certain why everyone is talking about exec node :confused:
am i missing something?
There is not a node to do the work for you - but it isn't that difficult to do by hand.
Here is how you translate a simple CURL to "The node-red way"
[{"id":"3fbcc579.1dc12a","type":"inject","z":"60184b60.424444","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":800,"y":140,"wires":[["37d01ae9.869d66"]]},{"id":"dea77fd.b480f8","type":"http request","z":"60184b60.424444","name":"","method":"POST","ret":"obj","paytoqs":"ignore","url":"https://api.amberelectric.com.au/prices/listprices","tls":"","persist":false,"proxy":"","authType":"","x":950,"y":260,"wires":[["261e81ee.00f02e"]]},{"id":"37d01ae9.869d66","type":"change","z":"60184b60.424444","name":"","rules":[{"t":"set","p":"headers","pt":"msg","to":"{\"Content-Type\":\"application/json\"}","tot":"json"},{"t":"set","p":"payload","pt":"msg","to":"{\"postcode\":\"2069\"}","tot":"json"}],"action":"","property":"","from":"","to":"","reg":false,"x":880,"y":200,"wires":[["dea77fd.b480f8"]]},{"id":"261e81ee.00f02e","type":"debug","z":"60184b60.424444","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":990,"y":320,"wires":[]}]
The benefits are...
- No file to write / read
- No process spawning
- Response is ready to use JS object (no parsing after spawning).
- Far simpler (IMO)