2011-05-12, 00:18
aptalca Wrote:Hi giftie,
I have my movie room automated now. It's amazing. Lights flash when trivia starts, and stay on. They dim to 30% w/ trailers. They flash again during "audio video" to let my wife know that the movie is starting (she's usually getting food or something, not a fan of trailers) and lights turn off. When paused, lights come on, when resumed they turn back off. I need to get another module to turn the fish tank's filter off, it can get quite noisy :-)
I do encounter a problem with the script that is intermittent though. Sometimes (about 30% of the time, but I have not noticed a trend) at the end of the first trailer, playback hangs on the last frame, xbmc appears to be frozen. Pressing escape returns to the library.
Here's a log from when it happened: http://pastebin.ca/2056543
I'm glad you got the lights working nicely.. One thing I noticed while I checked some of my own logs, is that the paused/resume actions may get triggered during trailer streaming. This is due to how the script determines if the user paused, it takes the time from the video, waits for a second and compares the new time with the old, if they match the video is paused, if not it is playing. Sometimes streams take a couple of seconds to buffer and this may cause(doesn't always) the script to send the pause/resume actions. To over come this you can always use the normal play/pause events from XBMC that shows up in EventGhost(should be able to nest a macro that is triggered by the 'script_start'/'script_end' actions.)
Also I just checked over your log and notice the dreadful error - 'Error trying to retrieve an item that's out of range' that has been plaguing other users. I have still not found a reason for this error or a solution to it yet.