NodeRED to trigger Snap

Is it possible to start / stop / restart other snaps from 'Node RED for ctrlX' ? Is there any sample avaibale.

Best reply by jochen-scheib

Hi,

currently the api for start, stop and restart of an app is not official supported. What you can do is enable and disable a snap using package-manager api an example in Node-RED would be:ย https://flows.nodered.org/flow/91f8147e8b72daf7d459b8f626e31090

You need to update the inject nodes accordingly to your environment.

View original
3 replies