@mattyjb88 welcome to cayenne community. have a look at this Executing custom code on your Raspberry Pi from Cayenne