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

  Thread Rating:
  • 5 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
LehighBri Offline
Senior Member
Posts: 237
Joined: Jan 2009
Reputation: 0
Post: #51
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

PS... until I test... can you enhance the code to catch this exception/error and instead of crashing, show the user a friendly error dialog on the front-end that says what the error is and what they need to do to resolve (e.g. similar to when xbmc can't connect to the remoteceton server)
find quote
LehighBri Offline
Senior Member
Posts: 237
Joined: Jan 2009
Reputation: 0
Post: #52
LehighBri Wrote: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.

Changing the permissions of the "ceton" folder that the .csv is expected to be created in worked! I am able to view the live tv on my apple tv 2. Amazing!

I'm happy to test out future iterations of this... but for now... you may need to have a step in the instructions to update the permissions of that folder.
find quote
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #53
LehighBri Wrote:PS... until I test... can you enhance the code to catch this exception/error and instead of crashing, show the user a friendly error dialog on the front-end that says what the error is and what they need to do to resolve (e.g. similar to when xbmc can't connect to the remoteceton server)

Will do Smile.

LehighBri Wrote:Changing the permissions of the "ceton" folder that the .csv is expected to be created in worked! I am able to view the live tv on my apple tv 2. Amazing!

I'm happy to test out future iterations of this... but for now... you may need to have a step in the instructions to update the permissions of that folder.

Hoping to buy the apple tv soon, since that was my target platform too! Smile
(This post was last modified: 2012-02-10 16:13 by mcheng89.)
find quote
LehighBri Offline
Senior Member
Posts: 237
Joined: Jan 2009
Reputation: 0
Post: #54
Couple other observations from running this on my ATV2:
  1. Pressing the menu button on the ATV2 remote does nothing; when I playback my other media, pressing menu stops playback and then takes me back to the previous menu... is there a way to have a consistent implementation of handling the menu button as it is in other playback scenarios?
  2. Pressing the center/select button does indeed bring up the guide... but I can't "cancel" out of it... I would expect to click menu and then the guide would disappear
  3. When playing back other media, if I hold down the center/select button for a second or two, it brings up the "play controls" where I can adjust playback options etc... holding down the center/select in this addon does nothing


Don't let my ATV2 issues distract you from what you're doing...sounds like you're making great progress! But something to consider as this addon matures.
find quote
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #55
LehighBri Wrote:Couple other observations from running this on my ATV2:
  1. Pressing the menu button on the ATV2 remote does nothing; when I playback my other media, pressing menu stops playback and then takes me back to the previous menu... is there a way to have a consistent implementation of handling the menu button as it is in other playback scenarios?
  2. Pressing the center/select button does indeed bring up the guide... but I can't "cancel" out of it... I would expect to click menu and then the guide would disappear
  3. When playing back other media, if I hold down the center/select button for a second or two, it brings up the "play controls" where I can adjust playback options etc... holding down the center/select in this addon does nothing


Don't let my ATV2 issues distract you from what you're doing...sounds like you're making great progress! But something to consider as this addon matures.

I'll try to get those changes in. Hoping to finish epg by tonight! Smile
find quote
Killervette Offline
Junior Member
Posts: 17
Joined: Feb 2012
Reputation: 0
Post: #56
Does vlc have to have file type associations of any kind? Does xbmc need any additional addons? Does it matter I am running 64bit? Thanks
find quote
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #57
Killervette Wrote:Does vlc have to have file type associations of any kind? Does xbmc need any additional addons? Does it matter I am running 64bit? Thanks

The first two are no. As for x64, I don't think so, but I'm not positive.
I'll try to add in some more error messages so we know what's happening.
Probably tonight or tomorrow
find quote
europorsche914 Offline
Member
Posts: 88
Joined: Jan 2012
Reputation: 0
Post: #58
Killervette Wrote:Does vlc have to have file type associations of any kind? Does xbmc need any additional addons? Does it matter I am running 64bit? Thanks

I run this on my 64bit machine with no issues
find quote
mcheng89 Offline
Fan
Posts: 373
Joined: Jan 2012
Reputation: 2
Post: #59
[Image: 2hfrxpl.jpg]

Releasing what I have for now, but its still a work in progress. The code is a bit messy since I tried to finish it quickly, but it is more stable than the other version

Note: Everything was updated except the vlc plugin. ALSO EPG IS NOT COMPLETELY DONE YET.

I also implemented some of the apis in a html file.
You can see it here: http://localhost:8555/m/

EDIT: In case some of you downloaded it, I modified some files since it broke XBMC if you disable the epg. Hence the 1.5.0a

EDIT: Updated to 1.5.1...
(This post was last modified: 2012-02-11 20:27 by mcheng89.)
find quote
Killervette Offline
Junior Member
Posts: 17
Joined: Feb 2012
Reputation: 0
Post: #60
I get a urlopen timeout error when trying to run the addon.
find quote
Post Reply