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)



- Korey - 2011-03-03

Tophicles Wrote:If you could put in a spot for a script to fire at different sections, that would be superb Wink

+1

This would be amazing!


Home Automation - Korey - 2011-03-03

I am unsure of the plans for the future of the Home Automation part of CE, but
would it be possible to add curl commands to the script for home automation?

I have Indigo running on the same box as XBMC (OSX), and could utilize Curl commands to execute different scenes based on commands sent from within the CE script at various times.

ie:

Main future start:

curl -X PUT -d brightness=27 http://127.0.0.1:8176/devices/theatre-lamp
http://127.0.0.1:8176/devices/theatre-lamp?brightness=27&_method=put

Movie Pause / start intermission:

curl -X PUT -d brightness=67 http://127.0.0.1:8176/devices/theatre-lamp
http://127.0.0.1:8176/devices/theatre-lamp?brightness=67&_method=put
and so on.


Here is more rustful_url info in regard to indigo:
http://www.perceptiveautomation.com/wiki/doku.php?id=indigo_s_restful_urls

Thanks for the fantastic work!


- Eisi2005 - 2011-03-03

Hi all,

i´m new to the ce plugin. I become an error bevor every movie plays. My trailer, my features all is playing and when the movie start i become an "script error addon.py" Where could i find the logfile to post it here ?

Thanks

Greets
eisi


- giftie - 2011-03-04

Eisi2005 Wrote:Hi all,

i´m new to the ce plugin. I become an error bevor every movie plays. My trailer, my features all is playing and when the movie start i become an "script error addon.py" Where could i find the logfile to post it here ?

Thanks

Greets
eisi

it varies based on system.
see wiki page below.
http://wiki.xbmc.org/index.php?title=Log_File

Also you will need to post it to pastebin(it can be quite large)


- giftie - 2011-03-04

My ultimate intention regarding Home Automation scripting in Cinema Experience is to have user scripts triggered at the proper time. As there are many HA systems in use(I know, I work in the field) it would be too difficult to capture all. And the fact that I don't have a system myself, testing would next to impossible.

Korey Wrote:I am unsure of the plans for the future of the Home Automation part of CE, but
would it be possible to add curl commands to the script for home automation?

I have Indigo running on the same box as XBMC (OSX), and could utilize Curl commands to execute different scenes based on commands sent from within the CE script at various times.

ie:

Main future start:

curl -X PUT -d brightness=27 http://127.0.0.1:8176/devices/theatre-lamp
http://127.0.0.1:8176/devices/theatre-lamp?brightness=27&_method=put

Movie Pause / start intermission:

curl -X PUT -d brightness=67 http://127.0.0.1:8176/devices/theatre-lamp
http://127.0.0.1:8176/devices/theatre-lamp?brightness=67&_method=put
and so on.


Here is more rustful_url info in regard to indigo:
http://www.perceptiveautomation.com/wiki/doku.php?id=indigo_s_restful_urls

Thanks for the fantastic work!



- ijourneaux - 2011-03-04

Regarding the home automation, would it possible for the HCE script to generate events that an application like Eventghost (or other home automation software)could trap and react to. That way you could react to the event and do what ever it takes (dim lights, close window blinds etc


- Eisi2005 - 2011-03-04

@giftie

here is my log file. It´s a fresh logfile, only started xbmc and enter a movie. The trailer, features and so on are all playing fine. When the mainmovie start there is the script failes addon.py error.

Thanks fpr your help and i love the function to disable refresh rate and enable whne movie start, because my optoma want switch at every feature.

Greets
Eisi

http://pastebin.com/qrgFk1TA


- shaktoo - 2011-03-04

a request : is there a way to turn off the trivia ? I would sometimes just like 1-2 trailers and maybe the feature presentation and then the actual Movie ?
Also the ratings is somewhat Greyed out like a negative transperency . I will post the log as i reach home later today.


- Korey - 2011-03-04

giftie Wrote:My ultimate intention regarding Home Automation scripting in Cinema Experience is to have user scripts triggered at the proper time. As there are many HA systems in use(I know, I work in the field) it would be too difficult to capture all. And the fact that I don't have a system myself, testing would next to impossible.

Nice! Scripts would be perfect!

Thanks!


- SlaveUnit - 2011-03-04

shaktoo Wrote:a request : is there a way to turn off the trivia ? I would sometimes just like 1-2 trailers and maybe the feature presentation and then the actual Movie ?
Also the ratings is somewhat Greyed out like a negative transperency . I will post the log as i reach home later today.

I believe to turn the trivia off you put the duration to 0.

I would also post what skin you are using and maybe a screenshot with the "greyed out" part. You are speaking about something in the script's settings right?


- giftie - 2011-03-04

Found the error causing the problem, the movie's writer has a special character in it(non ascii, probably a letter with an accent) I have this taken care of for the next release.

Eisi2005 Wrote:@giftie

here is my log file. It´s a fresh logfile, only started xbmc and enter a movie. The trailer, features and so on are all playing fine. When the mainmovie start there is the script failes addon.py error.

Thanks fpr your help and i love the function to disable refresh rate and enable whne movie start, because my optoma want switch at every feature.

Greets
Eisi

http://pastebin.com/qrgFk1TA



- Eisi2005 - 2011-03-04

@giftie

great that you found the error. Could you say me the line in the log file so that i could look at the error just out of curiosity ?

Greets
Eisi


- giftie - 2011-03-05

Eisi2005 Wrote:@giftie

great that you found the error. Could you say me the line in the log file so that i could look at the error just out of curiosity ?

Greets
Eisi

Lines 320 - 327 show the error..

Code:
10:30:35 T:700 M:2668511232   ERROR: Error Type: exceptions.UnicodeDecodeError
10:30:35 T:700 M:2668511232   ERROR: Error Contents: 'ascii' codec can't decode byte 0xc3 in position 35: ordinal not in range(128)
10:30:35 T:700 M:2668511232   ERROR: Traceback (most recent call last):
                                              File "C:\Users\AdminEisi2005\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py", line 408, in ?
                                                start_script( "oldway" )
                                              File "C:\Users\AdminEisi2005\AppData\Roaming\XBMC\addons\script.cinema.experience\addon.py", line 318, in start_script
                                                if (video_label not in headings):
                                            UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 35: ordinal not in range(128)



- ijourneaux - 2011-03-05

Giftie
I have almost finished adding the ability to create an NFO file for Trailers that have been downloaded via HD-Trailers.Net Downloader. The NFO will contain most of the common tags. Of interest to HCE are the Genres and MPAA rating.The NFO file will be located in the same folder as the Trailer.

Hopefully you will be able to modify HCE to use the NFO to enable the MPAA basd filtering of Trailers and/or filtering of Trailers based on the main feature genres

In addition, HD-Trailers Downloader will be able to download trailers by Genre so you will be able to restrict what types of Trailers to download.


- shaktoo - 2011-03-06

well sorry to have troubled you but got things going after all, all i needed was a reinstall and to change the MPAA ratings to the one which work well with DXVA & voila.. all is well , Thanks everyone for the wonderful work, it makes the whole experience even more pleasant ..cheers