My MythTV notes
These are the notes that I used when I first setup my system:-
1) Download tv_grab_nz-py from http://nice.net.nz/tv_grab_nz-py/
2) Copy tv_grab_nz-py to /usr/local/bin. Make sure that it
is executable. (sudo chmod +x tv_grab_nz-py)
3) Configure it. Note that the configuration file name must match that
name of the video source configured in mythtv-setup for the
mythbackend/mythfilldatabase to use this grabber.
tv_grab_nz-py --configure --config-file ~/.mythtv/<video sources
name>.xmltv
Step 3 had some problems for me but it was overcome by copying and editing
another <video sources name>.xmltv
You also need to symlink otherwise mythfilldatabase will not work
automatically (it uses the user mythtv)
sudo ln -s /home/yourusername/.mythtv/Freeview.xmltv /home/mythtv/.mythtv/Freeview.xmltv
4) To see if the xmltv side of things works run
tv_find_grabbers
This should return a list of all the installed grabbers, which should
include tv_grab_nz-py.
5) To see if the myth side of things works run
mythfilldatabase
Pay close attention to the output of this. If it looks like it worked,
the MythWeb status page should also show a successful run.
6) On the master backend run mythsetup and
a) In Video Sources set "New Zealand (py)" as the grabber for your
Video Source.
b) In General, on the Mythfilldatabase page (its the last page) enable
"Automatically run mythfilldatabase". Configure time, frequency, etc
to suite. Now Myth should use tv_grab_nz-py to update EPG
periodically. The MythWeb status page shows when it was last run and
what the results were.
After installing MythBuntu 16.04 had had
two problems:-
Mythweb fails with mysql Server version: 5.7.11-0ubuntu5
I found this
https://code.mythtv.org/trac/ticket/12713
Which suggested editing /etc/mysql/conf.d/mythtv.cnf
to
[mysqld]
#bind-address=0.0.0.0
max_connections=100
sql_mode=NO_ENGINE_SUBSTITUTION
This seems to have mythweb working OK.
I also had this problem *Mythbuntu 16.04 Fresh Install - always starts
MythTV Setup on boot *
and found this http://www.gossamer-threads.com/lists/mythtv/users/601385
and this https://ubuntuforums.org/showthread.php?t=2320224
The fix for me was...
Short version of solution that worked for me:
copy /lib/systemd/system/mythtv-backend.service to /etc/systemd/system/
edit /etc/systemd/system/mythtv-backend.service and insert the line
ExecStartPre=/usr/bin/nm-online --quiet --timeout=5 above the existing
ExecStartPre=... line.
reboot
How
to secure Mythweb
Mysql password can be found in
/home/mythtv/.mythtv/config.xml
When changing password it must be done in the following:-
mysql, /etc/mythtv/config.XML
and /etc/apache2/sites-available/mythweb.conf
and front-end setup.
To change to Schedules Direct grabber:-
0. Back everything up first!
1. Sign up for an account on www.schedulesdirect.org and follow the instructions
linked to above to get your 90 day voucher.
2. Activate XMLTV updates repo and
update. (I use MythBuntu Control Centre for this. May not be available on
other distros)
3. Verify that the Schedules
direct JSON module is now a recognised grabber:
tv_find_grabbers
should find: /usr/bin/tv_grab_sd_json|Schedules Direct JSON API
4. configure your Schedules
direct grabber
tv_grab_sd_json --configure
Follow the on screen prompts. I chose to use a "channels" config,
rather than a "lineup" config because I wanted a more fine-grained control
over my listings. I don't know whether this is worthwhile or not.
YMMV. Our country code is NZL
This creates a .conf file in your ~/.xmltv folder
I then copied as follows:-
sudo cp ~/.xmltv/tv_grab_sd_json.conf ~/.mythtv/SchedulesDirect.xmltv
and
sudo cp ~/.xmltv/tv_grab_sd_json.conf
/home/mythtv/.mythtv/SchedulesDirect.xmltv
then edit the cache line in /home/mythtv/.mythtv/SchedulesDirect.xmltv
to
cache=/home/mythtv/.xmltv/tv_grab_sd_json.cache
If the cache line is not edited mythfilldatabase, when run with user mythtv
will give error.....
FAILED: XMLTV grabber returned error code 13
The name of the xmltv file should match the name of the Video Source that
you set up in step 5 below. (e.g. SchedulesDirect.xmltv)
5. Add new video source(s) in
mythtv-setup
Set the "listings grabber" field to "Schedules Direct JSON API (xmltv)"
You also need a unique video source name that matches the symbolic link name
that you created in step 4 above. Do not click configure. Do not
check the "use EIT" box.
6. Input connections
Connect your existing capture cards to the video sources that you just
created. You should not need to scan for new channels or do any other
configuration here. Do not fetch channels from listing source.
7. Channel editor.
You need to enter the
These are the notes that I used when I first setup my system:-
1) Download tv_grab_nz-py from http://nice.net.nz/tv_grab_nz-py/
2) Copy tv_grab_nz-py to /usr/local/bin. Make sure that it
is executable. (sudo chmod +x tv_grab_nz-py)
3) Configure it. Note that the configuration file name must match that
name of the video source configured in mythtv-setup for the
mythbackend/mythfilldatabase to use this grabber.
tv_grab_nz-py --configure --config-file ~/.mythtv/<video sources
name>.xmltv
Step 3 had some problems for me but it was overcome by copying and editing
another <video sources name>.xmltv
You also need to symlink otherwise mythfilldatabase will not work
automatically (it uses the user mythtv)
sudo ln -s /home/yourusername/.mythtv/Freeview.xmltv /home/mythtv/.mythtv/Freeview.xmltv
4) To see if the xmltv side of things works run
tv_find_grabbers
This should return a list of all the installed grabbers, which should
include tv_grab_nz-py.
5) To see if the myth side of things works run
mythfilldatabase
Pay close attention to the output of this. If it looks like it worked,
the MythWeb status page should also show a successful run.
6) On the master backend run mythsetup and
a) In Video Sources set "New Zealand (py)" as the grabber for your
Video Source.
b) In General, on the Mythfilldatabase page (its the last page) enable
"Automatically run mythfilldatabase". Configure time, frequency, etc
to suite. Now Myth should use tv_grab_nz-py to update EPG
periodically. The MythWeb status page shows when it was last run and
what the results were.
After installing MythBuntu 16.04 had had
two problems:-
Mythweb fails with mysql Server version: 5.7.11-0ubuntu5
I found this
Icons go in the
~/.mythtv/channels folder. It's usually a good idea to empty
the /var/cache/mythweb/image_cache/ folder before updating icons.
Status from command line
robert@FishMyth:~$ mythtv-status --noencoder-skip-idle