Script to Shutter Panasonic Projector

3,582 views
Skip to first unread message

hannahro...@gmail.com

unread,
Sep 9, 2016, 1:21:17 PM9/9/16
to QLab
Hello QLab Video Friends!

I've got my projector all networked the computer, I'm just trying to figure out how to control the shutter function from QLab (version 3.1.23). Pretty sure it's as simple as running a script cue, so if anyone has the exact script I need to run, I would be very grateful. 

Thank you!

Sincerely,
Hannah

micpool

unread,
Sep 9, 2016, 1:50:55 PM9/9/16
to QLab
set powerOn to "/cgi-bin/power_on.cgi"
set powerOff to "/cgi-bin/power_off.cgi"
set shutterClose to "/cgi-bin/proj_ctl.cgi?key=shutter_on&lang=e&osd=on"
set shutterOpen to "/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on"


#Do not change anything above this line!


set theServer to "192.168.50.135" -- set this to the ip address of the projector
set theUsername to "admin1" -- set this to the username for the projector
set thePassword to "panasonic" --set this to the password for the projector
set theCommand to shutterClose --set the command required, option are, powerOn, powerOff, shutterClose, shutterOpen


#Do not change anything below this line


set theProtocol to "http" -- vs https
set theUserPass to theUsername & ":" & thePassword -- your Indigo remote access username/password
set theURL to theProtocol & "://" & theUserPass & "@" & theServer & theCommand
set theFinalURL to "\"" & theURL & "\""
try
with timeout of 1 second
do shell script "/usr/bin/curl" & " " & "--connect-timeout" & " " & "1" & " " & theFinalURL
end timeout
end try


Mic

hannahro...@gmail.com

unread,
Sep 9, 2016, 2:20:42 PM9/9/16
to QLab
Hi Mic!

Thank you for your response! I'm a little confused though, what parts of this do I use? 

micpool

unread,
Sep 9, 2016, 2:46:58 PM9/9/16
to QLab
On Friday, September 9, 2016 at 7:20:42 PM UTC+1, hannah com wrote:
> Thank you for your response! I'm a little confused though, what parts of this do I use? 


Like, all of it, but you need to edit the centre part of the script.


I am assuming your projector and the computer are connected to a network.
Before you use the script check the connection by entering the projectors IP address into safari.
You should connect to the web server built into the projector
When you have got this working then edit the centre bit of the script

The username and password are the projector defaults so unless you have changed them these should work.

The setthecommand instruction sets what the script does. All the possibilities you can use are listed in the comment.

You create a script cue for each projector command you want to send.

Stephen Harrison

unread,
Sep 26, 2016, 10:28:16 AM9/26/16
to QLab
Another option would be to use ProjectorManager (https://itunes.apple.com/gb/app/projectormanager/id950244656?mt=12) to talk to the projector, and Script Cues to trigger events in ProjectorManager. This has the added advantage of also getting status info on your projectors,, bulb life, errors/warnings, if that's of value to you.

Your script to close the shutter in the 1st projector would be:
tell application "ProjectorManager"
AvMute 1
end tell

and to open the shutter:
tell application "ProjectorManager"
AvUnMute 1
end tell

If you have multiple projectors then you change the number as required, or 0 for all projectors. You can also use the PowerOn and PowerOff commands at the start and end of the show.

Stephen


On Friday, September 9, 2016 at 6:21:17 PM UTC+1, hannahro...@gmail.com wrote:

ccca·

unread,
Mar 5, 2025, 2:41:53 PM3/5/25
to QLab
Hello all,

this script which is being copied here and there didn't work for me. I have Panasonic PT-MZ880. The problem was the authentication. When I put projector IP in a browser, it promted me for username and password and the problem was that the script "couldn't fill" the prompt. So I tested the script before running it in qLab, I put it in mac's Script Editor so I could easily see the output. When everything works, it will be a html page confirming what you have done. There was all the time that  authentication error. With help of ChatGPT here comes version of the script that works for me and hopefully helps others with the same problem:


set powerOn to "/cgi-bin/power_on.cgi"
set powerOff to "/cgi-bin/power_off.cgi"
set shutterClose to "/cgi-bin/proj_ctl.cgi?key=shutter_on&lang=e&osd=on"
set shutterOpen to "/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on"

# Do not change anything above this line!

set theServer to "192.168.xxx.xxx" -- Projector IP
set theUsername to "admin1" -- Projector Username
set thePassword to "panasonic" -- Projector Password
set theCommand to shutterClose -- Command: powerOn, powerOff, shutterClose, shutterOpen

# Do not change anything below this line

set theProtocol to "http"
set theBaseURL to theProtocol & "://" & theServer & theCommand
set theFinalURL to quoted form of theBaseURL

try
-- Use --digest for authentication
set theResult to do shell script "/usr/bin/curl --connect-timeout 1 --digest --user " & theUsername & ":" & thePassword & " " & theFinalURL
end try





Reply all
Reply to author
Forward
0 new messages