Author |
Message |
Truck
|
Posted: Sat Mar 14, 2009 10:09 pm |
|
Joined: Wed Mar 19, 2008 5:26 pm
Posts: 14
Location:
Brisbane, QLD, Australia
|
Quote: when you install Shepherd it turns it off and installs a cron job to do the work
Thanks for the tip Girkers, I was aware that it has that option and I did look at it but I was not a big fan of the cron-job option as it calls mythfilldatabase every hour and it will only do anything useful (i.e. actually grab guide data) once every 22 hours. I know running mythfilldatabase isn't a huge load, but why waste processing/memory.
Personally I would prefer to use the more "standard" automatic option that myth provides. This has a few benefits in my thinking. It can be run at certain times and it can also be run less frequently than daily so I can do my bit to reduce the load on the guide servers. The automatic option also has an option to run at a time suggested by the grabber, which shepherd may provide at some point (I will probably look into it one day if I get the time). I think it will also reduce any changeover effort if I ever change grabbers (not likely with how well shepherd works, but you never know).
Cheers.
|
|
Top |
|
|
techman83
|
Posted: Sat Mar 14, 2009 10:16 pm |
|
Joined: Tue Aug 22, 2006 9:11 am
Posts: 127
Location:
Perth
|
Can be easily changed from hourly to daily. Just have to edit the cron schedule. I'm not using it yet so I'm not sure where it's been put (crontab or one of the other sections).
On a another note to not through this thread off topic http://mysettopbox.tv/phpBB2/viewtopic. ... 488#120488 <- feedback on Shepherd
_________________ DRM 'manages access' in the same way that jail 'manages freedom.'
_________________
Intel P4 2.6
Intel Desktop Board
2GB DDR400
nVidia 6600GT
Dvico HDTV+
Dvico Dual 4
200GB WD for Swap /boot & /
2x 500GB WD with LVM & XFS for /myth/tv
|
|
Top |
|
|
nmcaullay
|
Posted: Wed Mar 25, 2009 8:17 am |
|
Joined: Sun Sep 04, 2005 7:48 pm
Posts: 264
Location:
Perth, Australia
|
Just incase anyone gets to the bottom of this thread and wasnt sure how this is done... well, this is how i just did this on a stock R6.. mucho thanks to all the previous posters...
as root
Code: #pacman -S gcc make #install CPAN #cpan Algorithm::Diff #cpan List::Compare #cpan Digest:SHA1 as mythtvCode: cd ~ wget http://www.whuffy.com/shepherd/shepherd perl shepherd
Then configure as per shepherd install... accept for shepherd to put in a crontab entry, and symlink... and about 2 minutes after youve finished configuring shepherd, tv_grab_au/mythfilldatabase/shepherd will run... resulting in a populated EPG!! Lovely!
_________________ LinHES: R6 | MB: Asus M3N-H/HDMI | CPU: AMD ??Mhz
Capture: 2xHDHR DVB-T
Graphics: Onboard 8300|PSU: Corsair vx450w
Cooling: Zalman cu?,
Display: Benq xx projector
|
|
Top |
|
|
Girkers
|
Posted: Wed Mar 25, 2009 8:32 am |
|
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location:
Brisbane, Queensland, Australia
|
For furture reference I have logged a flyspray job and have been working with Cecil to get the required modules included by default in the full release of R6.
_________________ Girkers
|
|
Top |
|
|
Ozdemon
|
Posted: Thu Jun 11, 2009 4:15 pm |
|
Joined: Wed Jun 10, 2009 8:39 pm
Posts: 118
|
nmcaullay wrote: Just incase anyone gets to the bottom of this thread and wasnt sure how this is done... well, this is how i just did this on a stock R6.. mucho thanks to all the previous posters...
You are dead right I wasn't sure how it was done. I am going to follow your instructions right now. mmm Shepherd EPG
[Edit] Didn't work for me installing CPAN - missing destination operand or something like that.
However Cecil makes it foolproof (lucky for me!)
sudo pacman -Sy shepherd-dep
will install the needed packages in one go.
|
|
Top |
|
|
cecil
|
Posted: Mon Jun 15, 2009 11:19 am |
|
|
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
A bug report about sherperd not working has been filed. More feedback on this would be appreciated.
Thanks,
Cecil
|
|
Top |
|
|
soundoff
|
Posted: Fri Jul 03, 2009 4:09 am |
|
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location:
Brisbane, Australia
|
I am having a similar problem to others with shepherd segfaulting.
R6.0.0.8 Fresh Install. Then I installed shepherd using:
Code: sudo -Sy shepherd-dep cd~ wget http://www.whuffy.com/shepherd/shepherd perl shepherd The install worked great. Even grabbed nice channel icons for me. very cool. I then ran mythfilldatabase and it segfaulted.. so i did the following: Code: [root@mythtv ~]# pacman -Sy shepherd-dep :: Synchronizing package databases... core-testing is up to date extra-testing is up to date shepherd-dep package not found, searching for group... :: group shepherd-dep (including ignored packages): perl-algorithm-diff perl-digest-sha1 perl-javascript perl-list-compare perl-pathtools :: Install whole content? [Y/n] Y warning: perl-algorithm-diff-1.1902-4 is up to date -- reinstalling warning: perl-digest-sha1-2.11-4 is up to date -- reinstalling warning: perl-javascript-1.12-2 is up to date -- reinstalling warning: perl-list-compare-0.37-2 is up to date -- reinstalling warning: perl-pathtools-3.29-2 is up to date -- reinstalling resolving dependencies... looking for inter-conflicts...
Targets (5): perl-algorithm-diff-1.1902-4 perl-digest-sha1-2.11-4 perl-javascript-1.12-2 perl-list-compare-0.37-2 perl-pathtools-3.29-2
Total Download Size: 0.00 MB Total Installed Size: 1.10 MB
Proceed with installation? [Y/n] Y checking package integrity... (5/5) checking for file conflicts [#####################] 100% (1/5) upgrading perl-algorithm-diff [#####################] 100% (2/5) upgrading perl-digest-sha1 [#####################] 100% (3/5) upgrading perl-javascript [#####################] 100% (4/5) upgrading perl-list-compare [#####################] 100% (5/5) upgrading perl-pathtools [#####################] 100% [root@mythtv ~]# su mythtv [mythtv@mythtv root]$ mythfilldatabase 2009-07-03 19:52:49.220 Using runtime prefix = /usr 2009-07-03 19:52:49.221 Empty LocalHostName. 2009-07-03 19:52:49.221 Using localhost value of mythtv 2009-07-03 19:52:49.222 Testing network connectivity to 10.1.1.11 2009-07-03 19:52:49.240 New DB connection, total: 1 2009-07-03 19:52:49.245 Connected to database 'mythconverg' at host: 10.1.1.11 2009-07-03 19:52:49.246 Closing DB connection named 'DBManager0' 2009-07-03 19:52:49.247 Connected to database 'mythconverg' at host: 10.1.1.11 2009-07-03 19:52:49.251 New DB connection, total: 2 2009-07-03 19:52:49.252 Connected to database 'mythconverg' at host: 10.1.1.11 2009-07-03 19:52:49.253 Updating source #10 (DigitalTV) with grabber tv_grab_au 2009-07-03 19:52:49.254 Found 8 channels for source 10 which use grabber 2009-07-03 19:52:49.839 Grabber has capabilities: baseline manualconfig preferredmethod 2009-07-03 19:52:50.403 Grabber prefers method: allatonce 2009-07-03 19:52:50.404 New DB connection, total: 3 2009-07-03 19:52:50.405 Connected to database 'mythconverg' at host: 10.1.1.11 2009-07-03 19:52:50.407 XMLTVConfig entry in settings table missing, falling back to old behavior 2009-07-03 19:52:50.407 XMLTV config file is: /home/mythtv/.mythtv/DigitalTV.xmltv sh: line 1: 17259 Segmentation fault PERL5LIB="/home/mythtv/.shepherd/references" /home/mythtv/.shepherd/grabbers/news/news --region 75 --output /home/mythtv/.shepherd/grabbers/news/output-0.xmltv --days 8 --channels_file /home/mythtv/.shepherd/channels.conf.tmp 2>&1 sh: line 1: 17263 Segmentation fault PERL5LIB="/home/mythtv/.shepherd/references" /home/mythtv/.shepherd/grabbers/rex/rex --region 75 --output /home/mythtv/.shepherd/grabbers/rex/output-0.xmltv --days 8 --channels_file /home/mythtv/.shepherd/channels.conf.tmp 2>&1
Any help would be greatly appreciated. I am so close to having a fully functioning myth system again!! I have also posted this in the bug report on flyspray. Please let me know if there is any further info i can provide
|
|
Top |
|
|
soundoff
|
Posted: Fri Jul 03, 2009 5:14 am |
|
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location:
Brisbane, Australia
|
Girkers suggested I try a system update (thanks mate). No go with that either though:
Code: [root@mythtv ~]# pacman -Syu :: Synchronizing package databases... core-testing is up to date extra-testing is up to date :: Starting full system upgrade... :: Replace iproute with core-testing/iproute2? [Y/n] Y resolving dependencies... looking for inter-conflicts...
Remove (1): iproute-2.6.25-1
Total Removed Size: 1.24 MB
Targets (35): linux-atm-2.5.0-1 iproute2-2.6.28-1 system-templates-1.0-24 linhes-timezone-1-2 python-parted-2.0.12-1 ddcxinfo-0.6.19-2 LinHES-config-2.0-32 libcap-2.16-3 avahi-0.6.24-2 cdrkit-1.1.8-2 dvb-firmware-1-5 etcnet-0.9.8-5 libjpeg-6b-6 which-2.20-10 fbsplash-1.5.4.3-14 ffmpeg-20081220-3 kernel26-2.6.28.5-3 linhes-scripts-1-15 lirc-0.8.5CVS-12 local-website-2-8 mdadm-3.0-11 tdb-3.3.4-1 smbclient-3.3.4-1 mplayer-29352-1 mythdb-initial-1-42 perl-time-format-1.09-1 mythtv-0.21-71 mythgallery-0.21-5 mythweb-0.21-18 runit-scripts-1.8.0-90 samba-3.3.4-1 tweaker-1-32 udev-135-3 libnl-1.1-2 wpa_supplicant-0.6.9-1
Total Download Size: 113.28 MB Total Installed Size: 328.09 MB
Proceed with installation? [Y/n] Y :: Retrieving packages from core-testing... linux-atm-2.5.0-1-i686 336.9K 172.9K/s 00:00:02 [#####################] 100% iproute2-2.6.28-1-i686 454.0K 192.8K/s 00:00:02 [#####################] 100% system-templates-1.... 836.8K 175.7K/s 00:00:05 [#####################] 100% linhes-timezone-1-2... 265.7K 148.3K/s 00:00:02 [#####################] 100% python-parted-2.0.1... 108.3K 86.2K/s 00:00:01 [#####################] 100% ddcxinfo-0.6.19-2-i686 12.4K 26.5K/s 00:00:00 [#####################] 100% LinHES-config-2.0-3... 386.0K 174.3K/s 00:00:02 [#####################] 100% libcap-2.16-3-i686 35.5K 48.2K/s 00:00:01 [#####################] 100% avahi-0.6.24-2-i686 737.2K 163.2K/s 00:00:05 [#####################] 100% cdrkit-1.1.8-2-i686 1023.5K 191.5K/s 00:00:05 [#####################] 100% dvb-firmware-1-5-i686 1779.3K 295.6K/s 00:00:06 [#####################] 100% etcnet-0.9.8-5-i686 123.6K 94.3K/s 00:00:01 [#####################] 100% libjpeg-6b-6-i686 217.7K 131.8K/s 00:00:02 [#####################] 100% which-2.20-10-i686 11.3K 24.4K/s 00:00:00 [#####################] 100% fbsplash-1.5.4.3-14... 2.6M 286.7K/s 00:00:09 [#####################] 100% ffmpeg-20081220-3-i686 4.9M 336.6K/s 00:00:15 [#####################] 100% kernel26-2.6.28.5-3... 28.6M 357.4K/s 00:01:22 [#####################] 100% linhes-scripts-1-15... 17.4K 36.2K/s 00:00:00 [#####################] 100% lirc-0.8.5CVS-12-i686 88.8K 73.0K/s 00:00:01 [#####################] 100% local-website-2-8-i686 1438.2K 286.5K/s 00:00:05 [#####################] 100% mdadm-3.0-11-i686 677.5K 232.4K/s 00:00:03 [#####################] 100% tdb-3.3.4-1-i686 128.2K 96.5K/s 00:00:01 [#####################] 100% smbclient-3.3.4-1-i686 14.7M 352.8K/s 00:00:43 [#####################] 100% mplayer-29352-1-i686 8.4M 346.2K/s 00:00:25 [#####################] 100% mythdb-initial-1-42... 23.4K 33.6K/s 00:00:01 [#####################] 100% perl-time-format-1.... 24.2K 34.8K/s 00:00:01 [#####################] 100% mythtv-0.21-71-i686 19.8M 355.4K/s 00:00:57 [#####################] 100% mythgallery-0.21-5-i686 206.3K 126.2K/s 00:00:02 [#####################] 100% mythweb-0.21-18-i686 1960.4K 303.3K/s 00:00:06 [#####################] 100% runit-scripts-1.8.0... 9.0K 37.1K/s 00:00:00 [#####################] 100% samba-3.3.4-1-i686 23.0M 356.4K/s 00:01:06 [#####################] 100% tweaker-1-32-i686 52.8K 54.7K/s 00:00:01 [#####################] 100% udev-135-3-i686 237.4K 136.4K/s 00:00:02 [#####################] 100% wpa_supplicant-0.6.... 227.9K 135.5K/s 00:00:02 [#####################] 100% :: Retrieving packages from extra-testing... libnl-1.1-2-i686 152.3K 103.8K/s 00:00:01 [#####################] 100% checking package integrity... (35/35) checking for file conflicts [#####################] 100% error: could not prepare transaction error: failed to commit transaction (conflicting files) /lib/udev/rules.d/64-md-raid.rules exists in both 'mdadm' and 'udev' mdadm: /lib/udev/rules.d/64-md-raid.rules exists in filesystem Errors occurred, no packages were upgraded.
any ideas?
|
|
Top |
|
|
soundoff
|
Posted: Fri Jul 03, 2009 6:55 am |
|
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location:
Brisbane, Australia
|
OK. weirdest thing just happened.
I fired up livetv and let a program my mrs wanted recorded run for a few hours so she can watch it tomorrow.
came back... and I have guide data! It looks like the cron job kicked in at 22:22 and fired up shepherd.
All I can think of is that just before girkers called me (and i ran the pacman -Syu that failed) i started following nmcaullay's instructions. I only ran one line before the phone rang:
Code: #pacman -S gcc make could this have sorted my problem? Very weird that this just started working, but i am not complaining The other option is that manually running "mythfilldatabase" as user mythtv is different to what the cron job runs: Code: 22 * * * * nice /usr/bin/mythfilldatabase --graboptions '--daily'
|
|
Top |
|
|
Girkers
|
Posted: Fri Jul 03, 2009 11:39 pm |
|
Joined: Tue Mar 22, 2005 9:18 pm
Posts: 1422
Location:
Brisbane, Queensland, Australia
|
I am glad you go it solved, gcc and make are needed (from my understanding) to use cpan to install things. But as cecil has pre-compiled the binaries necessary I didn't think this was needed.
As to your upgrade you can force it, BUT I am not sure about that conflict you have, I would post a bug on flyspray so the experts could advise you the best.
_________________ Girkers
|
|
Top |
|
|
soundoff
|
Posted: Sat Jul 04, 2009 5:24 am |
|
Joined: Tue Jan 24, 2006 1:29 am
Posts: 157
Location:
Brisbane, Australia
|
well I now know where the guide data came from.... EIT! it just grabbed it off the air.
My previous install crapped out so i started from scratch again. Enabled EIT and I have 8 days guide data without even running mythfilldatabase.
I have never used EIT before - whats the catch? Why would I even need shepherd these days??
Getting back on topic - The segfault problem with shepherd is still there. It didnt fix itself, i just had EIT enabled without realising.
|
|
Top |
|
|
shepherd
|
Posted: Sat Jul 04, 2009 8:19 pm |
|
Joined: Thu Oct 23, 2008 4:55 pm
Posts: 6
|
I haven't tried EIT myself, but I have heard that the names of programs regularly change, making it difficult to set recording rules.
|
|
Top |
|
|
Greg Frost
|
Posted: Fri Jul 10, 2009 6:32 pm |
|
Joined: Mon May 10, 2004 8:08 pm
Posts: 1891
Location:
Adelaide, Australia
|
I have submitted a package for shepherd, so once the devs build it, all you should need to do to install it is: Code: sudo pacman -S shepherd Then to configure it (which should be done after you scan channels) as the mythtv user: Code: shepherd
To configure it I need to go through the tedious process of mapping data sources to channel names. Is there a reason that this is not done automatically based on the callsign of the channel?
|
|
Top |
|
|
shepherd
|
Posted: Sat Jul 11, 2009 5:49 pm |
|
Joined: Thu Oct 23, 2008 4:55 pm
Posts: 6
|
Greg Frost wrote: To configure it I need to go through the tedious process of mapping data sources to channel names. Is there a reason that this is not done automatically based on the callsign of the channel?
Callsigns aren't standardized, from what I understand. Shepherd does attempt to guess which MythTV channel is which, when you use Advanced Channel Configuration, but not Guided.
|
|
Top |
|
|
cecil
|
Posted: Wed Jul 15, 2009 2:26 pm |
|
|
Site Admin |
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location:
Whittier, Ca
|
Thanks Greg. Built and uploading to the repo... I'll consider installing it by default.
|
|
Top |
|
|