there was a shinobi user app that if you're using RTSP on the cameras you can use to trigger for motion
i tried it and it worked, but shinobi was just too finicky for me so i abandoned it. the key thing you could grab from this though is the webhook IP