I am working with picroft in a custom enclosure with hardware components that I would like to have respond to the actions of various skills. I would like to be able to do this in a general context with a variety of extant skills, but for the purposes of this question, take the example of turning on and off an led when a timer, set with the standard mycroft-timer skill, expires and is canceled respectively.
I have thought of a few solutions for this, the worst of which being modifying the code of the skill itself to include a line that switches the light. One step better would be modifying the skill’s code to send a message via the messagebus to an external script that handles hardware interactions.
The ideal solution, at least as I currently understand, would be to catch messages already sent by the skill in question with an external script that handles hardware interactions. The problem is that, short of shooting in the dark until something works, I do not know how to figure out what (if any) messages are created by methods in those skills.
In short, my question is: how can I check what messages are being sent by a specific skill and when?
Thank you for any help you can give!