Blue Iris - profile trigger

Using this script, I can tell Blue Iris to pan a ptz camera to a preset if a Smartthings motion sensor detects movement and I’m away. I also use https, but this script sends it locally to my BI on the local network. If I knew how to edit it for profiles, I would. Look at post #24.