Re: [QLab] QLab Digest, Vol 56, Issue 42 (QLab & Network Projecor Managemant)

178 views
Skip to first unread message

Huw Semmens

unread,
Aug 30, 2010, 6:30:11 PM8/30/10
to ql...@lists.figure53.com
Hi Geoff,

Try these...

(With your projector IP set to 192.168.56.102 and the username and password at their default 'user1' & panasonic. if they differ just fill in the blanks)

Best,

Huw

----------------------------

//Shutter Close

set newFile to "new file"
tell application "URL Access Scripting"
download "http://user1:pana...@192.168.56.102/cgi-bin/sd95.cgi?cm=0200a1910103" to newFile replacing yes with authentication
quit
end tell



//Shutter Open


set newFile to "new file"
tell application "URL Access Scripting"
download "http://user1:pana...@192.168.56.102/cgi-bin/sd95.cgi?cm=0200a1910203" to newFile replacing yes with authentication
quit
end tell


//Projector On

set newFile to "new file"
tell application "URL Access Scripting"
download "http://user1:pana...@192.168.56.102/cgi-bin/sd95.cgi?cm=0200a13d0103" to newFile replacing yes with authentication
quit
end tell


//Projector Off

set newFile to "new file"
tell application "URL Access Scripting"
download "http://user1:pana...@192.168.56.102/cgi-bin/sd95.cgi?cm=0200a13d0203" to newFile replacing yes with authentication
quit
end tell
__________




On 30 Aug 2010, at 22:13, <qlab-r...@lists.figure53.com> <qlab-r...@lists.figure53.com> wrote:

On 29 Aug 2010, at 21:56, Geoff Hollingshead wrote:

I've read the posts about controlling a panasonic dw6300 projector. I've got the script controlling the shutter working but I want to go to the next step and have a script to turn the projector on and off when I'm done using it. 

Ideally I would love to also learn how to create a script that would input the username and password for the projector so that at the beginning of the show it's just a 1 button operation for me. 

From what I remember of controlling a Panasonic projector, the buttons you are looking for are links on the user interface webpage, so all you need to do is load the equivalent url ('tell application "Safari" to open location "some_url"'). In order to login at the same time, you should just need to prefix the url with "username:password@", eg: "http://username:pass...@192.168.0.1". Isn't this basically the same as controlling the shutter though?

Gareth & Huw from Stage Sound Services do this all the time, so they probably have exactly the script you need. I think they're both on this list... I vaguely remember a discussion about this, but I can't find it now!

Rich

Geoff Hollingshead

unread,
Aug 31, 2010, 11:33:37 AM8/31/10
to Discussion and support for QLab users., ql...@lists.figure53.com
Thanks Huw

I have tried all of those but in qlab I get an error: 

error URL Access Scripting got an error: An error of type 403 has occurred

I did find another script that does work for the shutter but not I haven't been able to find an equivalent for powering up the projector. 

The script is as follows:


Any thoughts as to why your script isn't working? And I have changed the ip address to match my projector. 

Cheers

Geoff

Sent from my iPhone
________________________________________________________
WHEN REPLYING, PLEASE QUOTE ONLY WHAT YOU NEED. Thanks!
Change your preferences or unsubscribe here:
http://lists.figure53.com/listinfo.cgi/qlab-figure53.com

Emery Roth III

unread,
Aug 31, 2010, 2:59:56 PM8/31/10
to Discussion and support for QLab users.
This should work for turning the projector on:
open location "http://192.168.10.203/cgi-bin/proj_ctl.cgi?key=pow_on&lang=e&osd=on"


I am away from the machine that has it, but I've done this in two different ways.  If you run the above script it will open your webbrowser and go to the link.  When I have done that I've always followed it with another appleScript delayed .1 seconds to bring qlab back to the front:
tell application "QLab"
activate
end tell

I did do the whole thing another way as per someone suggestion on the list that used a terminal service to call the webpage instead of safari.  The plus side being safari doesn’t have to be open.  The downside was that if the projector was off, or for some reason wasn’t responding on the IP address you specified you would get yourself into a rolling beachball state pretty fast.  


--Emery

Geoff Hollingshead

unread,
Aug 31, 2010, 9:39:31 PM8/31/10
to Discussion and support for QLab users., Discussion and support for QLab users.
Thanks Emery! Worked like a charm!


Cheers

Geoff

Sent from my iPhone

Emery Roth III

unread,
Sep 3, 2010, 12:24:18 PM9/3/10
to Discussion and support for QLab users.
And just for the record (since i just found it) to control the panasonic projectors WITHOUT having safari open you can use this script:

set newFile to "new file"
tell application "URL Access Scripting"
   download "http://user1:pana...@192.168.10.201/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on" to newFile replacing yes with authentication
   quit


Just change the IP address and the part that says shutter_off to whatever you need it to be.  WARNING...although this is neater than always having safari open, I found that if there was no projector at the IP address you specify it appears to lock qlab up while its waiting for a  timeout.

--Emery

Rich Walsh

unread,
Sep 3, 2010, 2:28:03 PM9/3/10
to Discussion and support for QLab users.
On 3 Sep 2010, at 17:24, Emery Roth III wrote:

> And just for the record (since i just found it) to control the panasonic projectors WITHOUT having safari open you can use this script:
>
> set newFile to "new file"
> tell application "URL Access Scripting"
> download "http://user1:pana...@192.168.10.201/cgi-bin/proj_ctl.cgi?key=shutter_off&lang=e&osd=on" to newFile replacing yes with authentication
> quit
>
>
> Just change the IP address and the part that says shutter_off to whatever you need it to be. WARNING...although this is neater than always having safari open, I found that if there was no projector at the IP address you specify it appears to lock qlab up while its waiting for a timeout.

Try this variation:

set newFile to "new file"
tell application "URL Access Scripting"

ignoring application responses
with timeout of 30 seconds

end timeout
quit
end ignoring
end tell

I think the timeout block will mean that URL Access Scripting will quit even if there is no projector, whilst the ignoring block will mean that QLab doesn't have to hang around waiting. Without an explicit timeout I think AppleScript will wait 60 seconds before giving up on something. A try block wouldn't prevent this wait.

This script does of course create a file called "new file" in your root folder, which may or may not surprise you one day.

Is "osd=on" correct? It caught my eye as I'd expect OSD to be off on a projector, but maybe it's a different OSD...

I'd be inclined to develop it further to something like this (but I can't test it - no projector!):

set userAction to item 1 of {"pow_on", "pow_off", "shutter_on", "shutter_off"} -- Use this to pick an action

set downloadedFile to ((path to desktop) as string) & "Projector control.html"


tell application "URL Access Scripting"

ignoring application responses
with timeout of 30 seconds
download "http://user1:pana...@192.168.10.201/cgi-bin/proj_ctl.cgi?key=" & userAction & "&lang=e&osd=on" to downloadedFile replacing yes with authentication
end timeout
quit
end ignoring
end tell

Emery Roth III

unread,
Sep 3, 2010, 10:09:45 PM9/3/10
to Discussion and support for QLab users.
When I was using this we left the On Screen Displays enabled, they never popped up unexpectedly...Only when you hit menu or some other thing on the remote. It may not be necessary to include it in the URL though...I dont have the projector nearby to try. Love the script improvements though.

--e

Reply all
Reply to author
Forward
0 new messages