I have a driveway alarm running a a dry contact to a 3B+ GPIO input that notifies me over email of someone driving down our driveway. I would also like to use this to trigger the recording of a specific camera on my system through Blue Iris, which can accept http commands through a browser to trigger camera recording if typed as follows:
I've confirmed that it works fine on local devices when executed through a web browser. I'm trying to figure out the best way to incorporate this into a pi script that's triggered based on the GPIO. Running a script at startup to monitor the GPIO is easy, but I'm not overly experienced with http commands. Can anyone suggest how to send this type of command in a single string and what libraries to utilize?
Any help would be greatly appreciated!