Mythweb

From LinuxMCE
Jump to: navigation, search

MythWeb is a web-based administration utility to manage and schedule MythTV recordings, and ships with LinuxMCE. You can access MythWeb at 192.168.80.1/mythweb.

Mythweb is useful for managing and scheduling your recordings. It has a build in program guide that allows you to set recording schedules up to 2 weeks in advance, as well as option to set up recurrent recording (same channel every week, same channel at the same time every day, etc). It also has some very useful advanced functions such as setting up default images for your recordings, etc. This is probablty the fastest interface for seting up recordings, and every MythTV user should learn how to use it. Mythweb.png

Hints and Tips

External access to recorded shows

You may want to be able to watch your recorded shows while you are away from home. There are a few things that you must do to enable this functionallity: 1- Setup your LMCE install to allow outside access. This is beyond the scope of this article, but only involves enabling outside access in the web admin, and setting up port forwarding on any routers on the external network. Once this is done, you should be able to point any browser to your_ip_address/mythweb. Also, currently mythweb only offers the recordings as downloads, but the next version will also have a streaming engine.

2- Once outside access is set up, you must fix a simple bug. There is a symbolic link that points to the wrong recording directory. We can fix this by deleting the bad symbolic link, and making a new one:

cd /var/www/mythweb/data
sudo rm recordings
sudo ln -s /home/public/data/videos/tv_shows_1 recordings

Please note that this works for shows recorded with the core. If you have tuner cards across several MD's, I'm not sure what the best solution would be.



Fix For Fatal error: Allowed memory size of ######## bytes exhausted ... and Timeout Errors

If you have many channels, then the guide data downloaded from schedules direct may be larger than is allowed for your PHP/Apache settings. If you get this error, you must change some settings to deal with the large size of this data.

cd /etc/mythtv/mythweb-htaccess
sudo vim /etc/mythtv/mythweb-htaccess

then on line 88 change

php_value memory_limit          32M

to

php_value memory_limit          64M

Also, you may get timeout errors with very large guide data sets. The default is 30 seconds, which is easy to reach when you have over 500 chanels. This can be fixed by:

cd /etc/php5/apache2/php.ini
sudo vim /etc/php5/apache2/php.ini

at line 267, change

max_execution_time = 30

to

max_execution_time = 60

You may even need to go larger on these settings if you have a lot of channels (the above works for me with 720 channels). Just experiment and you should find something that works.