2015-05-25, 19:36
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
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
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
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
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
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