How to trigger a script on pi 3?

this should solve your problem Executing custom code on your Raspberry Pi from Cayenne