Your Digital Media Has Never Looked So Good

 
Coldspring
Posts: 37
Joined: Fri Sep 23, 2005 8:35 pm

Please help me configure my roku.roku file

Wed Nov 28, 2007 12:25 pm

I know this should be easy, but I am missing something and I was hoping someone could tell me the proper settings for my mythroku.roku set up file.

Here is the all the information I think you need to set up the file. Could someone please just send me the proper settings.

IP of mythTV backend :192.168.15.201
IP of the Roku: 192.168.15.100

I replaced the mythroku.app file from the original mythroku.app download with the mythroku file in the zip file mythroku-0.81v by renaming mythroku to mythroku.app and over writing the file on the share.

The location of the mythroku files: mythroku.app and mythroku.roku are in smb://192.168.15.201/roku

I restricted mythconverg to the IP subnet by doing:
mysql>grant all on nythconverg.* to mythtv@"169.168.15.%" identified by "mythtv"

This works for my other mythtv frontends.


My current mythroku.roku file looks like such:

#!/bin/sh
#
# Due to its maturity, not many options are available *yet*
# mythroku.app
# [-backend=] The name of the myth master backend server
#
# [-settingsdir=] The directory to use for the .settings files
# and thumbnail previews
#
# [-cleansettings] If this option is provided, upon startup the
# settingsdir will be cleaned of all outdated
# .png and .settings files
#
# [-newestfirst] Sort episodes in order from newest to oldest
#
# [-themedir] Points to the folder above the "Themes" folder

echo $0
SXPATH=`echo "$0" | sed 's/\mythroku.roku//'`
echo $SXPATH
$SXPATH/mythroku.app -settingsdir=$SXPATH/tmp -backend=192.168.15.201 -dbuser=mythtv


What am I doing WRONG!

Please Help.

If you need more information please ask.

I used mythroku in 2005 and loved it, I used it everyday. The new version looks much improved and I can't wait to try it.

Chris
 
satz
Posts: 51
Joined: Sun Feb 05, 2006 12:30 am

Wed Nov 28, 2007 1:57 pm

Chris, the way you have things set up in your mythroku.roku file, you need the mythroku.app, mythroku.roku and the tmp/ directory all in the same directory. You should try telneting into your roku (192.168.15.100) login with root and just hit enter for the password. From there you can run mythroku.roku and watch the output for further clues.

Make sure your tmp directory can be written to by the roku. Try touching a file from the roku into tmp to verify.
 
Coldspring
Posts: 37
Joined: Fri Sep 23, 2005 8:35 pm

Installing Mythroku

Wed Nov 28, 2007 5:12 pm

OK

I knew it was something simple. I saw two other people post with problems getting mythroku started but never saw the answer.

The answer is so simple it was easy to miss. The mythroku.roku bash file has the !/bin/sh statement commented out on the first line so the roku does not see it as a bash file.

make sure the first line in the mythroku.roku file is

!/bin/sh

and not

#!/bin/sh

Simple and it only took me an entire after noon of trying everything else to figure it out!

Chris
 
leenuxg33k
Posts: 170
Joined: Sun Jan 23, 2005 7:09 pm
Location: Boston, MA
Contact:

Wed Nov 28, 2007 7:56 pm

That shouldn't be the problem. The #! is standard syntax for specifying an interpreter. I can't see why removing the # would suddenly make it work. If anything it should have caused it to stop working.
 
ecronin
Posts: 5
Joined: Thu Nov 29, 2007 10:34 am

Thu Nov 29, 2007 10:43 am

First, like everyone else I want to say thanks to jm_maclaren for keeping this program alive!

I finally got mythroku working in my setup yesterday (Problem seems to have been mysql permissions-- I was using the default mythtv/mythtv auth in mysql which seems to have worked well enough to grab the list of episodes, but not well enough to actually playback. Maybe the default password should just be removed all together so it fails quicker?). Previously I had been using MPlay with the Myth UPnP share.

Anyway, one thing I'm noticing is that mythroku has fewer zoom modes than MPlay, in particular Z6 which takes a HDTV video and letterboxes it on a 4:3 TV is nowhere to be seen. I can either crop or squish the widescreen content, but not keep the aspect and just scale it down...

Any chance the other MPlay zoom modes could be added?
 
jm_maclaren
Topic Author
Posts: 329
Joined: Mon Oct 16, 2006 9:03 am

Fri Nov 30, 2007 9:09 am

I have added the Z6 mode and will compile and upload the binary as 0.81m later on today
 
Coldspring
Posts: 37
Joined: Fri Sep 23, 2005 8:35 pm

Fri Nov 30, 2007 1:58 pm

I too would like to thank Jim for all the work he has done.

My wife is also very happy because with mythroku I actually watch TV rather than sit there all night mindlessly flipping through channels.

I have .79 up and running, but can not get .81l working.

I added -dbuser=mythtv to my mythroku.roku file

I had already set up mysql to be restricte by IP subnet for the mythtv user.

I renamed mythroku from the 81l zip to mythroku.app

But it does not seem to work. When I telnet into the roku and do a #mythroku.roku

I get bash: mythroku.roku command not found.

So I do the full path to the mythroku.roku file

/mnt/smb/sony/roku/mythroku.roku and I get bash: /mnt/smb/sony/roku/mythroku.roku: no such file or directory


My mythroku.roku file is shown below.

WHAT AM I DOING Wrong!


#!/bin/sh
#
# Due to its maturity, not many options are available *yet*
# mythroku.app
# [-backend=] The name of the myth master backend server
#
# [-settingsdir=] The directory to use for the .settings files
# and thumbnail previews
#
# [-cleansettings] If this option is provided, upon startup the
# settingsdir will be cleaned of all outdated
# .png and .settings files
#
# [-newestfirst] Sort episodes in order from newest to oldest
#
# [-themedir] Points to the folder above the "Themes" folder

echo $0
SXPATH=`echo "$0" | sed 's/\mythroku.roku//'`
echo $SXPATH
$SXPATH/mythroku.app -settingsdir=$SXPATH/tmp -backend=192.168.15.201 -dbuser=mythtv[u][/u][i][/i]
 
jm_maclaren
Topic Author
Posts: 329
Joined: Mon Oct 16, 2006 9:03 am

Fri Nov 30, 2007 3:25 pm

0.79 working 0.81 not is symptomatic of database communication issues. You need to try the mysql test program to see if you can get access to a mythconverg table from your roku.

If not, note you roku ip then add access to an account called mythtv as described on my web page (or looking at online mysql help) and tghen set it up with no password
do a
mysql -u root -p

get logged onto mysql on your master backend
then
do a (my roku is @ 192.168.1.202 just replace with your ip

 grant all on mythconverg.* to mythtv@"192.168.1.202" identified by "mythtv";

set password for mythtv@192.168.1.202=password('');

flush privileges;

quit;
 
ecronin
Posts: 5
Joined: Thu Nov 29, 2007 10:34 am

Tue Dec 04, 2007 1:14 pm

jm_maclaren wrote:
I have added the Z6 mode and will compile and upload the binary as 0.81m later on today


gentle ping :-)
 
Coldspring
Posts: 37
Joined: Fri Sep 23, 2005 8:35 pm

I Finally Got it Running -- Here is what I was doing wrong

Wed Dec 05, 2007 8:57 am

I finally got .81l running - it took me almost a week and three complete rebuilds of my MythTV backend so I thought I would tell you what I did wrong so others can learn from my mistakes.

That being said 81l is not running perfectly and crashes often but at least it does not screw up my backend to the point where it is more time effective to rebuild the whole server vs. trouble shoot. I will address my problems with running 81l in other post.

THE NUMBER ONE PROBLEM I HAD WAS EDITING THE MYTHROKU.ROKU FILE WITH WORDPAD OR NOTE PAD IN A WINDOWS SYSTEM!

I run a mixed linux fedora / win xp environment with fontends on a mixture of window and linux machines and a backend on a linux box.

My backend is a headless machine that sites in my basement and the machine that sits in my office runs winXP, so I was in the habit of opening up a share from the backend and using win tools to edit the file.

This caused all kinds of problems and worst of all they were not repeatable! Sometimes things would work some times they would not.

THE SECOND PROBLEM I HAD WAS DUE TO REMOVING THE PASSWORD FROM MY mythtv user in the mysql database.

The linux frontends need to have a password in the database or they could not open. So if I got 81l to work once then trying to open a frontend on a linux machine it would work once and then totally screw up the database.

I final got around the problem by creating a separate user for the roku.


Thanks to all those that helped.

I still have more questions about changing channels and scheduling programs using 81l but at least I can watch recorded shows.

Chris
 
Coldspring
Posts: 37
Joined: Fri Sep 23, 2005 8:35 pm

81l problems wtith MENU and Channel Changing

Wed Dec 05, 2007 4:00 pm

I have 81l runing at some level but there still seems to be problems. I can not get to the schedule menus and I can not change channel on liveTV.

I am able to run mysqltest, so it should not be a database problem, but looks like it is not finding information in the database.

When I start the program I get the following error, but mythroku still come up and I can watch recored shows.
# /mnt/smb/sony/roku/mythroku.roku   
/mnt/smb/sony/roku/mythroku.roku
/mnt/smb/sony/roku/

ATI Xilleon X225-A13    (Device ID: 4855   Revision: 3)

Aper  PhysBase  Size      VirtBase  AperBase  Access
00    18000000  00010000  2aacd000  2aacd000  MM
01    08000000  08000000  2b3ad000  2b3ad000  MM
02    1c000000  04000000  333ad000  333ad000  MM
03    10010000  00001000  2aae5000  2aae5000  MM
07    10011000  00000100  2aae6000  2aae6000  MM
08    10011100  00000100  2aae7000  2aae7100  MM
10    00002200  00000008  00002200  00002200  IO
11    00002208  00000004  00002208  00002208  IO
12    00002220  00000010  00002220  00002220  IO
14    00000000  00008000  00000000  173ad000  MM
15    00000000  00008000  00000000  173ad000  MM
16    00000000  00008000  00000000  173ad000  MM
17    00000000  00008000  00000000  173ad000  MM
18    00000000  00008000  00000000  173ad000  MM
19    00000000  00008000  00000000  173ad000  MM
20    00000000  00008000  00000000  173ad000  MM
22    10008000  00008000  2aadd000  2aadd000  MM


XCLK = 165 MHz
MCLK = 99 MHz
MIPS = 299 MHz

Memory Configuration: 32-bit 2-Channel DDR.
Channel 0 Size: 04000000 (64 MB)
Channel 1 Size: 04000000 (64 MB)
Total mem Size: 08000000 (128 MB)

Detecting theater...
Error: Rage theater/theater2 not found on VIP bus.

Core Version: 14.0.0.0
LLD Version:  14.0.0.0
HKD Version:  14.0.0.0

Core initialization completed.

acl| FwIrqRetrievalThread (Queue entry 0x373c51b4) started, Synchronization Mutex released
acl| AtiCore_NotificationMsgActivate(1, ATI_MSG_TYPE_INTERRUPT_OCCURRED) returns 0x0
acl| FwIrq_QueueCreate: Thread Synchronization Mutex 26 passed
acl| FwHkdCommunicationThread started, Synchronization Semaphore released
acl| AtiCore_NotificationMsgActivate(ATI_MSG_TYPE_FROM_HKD) returns 0x0
acl| FwHkdInit: Thread Synchronization Semaphore 26 passed
acl| Creating Message Event 0x1 for HKD Message Tag 0x4
acl| Waiting for the Message Event 0x1
acl| HkdCommunicationThread: AtiCore_NotificationMsgWait() returns a message 2 of length 8
acl| FwHkdCommunicationThread: FROM_HKD Message 0xa0086421 (Tag = 0x4) received
acl| Signalling the Message Event 0x1
acl| Message Event 0x1 is received with coreResult = 0x0
acl| Deleting Message Event 0x1
acl| FwHkdInit() success



2007-12-5 08:02:22.803 MythEventControl Open: connecting to mythtv server 192.168.15.201 port 6543
2007-12-5 08:02:25.822 MythControl MythControl: connecting to mythtv server 192.168.15.201 port 6543
2007-12-5 08:02:25.842 MythBrowser initializeInterface: /mnt/smb/sony/roku/Themes/mythroku/background.png
2007-12-5 08:02:26.612 MPlay TimerSeq: Opening Menu
2007-12-5 08:02:26.612 MythBrowser showMenu: Materialized window
2007-12-5 08:02:26.612 MythBrowser refreshTitles: in refreshTitles()
2007-12-5 08:02:26.732 MythBrowser refreshTitles: new show found Two and a Half Men
2007-12-5 08:02:26.732 MythBrowser refreshTitles: new show recgroup Default
2007-12-5 08:02:26.732 MythBrowser refreshTitles: new show found Hannah Montana
2007-12-5 08:02:26.732 MythBrowser refreshTitles: new show recgroup Default
2007-12-5 08:02:26.732 MythBrowser refreshTitles: new show found Pet Star
2007-12-5 08:02:26.732 MythBrowser refreshTitles: new show recgroup Default
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list count, (13)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list count, (7:1)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list, (0:1)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list count, (7)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list count, (1:2)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list, (1:2)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list count, (1)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list count, (0:3)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list, (2:3)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list, (a)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list, (aa 3)
2007-12-5 08:02:26.732 Unknown Debug cmyth_conn_get_free_recorder_list: (ERROR) cmyth_conn_get_free_recorder_list, (b)
2007-12-5 08:02:26.732 MythBrowser refreshTitles:  back from get_free
2007-12-5 08:02:26.732 MythBrowser refreshTitles:  # of free recorders 3
2007-12-5 08:02:26.732 MythBrowser refreshTitles:  # of free recorders 3
2007-12-5 08:02:26.972 Unknown Debug cmyth_recorder_get_program_info: (ERROR) JMM in get_proginfo
2007-12-5 08:02:26.992 Unknown Debug cmyth_recorder_get_program_info: (ERROR) JMM in get_proginfo
2007-12-5 08:02:27.22 Unknown Debug cmyth_recorder_get_program_info: (ERROR) JMM in get_proginfo
2007-12-5 08:02:27.32 MythBrowser refreshTitles: (ERROR)  done with recorders
2007-12-5 08:02:27.32 MythBrowser refreshTitles: (ERROR)  m_hlp m_hle 0 0
2007-12-5 08:02:27.32 MythBrowser refreshTitles: (ERROR)  currentProgram, currentUrl Live Television:http://192.168.15.201:6453/tuner/PVR-250
2007-12-5 08:02:27.32 MythBrowser refreshTitles: (ERROR)  done with recorders 1
2007-12-5 08:02:27.32 MythBrowser refreshTitles: (ERROR)  currentProgram, currentUrl Live Television:http://192.168.15.201:6453/tuner/PVR-250
2007-12-5 08:02:27.42 MythBrowser OnPaint: Highlighted program,episode Live Television http://192.168.15.201:6453/tuner/PVR-250 0 0
2007-12-5 08:02:27.42 MythBrowser OnPaint: Highlighted program,episode #0;0



When I push the Menu button I get the following and the roku and the backend needs a reboot.

2007-12-5 08:05:26.379 MythBrowser OnKeyDown:  MYTHBROWSER nKey 65568:
hello jameshello jameshello jamesTVGuideWindow::TVGuideWindow
TVGuideWindow::Setup()
Utils::LoadBitmap() - /mnt/smb/sony/roku/Themes/mythroku/backgroundblank.png
Failed to load the bitmap
InfoWindow::InfoWindow()
InfoWindow::Setup()
Utils::LoadBitmap() - /mnt/smb/sony/roku/Themes/mythroku/backgroundblank.png
Failed to load the bitmap
m_rawtime1196870726
timeinfo0x2b30f8c0
seconds0minutes0hours8TVGuideWindow::SearchForProgram number of scheduled programs = 84
TVGuideWindow::SetGuide1196870400
SELECT program.chanid,program.title,program.subtitle,program.description,UNIX_TIMESTAMP(program.starttime),UNIX_TIMESTAMP(program.endtime),program.programid,program.seriesid,program.category,channel.channum,channel.callsign,channel.name,channel.sourceid FROM program INNER JOIN channel ON program.chanid=channel.chanid WHERE (( (starttime>=FROM_UNIXTIME(1196870400) and starttime<FROM_UNIXTIME(1196877600)) OR (starttime <FROM_UNIXTIME(1196870400) and endtime > FROM_UNIXTIME(1196870400)) ) AND channel.visible=1 ) ORDER BY (channel.chanid), program.starttime ASC
I got 152 programs
2007-12-5 08:05:28.49 MythBrowser OnPaint: Highlighted program,episode Live Television http://192.168.15.201:6453/tuner/PVR-250 0 0
2007-12-5 08:05:28.49 MythBrowser OnPaint: Highlighted program,episode #0;0
hello jameshello jameshello jamesTVGuideWindow::OnMaterialize()
TVGuideWindow::OnMaterialize() IsFocus1
TVGuideWindow::OnMaterialize() IsVisible0
TVGuideWindow::OnMaterialize() IsFocus1
2007-12-5 08:05:28.129 MythBrowser OnPaint: Highlighted program,episode Live Television http://192.168.15.201:6453/tuner/PVR-250 0 0
2007-12-5 08:05:28.129 MythBrowser OnPaint: Highlighted program,episode #0;0




Any suggestions?
 
jm_maclaren
Topic Author
Posts: 329
Joined: Mon Oct 16, 2006 9:03 am

Wed Dec 05, 2007 5:02 pm

sorry its been frustrating, Looking at your log you are missing the background.png file. Downlaod the themes zip file and put the files into Themes/mythroku. This will likely fix your problems for this and the scheduling of programs

mysql can have accounts for each machine, I tried to explain it on my website. You create an account for user mythtv on the right ip, and then give it a blank password. You need to keep the accounts for your other frontends to access with the right p/w.
Live tv can be slow, especially for the hdhomerun. It is unforgiving of problems too. When you start livetv press info to get the prog info then use the N or S to browse,press the select when you have the right station. The real pain is the few buttons on the remote. I do plan to fire up a keybaird for channel changing but while I got livetv ti work I found it too aggrivating to use much.
 
Coldspring
Posts: 37
Joined: Fri Sep 23, 2005 8:35 pm

MENU's

Thu Dec 06, 2007 8:22 am

Jim

I checked the Themes folder, inside of which is a directory named "mythroku" , inside that resides the background.png file.

I moved that file to the Themes directory above and when I run mythroku I get a blue screen with text and no background and no Menu function, so I but everything back.

When I hit the Menu button still not scheduling info. When I look at the log it looks the same as the one I posed previously.

Am I correct in assuming that when I hit the MENU button from the mythroku home screen I should get a screen that allows me to select and schedule shows for future recordings or did I misunderstand what you mean by scheduling.

I don't know why but LiveTV works fine now.

Thank you for all your work and support.

As for as frustration with setting up mythroku, things were pretty simple and straight foreword. I was just chasing ghost cased by using a windows text editor of the .roku file.


Any suggestion of what I need to do to get scheduling working.

Thanks

Chris
 
jm_maclaren
Topic Author
Posts: 329
Joined: Mon Oct 16, 2006 9:03 am

Thu Dec 06, 2007 8:36 am

press the rotate key from the opening mythroku menu (the one showing the programs), menu brings uo the guide.
Again check the log for any missing pngs if there are problems. It is much harder debugging remotely when I don't see the same problem on my own roku.
 
jm_maclaren
Topic Author
Posts: 329
Joined: Mon Oct 16, 2006 9:03 am

Thu Dec 06, 2007 9:03 am

0.81m provides zoom mode 6 (from mplay) just keep pressing the rotate key while viewling your recording, I got the code from TVPLAY so hopefully it is the mode you're looking for,

edit: please recheck as of 8am PST as I uploaded the wrong file yesterday!

Who is online

Users browsing this forum: No registered users and 2 guests