XBMC Community Forum
[dev] CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Python Add-on Development (/forumdisplay.php?fid=26)
+--- Thread: [dev] CetonTV+HDHomeRun - Watch TV on XBMC (WIN/OSX) (/showthread.php?tid=119865)



- mcheng89 - 2012-02-09 04:01

Killervette Wrote:Yes.

I can play the stream in vlc just fine. I just can't get it to show in xbmc

Can you rerun the program and send me this file?
%appdata%\XBMC\xbmc.log

(hit the windows + r button and paste %appdata%\XBMC)
PM me the whole log, or copy and paste the lines that mention the word ERROR

EDIT: Actually, it could be related to the issue europorsche914 was talking about...
Can you try using the beta version of XBMC? I'll put in europorsche914's changes in the next version


- Killervette - 2012-02-09 15:52

mcheng89 Wrote:Can you rerun the program and send me this file?
%appdata%\XBMC\xbmc.log

(hit the windows + r button and paste %appdata%\XBMC)
PM me the whole log, or copy and paste the lines that mention the word ERROR

EDIT: Actually, it could be related to the issue europorsche914 was talking about...
Can you try using the beta version of XBMC? I'll put in europorsche914's changes in the next version

I am using eden beta 2. I will try to get the logs together this weekend.


- Killervette - 2012-02-09 23:55

here is the log section


16:49:09 T:1744 ERROR: C:\Users\Adam\AppData\Roaming\XBMC\addons\script.cetontv\resources\lib\Overlay.p​y:42: DeprecationWarning: object.__init__() takes no parameters
xbmcgui.WindowXMLDialog.__init__(self, *args, **kwargs)
16:49:09 T:1744 ERROR: C:\Users\Adam\AppData\Roaming\XBMC\addons\script.cetontv\resources\lib\Overlay.p​y:32: DeprecationWarning: object.__init__() takes no parameters
xbmc.Player.__init__(self, xbmc.PLAYER_CORE_AUTO)
16:49:19 T:1744 FATAL: script.cetontv-TVOverlay: FATAL ERROR: Error connecting to server. Please make sure that remoteCeton is running.
16:49:21 T:1744 ERROR: script.cetontv-Active Thread: MainThread


- Killervette - 2012-02-09 23:59

and this is from the command prompt

Server: Client requested stream url for Tuner[1]
Tuner[1]: Changing channel to 1
Tuner[1]: Program number is 15
Tuner[1]: Channel name is OND
Tuner[1]: rtsp://192.168.42.165:8554/cetonmpeg0
Tuner[1]: Starting video stream
VLC[1]: Starting VLC instance with remoteVLC plugin
VLC[1]: Streaming to http://localhost:8556
VLC[1]: Setting channel program id using remoteVLC
VLC[1]: Could not set channel in 5 seconds
VLC[1]: Closing VLC instance
Tuner[1]: Stopping video stream

and this is my config

#IP address of ceton tuner
CETON_IP=192.168.42.165
#CETON_TUNER is set as a comma seperated value list.
#Valid values for list: 1,2,3,4
CETON_TUNER=1,2,3
SERVER_CONTROL_PORT=8555
VLC_PROCESS=C:\Program Files (x86)\VideoLAN\VLC\vlc.exe
#VLC PORTS are for the first tuner.
#For each port besides the first, the port = tuner 1 port + the tuner number - 1.
#Example: If VLC_REMOTE_PORT is 2386 for tuner 1, tuner 2 is 2387, etc.
VLC_REMOTE_PORT=2386
VLC_STREAM_PORT=8556


is it the space in program files x86


- LehighBri - 2012-02-10 03:55

Are there any special steps to get this installed on the ATV2? I ftp'd the script.cetontv folder to my ATV2's addons folder but it's not showing up in the Programs area when I restart XBMC.

UPDATE: I was able to install this on my ATV2 by copying the script.cetontv folder to my ATV2's addons folder (not the addon_data folder). I then configure it and launch the program through XBMC but get a blank white screen. Any thoughts on that?


- mcheng89 - 2012-02-10 05:48

Killervette Wrote:is it the space in program files x86

I dont think its the space, since it runs on my computer from the program files directory also.
I'll try to put in more detailed error messages in the next version. It's almost done. Trying to finish it by the weekend.

LehighBri Wrote:Are there any special steps to get this installed on the ATV2? I ftp'd the script.cetontv folder to my ATV2's addons folder but it's not showing up in the Programs area when I restart XBMC.

UPDATE: I was able to install this on my ATV2 by copying the script.cetontv folder to my ATV2's addons folder (not the addon_data folder). I then configure it and launch the program through XBMC but get a blank white screen. Any thoughts on that?

I'm not too sure since I dont have an ATV to test on. Can you get into the program guide using the middle button?

I'll try to see where XBMC writes the log file on iOS devices from my ipad. todo tomorrow Smile

Also, it looks like the apple tv can learn extra remote commands like: Pause, Play, Stop, Fast-forward, Rewind, Previous and Next chapter, etc. Maybe its possible to map the numbers on a universal remote to those buttons so we can have a channel input on the apple tv Smile ?

UPDATE:
I just finished writing the api to read the program guide data.


- LehighBri - 2012-02-10 14:49

mcheng89 Wrote:I'm not too sure since I dont have an ATV to test on. Can you get into the program guide using the middle button?
No... literally as soon as I launch the program from the program menu, my screen turns white. I'm also using the standard beta3 build that came out yesterday... should I be running one of the PVR specific builds?

mcheng89 Wrote:I'll try to see where XBMC writes the log file on iOS devices from my ipad. todo tomorrow Smile
I can help... check this site out:
http://wiki.xbmc.org/index.php?title=HOW-TO:Find_and_post_XBMC.log_for_iOS

Until then, I'll send you my log file shortly to see if you find anything.


- LehighBri - 2012-02-10 15:08

See attached for my log file for when

http://pastebin.com/vbHFrgBj

I do notice there are some errors and exceptions... am I missing an installed component or a step in the process? The same install steps worked fine for me on my XBMC windows beta3 client so not sure what is special or needed for ATV2.


- mcheng89 - 2012-02-10 15:36

LehighBri Wrote:See attached for my log file for when

http://pastebin.com/vbHFrgBj

I do notice there are some errors and exceptions... am I missing an installed component or a step in the process? The same install steps worked fine for me on my XBMC windows beta3 client so not sure what is special or needed for ATV2.

Looks like the error is here Smile

05:00:36 T:119136256 * ERROR: f = open(CHANNEL_FILE, 'w')
05:00:36 T:119136256 * ERROR: IOError
05:00:36 T:119136256 * ERROR: :
05:00:36 T:119136256 * ERROR: [Errno 13] Permission denied: '/var/mobile/Library/Preferences/XBMC/addons/script.cetontv/resources/ceton/channelmap.csv'

Maybe it's a file permission error? Can you try setting the read/write settings for the '/var/mobile/Library/Preferences/XBMC/addons/script.cetontv/resources/ceton/' folder


- LehighBri - 2012-02-10 15:42

mcheng89 Wrote:Looks like the error is here Smile

05:00:36 T:119136256 * ERROR: f = open(CHANNEL_FILE, 'w')
05:00:36 T:119136256 * ERROR: IOError
05:00:36 T:119136256 * ERROR: :
05:00:36 T:119136256 * ERROR: [Errno 13] Permission denied: '/var/mobile/Library/Preferences/XBMC/addons/script.cetontv/resources/ceton/channelmap.csv'

Maybe it's a file permission error? Can you try setting the read/write settings for the '/var/mobile/Library/Preferences/XBMC/addons/script.cetontv/resources/ceton/' folder

The unix permissions show "755"... which is the same permissions as the folder the xbmc.log file is generated in and the log file is generated fine. To be safe, I'll change the permissions to "777" which gives write access to everyone. I'll test that out shortly and will let you know.