Use AppleScript to control basic functions of PJ-Link enabled Panasonic projectors.
Used extensively in Frost/Nixon for projector synchronization with audio elements via QLab (see Show Control Case Study below).
All commands are run within QLab using AppleScript cues communicating with the web browser interface of Panasonic projectors. Huge credit to micpool for the basis of these steps.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
-- @file: allControls.applescript -- @author: Brendan Hogan -- @version: 1.0.0 -- @update: 2018-07-05 -- Version history -- ver. 1.0.0 : initial build -- -- Panasonic projector control scripts to power on, open/close the shutter -- and set to standby mode. -- to use in QLab: copy the text between the <Script> and </Script> notations -- and paste it into a Script cue within your workspace, one cue per projector action. -- Update the user variables as necessary to match your projector settings. -- -- OPEN the Shutter: -- user variables. Adjust as necessary set userAddress to "192.168.168.210" -- the projector's IP address, in quotes. update as necessary set userName to "admin1" -- the administrative user name, in quotes. update as necessary set userPass to "production" -- the projector's password, in quotes. update as necessary -- do not change anything below the line -------------------- -- main script set myFile to (POSIX path of (path to temporary items)) & "curl_downloaded_file.xml" do shell script "curl -L " & "http://" & userName & ":" & userPass & "@" & userAddress & "/cgi-bin/sd95.cgi?cm=0200a1910203" & " -o " & myFile -- -- CLOSE the Shutter: -- -- user variables. Adjust as necessary set userAddress to "192.168.168.210" -- the projector's IP address, in quotes. update as necessary set userName to "admin1" -- the administrative user name, in quotes. update as necessary set userPass to "production" -- the projector's password, in quotes. update as necessary -- do not change anything below the line -------------------- -- main script set myFile to (POSIX path of (path to temporary items)) & "curl_downloaded_file.xml" do shell script "curl -L " & "http://" & userName & ":" & userPass & "@" & userAddress & "/cgi-bin/sd95.cgi?cm=0200a1910103" & " -o " & myFile -- -- Projector ON: -- user variables. Adjust as necessary set userAddress to "192.168.168.210" -- the projector's IP address, in quotes. update as necessary set userName to "admin1" -- the administrative user name, in quotes. update as necessary set userPass to "production" -- the projector's password, in quotes. update as necessary -- do not change anything below the line -------------------- -- main script set myFile to (POSIX path of (path to temporary items)) & "curl_downloaded_file.xml" do shell script "curl -L " & "http://" & userName & ":" & userPass & "@" & userAddress & "/cgi-bin/sd95.cgi?cm=0200a13d0103" & " -o " & myFile -- -- Projector STANDBY: -- user variables. Adjust as necessary set userAddress to "192.168.168.210" -- the projector's IP address, in quotes. update as necessary set userName to "admin1" -- the administrative user name, in quotes. update as necessary set userPass to "production" -- the projector's password, in quotes. update as necessary -- do not change anything below the line -------------------- -- main script set myFile to (POSIX path of (path to temporary items)) & "curl_downloaded_file.xml" do shell script "curl -L " & "http://" & userName & ":" & userPass & "@" & userAddress & "/cgi-bin/sd95.cgi?cm=0200a13d0203" & " -o " & myFile |