I'm new to Node-Red and exploring it possible application as a replacement for an aging IOT app. For my particular application Node-Red would need the facility to launch a Windows app with a command-line argument. Is this possible with Node-Red?
Yeah. Here is an example:
[{"id":"b6affe8d4f2bb434","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"802314e619502081","type":"inject","z":"b6affe8d4f2bb434","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":290,"y":300,"wires":[["88598da4800c4f2f"]]},{"id":"88598da4800c4f2f","type":"exec","z":"b6affe8d4f2bb434","command":"\"C:\\Program Files\\Docker\\Docker\\Docker Desktop.exe\"","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":600,"y":300,"wires":[["91d3ff121f76242b"],["9802310f8a78e939"],[]]},{"id":"91d3ff121f76242b","type":"debug","z":"b6affe8d4f2bb434","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1110,"y":280,"wires":[]},{"id":"9802310f8a78e939","type":"debug","z":"b6affe8d4f2bb434","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1110,"y":320,"wires":[]}]
I understand the reference to the string to launch the App, and the apparent reference ("") for the command-line argument. But, nothing else is intelligible to someone unfamiliar with Code-Red, especially the "id" reference; where did that number come from? Is this string launched from a process node? A little more detailed explanation would be appreciated.
You can Import that code into node red via ctrl I or the menu option.
I recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.
Thanks for the reference to the videos; I hope the videos will explain where that "code" came from.
It came from Exporting a set of nodes.
Colin, Just reviewed some of the videos; they're very informative.
Thank You, X
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.