SmartThings Labs and LAN Devices

I am hoping that someone can help with something that is related to the http call and creating a Smart app. What I would like to be able to is trigger a Blue Iris Camera (original thread post, here) to record for several minutes when a door sensor is tripped. I tried to take a look at @emc56 code to see if I could easily modify it to my needs but I can seem to do so because at this point I lack the coding skills. Eric’s code seems to use a motion sensor as a trigger and I would like to use a door sensor as the trigger. And then there is of course the modification to use the correct http. Thanks in advance.