2011-11-14, 11:25
Invincer Wrote:...and here is my working code as promised...
http://pastebin.com/GH8yEkfG
Hi Invincer
Thanks for posting your script.
If I could ask you a few questions
At the moment I am using another xbmc plugin and Homeseer to control my light when a movie is played and paused, But the problem with it is when CE goes from trailers to intros etc. the light raise and lower, presume because of the pauses between them, would this script do the same?
.
also if I wanted to edit the script to say have nothing happen under Trivia intro would I change "true" for none
Code:
# Trivia Intro
elif trigger == _L_( 32609 ) and _S_( "ha_trivia_intro" ) == "true":
xbmc.log( "[script.cinema.experience] - [ home_automation.py ] - %s Triggered" % _L_( 32609 ), level=xbmc.LOGNOTICE )
# place code below this line
urllib2.urlopen('http://localhost:8086/?x10command=DEVICE~sendrf~"A1 ON"')
or would it be ok to just delete
Quote:urllib2.urlopen('http://localhost:8086/?x10command=DEVICE~sendrf~"A1 ON"')
Also when a movie is paused presume the lights would come on to dim?
hope you don't mind the questions I am a script new B