Kodi Community Forum
[RELEASE] MythBox for XBMC - a MythTV Front-end Python Script for XBMC - 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] MythBox for XBMC - a MythTV Front-end Python Script for XBMC (/showthread.php?tid=43115)



- modern69messiah - 2009-06-22

I don't mean to be rude, but I feel like I am on the cusp of solving this one. It's literally the last component of my HTPC I need to get working before I can set it up and just leave it. I've spent probably close to 5 hours over the last 2 days searching for what I need in this thread and a google code page, as well as sorting through the .py file. All to no avail. Sad I feel like I've read the same things about 50 times. I'm also sure I'm going to break the database permissions with the amount of different users I've tried to add.

Why do I seem to be the only one having this problem? Is it supposed to just work out of the box or something? Or is sql databasing a bit more common amongst the general Linux community than I am aware of?

Sorry for half hi-jacking this thread as well...

EDIT: Obviously there is something about the way this script interacts with the mythtv database that I am missing. To me something like the user credentials that mythbox uses to access the mythtv database is a kind of important thing - so surely these would be splashed everywhere for people to see, yet this is not the case. I feel like I'm going about this in the wrong way thats for sure!


- bidossessi - 2009-06-22

run "sudo dpkg-reconfigure mythtv-common" to set your password to something more chewable, instead of hacking the db (much more dangerous).
never had an issue with that bit either.


- modern69messiah - 2009-06-22

OMFG I fixed it. (sorry bidossessi, I discovered it as you posted lol)

When I run MythBox and get the afore mentioned error, I do get some menu options in the U.I - three of them infact:

MythTV
MySQL
Test Settings

However, on the right hand side of the screen there are no actual settings to change. Or so I thought. They are there, the text is just not displaying correctly. The only way I can tell what each option is, is by selecting the invisible option and hitting enter. Using this method I stumbled across the mysql database settings and managed to enter the correct password.

So it's working now. Is this a possible bug the dev may be interested in?

To summarise: The menus are invisible. I can see them now that the correct settings are in...

EDIT: The OTHER menus are now visible, but anything under settings is not visiable. I also have playback problems and once I start watching a channel I am unable to go back to the main menu, but I'll look into these later.


XBMC MySql 1045 Error - Help - IrishGent - 2009-06-22

I am running the latest XBMC frontend against a MythBuntu 9.04 MythTV BE Server. When I select the script from the MythBox script from the Scripts from the Main Menu, I see "Settings Error Connect to MySQL failed: (1045; "Access Denied..." and the dialog cuts off. I have tried different font sizes and themes to try to see more of the message, but I have had no luck. I have also tried to read and search this thread for information, but have come up largely empty handed.

I can connect to the BE from another FE running on Ubuntu. It appears to be the XP box with the error.

I am hopeful that someone will point me in a direction to further troubleshoot or correct this problem. My thanks to you all!


- modern69messiah - 2009-06-23

IrishGent Wrote:I am running the latest XBMC frontend against a MythBuntu 9.04 MythTV BE Server. When I select the script from the MythBox script from the Scripts from the Main Menu, I see "Settings Error Connect to MySQL failed: (1045; "Access Denied..." and the dialog cuts off. I have tried different font sizes and themes to try to see more of the message, but I have had no luck. I have also tried to read and search this thread for information, but have come up largely empty handed.

I can connect to the BE from another FE running on Ubuntu. It appears to be the XP box with the error.

I am hopeful that someone will point me in a direction to further troubleshoot or correct this problem. My thanks to you all!

Although you are running your copy of XBMC off an Xbox (where as mine was running off a PC) It appears you are have the exact same problem I did. At least I hope you are otherwise this is going to be another collosal post from me screwing this thread up Confused

The error pops up, but you should have three menu options still visible in the top left hand corner of the screen: 'MythTV', 'MySQL' and 'Test Settings'. You should be able to select any of them. Scroll down to 'Test Settings' and hit enter (or whatever you do on the Xbox), the full description of your problem will then display.

In order to fix this problem you need to do the following: Go to your machine that is running the MythTV backend, and start the MythTV FRONT END. I cannot remember off the top of my head which menu it is under, but find the username, password, and database name that the MythTV FE uses to get its data from. By default they are 'mythtv', some random letters, and 'mythconverg'. Write them down.

Now go back to the script and try to run it again. It will c**k up again Shocked lol.

This time scroll down to the 'MySQL menu' then press the right arrow (or whatever) to actually go to where the menu options should be. Even though you cannot see them (or can you?) they are there. By guessing and checking hit enter on each "option" until you find the database name, user name and database password fields. As you find each, enter the details you obtained from the default MythTV FE. Once your done, select 'Test Settings' and *touch wood* it will say "passed" or something like that.

Exit the script, restart it and everything should be peaches!!!

Read my posts above for more details if you need better explanation. It looks familiar so it should be similar to fix.


XBMC User name snafu? - IrishGent - 2009-06-23

Ah, Bach! Something Modern68Messiah said made me look more closely.

In my set up, the script pre-populated user name for the database was 'mythtv'. But this thread kept talking about the user name 'xbmcuser'. So, I changed from 'mythtv' to 'xbmcuser' in the MySQL settings page of the script, and viola! It worked!!

Now, on to other issues, like jittery video and sound... Sad

My thanks to everyone, and I hope this is a new tidbit of information!


The username depends on a few things - linuxluemmel - 2009-06-24

1.) What distro you use ...

bat under the user you run mythtv there is a direcrtory

called .mythtv

all information about the database / name / password are stored inside .


- IrishGent - 2009-06-24

linuxluemmel Wrote:1.) What distro you use ...

I guess that's kinda my point of interest / concern. Mythbuntu appears to use the 'mythtv' as the MythTV MySQL user. And even though that user had permissions regardless of where it attached to the db, it wouldn't work in XBMC. For me at least, the only user that has worked to date is the specific user of 'xbmcuser'. BTW - I am still not ruling out some permission error here on my end...


- AuXBoX - 2009-06-26

I cant get this working. it lags way too much doesnt matter what i put the cache too. Even if it did work with a really high cache i dont really want to wait that long to watch tv. Mythtv plays it perfectly aswell
I have mythbuntu 9.04 and xbmc 9.04.2.
Also theres no writing in the settings menu which is a bit annoying.


- IrishGent - 2009-06-26

AuXBoX Wrote:I cant get this working. it lags way too much doesnt matter what i put the cache too.

I see the same thing, too. While it isnt a fix, I may be able to offer something of a work around. I find that if I go to watch live TV and pause the playback just for a second after the buffering is complete, the lag and jitter go away.

I think this additional pause allows a re-syncing. I pause I use isn't long enough to buffer much more, and it takes care of the jitter and lag for the length of time that I watch that channel. I do have to repeat the pause at each channel change. Also, I see no lag or jitter when watching a pre-recorded show...


- D34thbr1ng3r - 2009-07-01

Hi, can I use mythtv to watch ISDB digital system in Brazil?


- Robgue - 2009-07-01

hi. I don't have a technical question( yet at least). how stable is the script? i know people post on this thread with problems but are others using this ? does it work as smoothly as the rest of xbmc? i understand it is in alpha but i wanted to know if it is stable enough to use. I would be using mythbuntu as my base running on the same machine. just got a hd pvr and wanted to rock it with my existing xbmc installation for obvious reasons. Cool thanks.


- JRoque - 2009-07-24

Hi. Hopefully this is the right thread to post this. I'm running a backend MythTV server (0.21+fixes) on Ubuntu and xbmc 9.04 on WinXP.

I can't get the script to run. It looks like XBMC is correctly installed since the Apple trailer script that came with it, works. I get the following error:

Error: Python script failed:
special://home/scripts/MythBox/default.py

Here's some of the log.

Code:
11:56:24 T:3864 M:1183547392  NOTICE: start dvd mediatype detection
11:56:24 T:3864 M:1183514624  NOTICE: initializing playlistplayer
11:56:24 T:3864 M:1183510528  NOTICE: DONE initializing playlistplayer
11:56:24 T:3864 M:1183502336  NOTICE: load default skin:[PM3.HD]
11:56:29 T:3864 M:1186127872  NOTICE: initialize done
11:56:29 T:3864 M:1186111488  NOTICE: Running the application...
11:56:29 T:3864 M:1185669120  NOTICE: ES: Starting event server
11:56:29 T:1708 M:1185591296  NOTICE: ES: Starting UDP Event server on 127.0.0.1:9777
11:56:29 T:1708 M:1184866304  NOTICE: UDP: Listening on port 9777
11:56:33 T:1776 M:1180413952  NOTICE: -->Python Interpreter Initialized<--
11:56:33 T:1776 M:1180405760  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: platform = win32
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: syspath += D:\MM\TV\XBMC\scripts\MythBox\resources\src
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: syspath += D:\MM\TV\XBMC\scripts\MythBox\resources\lib\pysmb
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: syspath += D:\MM\TV\XBMC\scripts\MythBox\resources\lib\pyxcoder
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: syspath += D:\MM\TV\XBMC\scripts\MythBox\resources\lib\decorator
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: syspath += D:\MM\TV\XBMC\scripts\MythBox\resources\lib\pyfiglet
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: syspath += D:\MM\TV\XBMC\scripts\MythBox\resources\lib\odict
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: syspath += D:\MM\TV\XBMC\scripts\MythBox\resources\lib\MySQLdb
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:33 T:1776 M:1180626944  NOTICE: MythBox: syspath += D:\MM\TV\XBMC\scripts\MythBox\resources\lib\MySQLdb\win32
11:56:33 T:1776 M:1180626944  NOTICE:
11:56:34 T:1776 M:1179033600  NOTICE: Traceback (most recent call last):
11:56:34 T:1776 M:1179033600  NOTICE:   File "D:\MM\TV\XBMC\scripts\MythBox\default.py", line 73, in ?
11:56:34 T:1776 M:1179033600  NOTICE:
11:56:34 T:1776 M:1179033600  NOTICE: import util
11:56:34 T:1776 M:1179033600  NOTICE: ImportError
11:56:34 T:1776 M:1179033600  NOTICE: :
11:56:34 T:1776 M:1179033600  NOTICE: No module named util
11:56:34 T:1776 M:1179033600  NOTICE:
11:56:34 T:1776 M:1179033600   ERROR: Scriptresult: Error

The MythBox script lives in the ...\scripts directory under XBMC.

Any hints? Thanks.

JR


- analogue - 2009-07-28

JRoque Wrote:Hi. Hopefully this is the right thread to post this. I'm running a backend MythTV server (0.21+fixes) on Ubuntu and xbmc 9.04 on WinXP.

.
.
.

MythBox script lives in the ...\scripts directory under XBMC.

Any hints? Thanks.

JR

Re-read the install instructions. Especially the part about where to install the script.


Beta 5 released - analogue - 2009-07-28

Haven't had much time to work on MythBox but I managed to get the rewrite of the 'Watch TV' screen done with fanart getting pulled from tvdb, tmdb, imdb, and google image search (mixed results on that one).

Image