FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We have started the migration process.
This community is now in READ ONLY mode.
Read more: Important
information on the platform change.
04-06-2021 07:00 AM - edited 04-06-2021 07:07 AM
Is it possible to start / stop / restart other snaps from 'Node RED for ctrlX' ? Is there any sample avaibale.
Solved! Go to Solution.
04-06-2021 03:25 PM
I don't have any NodeRed specific sample. But almost every action that you can trigger via your browser uses an underlying Rest command. You can perform these rest commands from any platform that you want including NodeRed.
Take a look at the Using REST API of ctrlX CORE blog post for some inspirations.
04-06-2021 04:54 PM
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.
04-08-2021 06:13 AM
Thanks for the solution provided. We will look further into the blog and proceed.