Skip to content

Instantly share code, notes, and snippets.

@k-yle
Last active December 22, 2022 22:04
Show Gist options
  • Save k-yle/a6a4573a64a631d36d446800e574e75c to your computer and use it in GitHub Desktop.
Save k-yle/a6a4573a64a631d36d446800e574e75c to your computer and use it in GitHub Desktop.
for use in a QLab script command
-- recall camera preset 0. Kyle, 21 August 2022
set theUrl to "http://admin:[email protected]/vb.htm?loadpreset=0"
do shell script "curl --connect-timeout 1 " & theUrl's quoted form
-- power off projector. Kyle, 21 August 2022
set thePSProjoUrl to "http://admin1:[email protected]/cgi-bin/power_off.cgi?lang=e&poweroff=Standby"
do shell script "curl -s --connect-timeout 1 " & thePSProjoUrl's quoted form
set theOPProjoUrl to "http://admin1:[email protected]/cgi-bin/power_off.cgi?lang=e&poweroff=Standby"
do shell script "curl -s --connect-timeout 1 " & theOPProjoUrl's quoted form
-- power on the projector. Kyle, 21 August 2022
set thePSProjoUrl to "http://admin1:[email protected]/cgi-bin/power_on.cgi?lang=e&poweron=Power%20On"
do shell script "curl -s --connect-timeout 1 " & thePSProjoUrl's quoted form
set theOPProjoUrl to "http://admin1:[email protected]/cgi-bin/power_on.cgi?lang=e&poweron=Power%20On"
do shell script "curl -s --connect-timeout 1 " & theOPProjoUrl's quoted form
-- shutter the projector. Kyle, 21 August 2022
set thePSProjoUrl to "http://admin1:[email protected]/cgi-bin/proj_ctl.cgi?key=shutter_on&lang=e&osd=on"
do shell script "curl --connect-timeout 1 " & thePSProjoUrl's quoted form
set theOPProjoUrl to "http://admin1:[email protected]/cgi-bin/proj_ctl.cgi?key=shutter_on&lang=e&osd=on"
do shell script "curl --connect-timeout 1 " & theOPProjoUrl's quoted form
-- unshutter the projector. Kyle, 21 August 2022
set thePSProjoUrl to "http://admin1:[email protected]/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on"
do shell script "curl --connect-timeout 1 " & thePSProjoUrl's quoted form
set theOPProjoUrl to "http://admin1:[email protected]/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on"
do shell script "curl --connect-timeout 1 " & theOPProjoUrl's quoted form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment