Kodi Community Forum
[RELEASE] Cinema Experience - the new Home Theater Experience Script - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] Cinema Experience - the new Home Theater Experience Script (/showthread.php?tid=87563)



RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - hoa2014 - 2014-02-25

(2014-02-23, 07:57)giftie Wrote:
(2014-02-23, 06:36)hoa2014 Wrote: I am using Cinema Experience 3.0.11 and the apple trailers is so slow to buffer! Is there a fix in the new version?

The script doesn't buffer anything.. XBMC does this. There is a slight difference on how Apple iTunes trailers access the trailers - uses a different user-agent. 3.0.11 is only a test version that fixed playlists handling, so no change from previous versions. I have a feeling that Apple messes with data flow for devices that it doesn't like(user-agent tells Apple what device - web browser - a client is using). I look into using a different user-agent in the script.

Also, where did you get version 3.0.11?

On your github...


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - Eisi2005 - 2014-02-26

@giftie

nice to hear that you have found the problem. Is there any download ?

Eisi


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2014-02-26

No not yet.. Still working on some fixes

(2014-02-25, 07:18)hoa2014 Wrote:
(2014-02-23, 07:57)giftie Wrote:
(2014-02-23, 06:36)hoa2014 Wrote: I am using Cinema Experience 3.0.11 and the apple trailers is so slow to buffer! Is there a fix in the new version?

The script doesn't buffer anything.. XBMC does this. There is a slight difference on how Apple iTunes trailers access the trailers - uses a different user-agent. 3.0.11 is only a test version that fixed playlists handling, so no change from previous versions. I have a feeling that Apple messes with data flow for devices that it doesn't like(user-agent tells Apple what device - web browser - a client is using). I look into using a different user-agent in the script.

Also, where did you get version 3.0.11?

On your github...

That is a recipe for disaster... Git is for development, you will often get a version from the master branch(or any really) that will break the script. This all depends how often I update my local repo to Git Hub.


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - blank - 2014-02-26

First off, great work with Cinema Experience.

Well, I've got a couple of questions.

1. Is it possible to eliminate the buffer screen when streaming a trailer
my thought was that playing a small intro file on a few seconds would give the plugin enough time to pre-buffer the trailer,
although my guess is because the scripts basically just creates a playlist, the pre-buffer would need to be enabled in the XBMC-core?
But if that is not possible, does anyone know of a method for my NAS, or a raspberry pi to download a few trailers, and have the pi changing the trailers once they have been played..? (I am not using the pi as my media center, but as a home automation server)

2. I am using "boblight" as well as "xbmc hue"
but it doesn't seem like CE and boblight works very well together, as boblight is not "activated" (in either the trailer, sound or movie)
I did a search, and a user had the same issue with the eden release. (I am using Frodo)
I can't provide a log right now, but can provide one later.

3. As I said, I have XBMC hue as well, have anyone managed to combine CE and Hue, so when a trailer is playing, the Hue will dim to eg. 40%
and once the movie begins, the lights will turn off completely.?

Thanks.


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2014-02-27

(2014-02-26, 20:54)blank Wrote: First off, great work with Cinema Experience.

Well, I've got a couple of questions.

1. Is it possible to eliminate the buffer screen when streaming a trailer
my thought was that playing a small intro file on a few seconds would give the plugin enough time to pre-buffer the trailer,
although my guess is because the scripts basically just creates a playlist, the pre-buffer would need to be enabled in the XBMC-core?
But if that is not possible, does anyone know of a method for my NAS, or a raspberry pi to download a few trailers, and have the pi changing the trailers once they have been played..? (I am not using the pi as my media center, but as a home automation server)
You are correct about the script forming a playlist and XBMC plays it. I am not sure how XBMC buffers playlist. I did provide skin developers a skin property that they can use to hide specific windows.
Quote:2. I am using "boblight" as well as "xbmc hue"
but it doesn't seem like CE and boblight works very well together, as boblight is not "activated" (in either the trailer, sound or movie)
I did a search, and a user had the same issue with the eden release. (I am using Frodo)
I can't provide a log right now, but can provide one later.
Don't have boblight, not sure how it behaves with playlists.
Quote:3. As I said, I have XBMC hue as well, have anyone managed to combine CE and Hue, so when a trailer is playing, the Hue will dim to eg. 40%
and once the movie begins, the lights will turn off completely.?
I had made a Philips Hub home_automation.py for another user, though it still is untested(as I never heard back from the user) but you can get it from here -> https://github.com/Giftie/home_automation.py/blob/philips_hub/home_automation.py


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - blank - 2014-02-27

(2014-02-27, 02:47)giftie Wrote: I had made a Philips Hub home_automation.py for another user, though it still is untested(as I never heard back from the user) but you can get it from here -> https://github.com/Giftie/home_automation.py/blob/philips_hub/home_automation.py

Actually, I never thought of using the home auto for this task..
I did try your script though, and it is not working for me..
I fixed a couple of typos (hub_address > hue_address and a missing s in group(s)

But once I am done with the script, and got it working, I will post the complete script, but thanks for now.. Smile


Re: RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2014-02-27

(2014-02-27, 20:46)blank Wrote:
(2014-02-27, 02:47)giftie Wrote: I had made a Philips Hub home_automation.py for another user, though it still is untested(as I never heard back from the user) but you can get it from here -> https://github.com/Giftie/home_automation.py/blob/philips_hub/home_automation.py

Actually, I never thought of using the home auto for this task..
I did try your script though, and it is not working for me..
I fixed a couple of typos (hub_address > hue_address and a missing s in group(s)

But once I am done with the script, and got it working, I will post the complete script, but thanks for now.. Smile

I see the two typos and have fixed them.

Thanks.. Let me know what needs to change


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - gilphilbert - 2014-02-28

Hi, this is my first attempt at HA and python (but I'm a long time programmer) and I'm trying to achieve something similar to the above, but with Domoticz, not the Philips equipment.

There's no POST data with domoticz, instead I just have to call a URL with (using GET) like
Code:
http://192.168.1.4:8080/json.htm?type=command&param=switchscene&idx=1&switchcmd=On

This will turn on the light group I have selected (obviously, swapping On for Off would do the opposite).

However, I cannot for the life of me get this to work with the home_automation.py script and I've tried everything I can think of. For example, I've tried this:
Code:
...
        # Movie                                                                                        
        elif trigger == "Movie" and ha_settings[ "ha_movie" ]:                                          
            # place code below this line                                                                
            os.system('curl "http://192.168.1.4:8080/json.htm?type=command&param=switchscene&idx=1&switchcmd=On"')
        # Feature Presentation Outro                                                                    
        elif trigger == "Feature Presentation Outro" and ha_settings[ "ha_fpv_outro" ]:                
...
but it doesn't work. I can see in the XBMC logs, XBMC running the home_automation.py script, but this just gets skipped straight over. I've also tried using a simple function, popping the code in there then calling that, but that failed too.

EDIT: Just to mention, I do have the correct home automation settings enabled in the CE settings dialog.

Can anyone point me in the right direction? I did try editing the Philips Hue stuff, but that didn't work either.

Thanks in advance


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2014-02-28

(2014-02-28, 18:15)gilphilbert Wrote: Hi, this is my first attempt at HA and python (but I'm a long time programmer) and I'm trying to achieve something similar to the above, but with Domoticz, not the Philips equipment.

There's no POST data with domoticz, instead I just have to call a URL with (using GET) like
Code:
http://192.168.1.4:8080/json.htm?type=command&param=switchscene&idx=1&switchcmd=On

This will turn on the light group I have selected (obviously, swapping On for Off would do the opposite).

However, I cannot for the life of me get this to work with the home_automation.py script and I've tried everything I can think of. For example, I've tried this:
Code:
...
        # Movie                                                                                        
        elif trigger == "Movie" and ha_settings[ "ha_movie" ]:                                          
            # place code below this line                                                                
            os.system('curl "http://192.168.1.4:8080/json.htm?type=command&param=switchscene&idx=1&switchcmd=On"')
        # Feature Presentation Outro                                                                    
        elif trigger == "Feature Presentation Outro" and ha_settings[ "ha_fpv_outro" ]:                
...
but it doesn't work. I can see in the XBMC logs, XBMC running the home_automation.py script, but this just gets skipped straight over. I've also tried using a simple function, popping the code in there then calling that, but that failed too.

EDIT: Just to mention, I do have the correct home automation settings enabled in the CE settings dialog.

Can anyone point me in the right direction? I did try editing the Philips Hue stuff, but that didn't work either.

Thanks in advance

I did some quick research and there seems to be an easy method using requests as seen on this module - https://github.com/EirikAskheim/pymoticz/blob/master/pymoticz.py
Which is similar to the Insteon Hub.. When I get a chance this weekend I'll look into it. There is also this addon that methods could be pulled from - https://github.com/h4wkmoon/xbmc-domoticz


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - hoa2014 - 2014-03-01

Why can't I only queue one movie? Every time I save the setting for how many features to play it returns back to 1 feature.

I check the log and here is the error:
http://pastebin.com/fYUN46D4


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2014-03-01

(2014-03-01, 01:36)hoa2014 Wrote: Why can't I only queue one movie? Every time I save the setting for how many features to play it returns back to 1 feature.

I check the log and here is the error:
http://pastebin.com/fYUN46D4

I need a full debug log, especially when you use the unstable code from GitHub...


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - hoa2014 - 2014-03-01

I uninstalled the github one and installed the one from official repo.

Here is the full log:
http://pastebin.com/0BV4cFg9


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - thekow - 2014-03-01

Is there any reason why intro and outro sometimes get skipped?
Say if i add cinema intro and outro, then coming soon will be skipped or if i add a coming soon outro
some other thing will be skipped. I knew there was a bug a while back but i haven't been able to figure out whats happening.

Just trying to figure out a solution to make all my pre videos work


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - giftie - 2014-03-01

(2014-03-01, 04:01)hoa2014 Wrote: I uninstalled the github one and installed the one from official repo.

Here is the full log:
http://pastebin.com/0BV4cFg9

A full Debug log is needed


RE: [RELEASE] Cinema Experience - the new Home Theater Experience Script - gilphilbert - 2014-03-01

(2014-02-28, 19:51)giftie Wrote: I did some quick research and there seems to be an easy method using requests as seen on this module - https://github.com/EirikAskheim/pymoticz/blob/master/pymoticz.py
Which is similar to the Insteon Hub.. When I get a chance this weekend I'll look into it. There is also this addon that methods could be pulled from - https://github.com/h4wkmoon/xbmc-domoticz

Thanks giftie, I really appreciate your help. I've been tearing my hair out over this as it seems so simple but just won't work.

I've created my own bastardized version of the pymoticz.py script purely for testing. I'm running this on OpenELEC so some of the libraries aren't available that are used in that script. Mine works perfectly, although I obviously have to change the settings myself in the script, but it shows that it works: http://pastebin.com/HBKWJvFY

So, I then created my own home_automation.py script (http://pastebin.com/SNtSpUEK) - it might not be finished, but you can see what I'm trying to get at.

In CE settings, I've got Home Automation enabled and a single trigger for Movie Start. When I start a movie with CE though, I can see the script running (see logs below) but the light level doesn't change. The script is obviously picking up the trigger, but it's like the code for that option isn't being run.

XBMC logs (irrelevant stuff removed): http://pastebin.com/DMes9crR

Can you suggest any further troubleshooting steps?

Many thanks