RPi Agent 2.0 on MotionEyeOS

not sure about MotionEyeOS security camera, but have a look at this How to trigger a script on pi 3? - #43 by adam we have built a security camera for boat.