Poll: Most Desired Feature To Be Added
Other Movie Ratings
Download Movie Trailers
Home Automation scripting
Other Movie Streaming Location
Trivia Intro Fixed
Cartoon Video Option
More Videos for before Feature(s) - Specify how many
[Show Results]
 

[RELEASE] Cinema Experience - the new Home Theater Experience Script

  Thread Rating:
  • 24 Vote(s) - 4.83 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
lucas22 Offline
Junior Member
Posts: 11
Joined: May 2015
Reputation: 0
Post: #4171
hi does anyone know how to get youtube working for movie trailers instead of apple trailers,it doesnt seem to give me the option to change it.

thanks
find quote
teknikalcrysis Offline
Junior Member
Posts: 1
Joined: May 2015
Reputation: 0
Sad  Cinema Experience Crashes Kodi
Post: #4172
I have no idea what has happened....I had Cinema Experience working perfectly (minus any use of home_automation.py)

Movie Intro, Traliers, Tralier Outro, Countdown, and Feature Presentation Intros were all set and working 100%

I decided to start trying to work with Home_automation in an attempt to get my LimitlessLED Bulbs to Dim at the start of the Countdown Video and the Brighten at the Feature Presentation Outro

Now all of the sudden when I try to launch Cinema Experience Script from the Context menu...the screen dim like normal a few seconds after making the selection...but then it hangs for about 30 seconds and then Kodi crashes and goes back to home on the reload.

I have tried Uninstalling the Cinema Experience plugin, even deleted the folder for Cinema Experience in User_Data to purge the settings for the plugin. Then I re-installed the plugin, setting everything back up as far as the Intro/Outro and Trailer Selections, but left out the home_automation and didn't even attempt to enable it this time...and still when I try to launch the plugin from context...kodi hangs/freezes and then crashes

I am running OPENELEC on RPi2 using a Custom Modified Confluence Skin so that I have the Cinema button in the Context Menu

Here is the Kodi.Log
Kodi Log

Here is the Kodi_Crashlog.Log
Kodi Crash Log


other than reverting to a backup to a point before Cinema Experience was installed and starting from scratch there (which I'm trying to avoid, since my last backup was over a month ago) I am not sure what went wrong...or why for the last 3 days the Cinema Experience Script worked flawlessly until I started playing with the Home_Automation.py

Please HELP! lol

EDIT:

Okay so I UNSTALLED the plugin a second time, PURGED the Cinema Experience folder in User_Data...as well as PURGED the cinema experience.zip contained within addons\packages and completey SHUTDOWN instead of just rebooting...
Cleared Kodi Cache on restart, Reinstalled the CE Plugin, Shutdown (instead of Reboot), Restarted, Setup the CE Plugin once more...and now its working again...
I still have no clue what was causing the script to crash kodi..
I guess I just need some help on getting the Home_Automation.py to send the necessary UDP Hex commands to my LimitlessLED/Milight Bridge to have control over the Lights
(and I am Clueless on how to do this) But determined to figure it out...because 3 months ago, I didn't have an RPi2; so this is all New to me..
But in the 3 months...I have put together my own RPi2 running OPENELEC/Kodi for the sole purpose of have Lightberry Ambilight Hardware addon on my TV (Which works with Awesome Sauce btw) so I thought this Cinema Experience script with Home Automation for lighting control would just be Icing on a very delicious cake!

EDIT #2:

And tried a third movie using the CE script...and back to freeze/crashing Sad

EDIT #3:
A Couple a reboots, and then it works....something is up...and I'm to dumb to figure it out lol

EDIT #4:
Aside from these random crashes or freezes; can someone point in the right direction for dimming my lights using the Home_automation.py

I found some python script info related to my lights on http://www.limitlessled.com/dev/

and using an example of some python code there, I think this is the code I want to run when the countdown video begins

Code:
import socket

UDP_IP = "192.168.1.12" #this is the IP of the wifi bridge, or 255.255.255.255 for UDP broadcast
UDP_PORT = 8899

MESSAGE1 = "\x42\x00\x55" #Select All Light Groups
MESSAGE2 = "\x4E\x02\x55" #Dim Lights to Low
MESSAGE3 = "\x42\x00\x55" #Select All Light Groups
MESSAGE4 = "\x40\x90\x55" #Set Lights to Color
MESSAGE5 = "\x42\x00\x55" #Select All Light Groups
MESSAGE6 = "\x4E\x02\x55" #Dim Color Lights to Low

print "UDP target IP:", UDP_IP #don't really need this
print "UDP target port:", UDP_PORT #don't really need this
print "message:", MESSAGE1 #don't really need this

sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.sendto(MESSAGE1, (UDP_IP, UDP_PORT))
sock.sendto(MESSAGE2, (UDP_IP, UDP_PORT))
sock.sendto(MESSAGE3, (UDP_IP, UDP_PORT))
sock.sendto(MESSAGE4, (UDP_IP, UDP_PORT))
sock.sendto(MESSAGE5, (UDP_IP, UDP_PORT))
sock.sendto(MESSAGE6, (UDP_IP, UDP_PORT))

at least I think I got that right...I honestly have no idea what I'm doing haha

EDIT # 5
Got it! $$$
My lights now dim when I want the to...I had to modify the python code for eventghost action as follows
Code:
import socket

UDP_IP = "192.168.1.12" #this is the IP of the wifi bridge, or 255.255.255.255 for UDP broadcast
UDP_PORT = 8899

MESSAGE1 = "\x42\x00\x55" #Select All Light Groups
MESSAGE2 = "\x4E\x02\x55" #Dim Lights to Low
MESSAGE3 = "\x42\x00\x55" #Select All Light Groups
MESSAGE4 = "\x40\x90\x55" #Set Lights to Color
MESSAGE5 = "\x42\x00\x55" #Select All Light Groups
MESSAGE6 = "\x4E\x02\x55" #Dim Color Lights to Low

print "UDP target IP:", UDP_IP #don't really need this
print "UDP target port:", UDP_PORT #don't really need this
print "message:", MESSAGE1 #don't really need this

sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.sendto(MESSAGE1, (UDP_IP, UDP_PORT))
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.sendto(MESSAGE2, (UDP_IP, UDP_PORT))
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.sendto(MESSAGE3, (UDP_IP, UDP_PORT))
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.sendto(MESSAGE4, (UDP_IP, UDP_PORT))
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.sendto(MESSAGE5, (UDP_IP, UDP_PORT))
sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
sock.sendto(MESSAGE6, (UDP_IP, UDP_PORT))

now they DIM at the countdown, and brighten at Presentation Outro! Yay! and I still have no idea what I'm doing or how I made it happen lol
(This post was last modified: 2015-05-26 08:08 by teknikalcrysis.)
find quote
Post Reply