I am thinking about something:
What about a python file, that is connected with Cayenne dashboard and some kind of "actuator".
When it is 1, you can run the following code in python:
This will execute the
ls command to the terminal. I have test is and it works.
What about to put your code like:
os.system('raspivid -n -w 680 -h 480 -fps 20 -t 0 -hf -b 2500000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=10 pt=96 ! udpsink host=192.168.8.101 port=5600')