No response ?
But I found one
It's XMLTV, a perl program an the url is :
http://wiki.xmltv.org/index.php/Main_Page
I'll try to help you to setup.
So you download the latest version :
- Code: Select all
wget http://downloads.sourceforge.net/project/xmltv/xmltv/0.5.58/xmltv-0.5.58.tar.bz2?r=&ts=1287513907&use_mirror=freefr
you untar the file :
- Code: Select all
tar jxfv xmltv-0.5.58.tar.bz2
You go the new folder :
- Code: Select all
cd xmltv-0.5.58
After you need to install "perl" with ipkg :
- Code: Select all
ipkg install perl
and now you run the command :
- Code: Select all
perl Makefile.PL
You'll get this response :
- Code: Select all
Choose which optional components of xmltv you want to install. The
XMLTV.pm library and the filter programs such as tv_grep and tv_sort
are installed by default; here you choose grabbers for different
countries and front-ends for managing listings.
Grabber for Switzerland (tv_grab_ch_search) [no]
Grabber for Latin America (tv_grab_dtv_la) [no]
Grabber for UK and Ireland (Radio Times) (tv_grab_uk_rt) [no]
Fast alternative grabber for the UK (tv_grab_uk_bleb) [no]
Grabber for Iceland (tv_grab_is) [no]
Grabber for Italy (tv_grab_it) [yes]
Grabber for Italy from DVB-S stream (tv_grab_it_dvb) [no]
Grabber for India (zipazap.com) (tv_grab_in) [no]
$ Grabber for North America-schedulesdirect.org (tv_grab_na_dd) [no]
Grabber for North American Channel Icons (tv_grab_na_icons) [no]
Grabber for Finland (tv_grab_fi) [no]
Grabber for Israel (tv_grab_il) [no]
Alternative grabber for Spain (tv_grab_es_laguiatv) [no]
Alternative grabber for Spain using miguiatv.com (tv_grab_es_miguiatv) [no]
Grabber for the Netherlands (tv_grab_nl) [no]
Grabber for Hungary and Romania (tv_grab_huro) [no]
Grabber for Denmark (dr.dk) (tv_grab_dk_dr) [no]
Grabber for Sweden (tv_grab_se_swedb) [no]
Grabber for Croatia (tv_grab_hr) [no]
Grabber for Norway (gfeed.info) (tv_grab_no_gfeed) [no]
Grabber for France (tv_grab_fr) [no]
Grabber for Portugal (tv_grab_pt) [no]
Grabber for South Africa (tv_grab_za) [no]
Grabber for some European countries (epgdata.com) (tv_grab_eu_epgdata) [no]
Grabber that combines data from other grabbers (tv_grab_combiner) [no]
Program to report exceptions and changes in a schedule (tv_check) [no]
CGI program to filter listings (to install manually) (tv_pick_cgi) [yes]
Grabber for Estonia (tv_grab_ee) [no]
Grabber for Reunion Island (France) (tv_grab_re) [no]
Grabber for DirecTV in North America (tv_grab_na_dtv) [no]
Do you want to proceed with this configuration? [yes,no (default=yes)]
You say
no and you'll say
yes just for your country grabber... for my exemple :
- Code: Select all
* Grabber for France (tv_grab_fr)
These dependencies are missing for tv_grab_fr:
HTML::Entities (version 1.27 or higher)
HTML::TreeBuilder
Do you wish to install tv_grab_fr? [yes,no (default=no)] yes
Then you must tell me the answer to the application because it lacks some modules but I did not notice that.
I will help on what you need.
...
...
...
Once past this stage, you have a new executable:
and you must configure it :
- Code: Select all
tv_grab_fr --configure
It offers you choices:
- Code: Select all
Get channels type : CABLE/SAT? [yes,no,all,none (default=yes)] no
Get channels type : CANAL SAT? [yes,no,all,none (default=yes)] no
Get channels type : DOCU/CULTURE? [yes,no,all,none (default=yes)] no
Get channels type : ETRANGERES? [yes,no,all,none (default=yes)] no
Get channels type : FILMS? [yes,no,all,none (default=yes)] no
Get channels type : FREEBOX? [yes,no,all,none (default=yes)] no
Get channels type : HERTZIENNE? [yes,no,all,none (default=yes)]
Get channels type : JEUNESSE? [yes,no,all,none (default=yes)] no
Get channels type : MUSIQUE? [yes,no,all,none (default=yes)] no
Get channels type : SERIES? [yes,no,all,none (default=yes)] no
Get channels type : SPORT? [yes,no,all,none (default=yes)] no
Get channels type : TNT? [yes,no,all,none (default=yes)] yes
getting channel lists
Channels for HERTZIENNE
add channel TF1? [yes,no,all,none (default=yes)]
add channel France 2? [yes,no,all,none (default=yes)]
add channel France 3? [yes,no,all,none (default=yes)]
add channel Canal +? [yes,no,all,none (default=yes)]
add channel Arte? [yes,no,all,none (default=yes)]
add channel M 6? [yes,no,all,none (default=yes)]
add channel France 5? [yes,no,all,none (default=yes)]
Channels for TNT
add channel i-télé? [yes,no,all,none (default=yes)]
add channel Direct 8? [yes,no,all,none (default=yes)]
add channel NT1? [yes,no,all,none (default=yes)]
add channel NRJ 12? [yes,no,all,none (default=yes)]
add channel Public Sénat - LCP AN? [yes,no,all,none (default=yes)]
add channel Direct Star? [yes,no,all,none (default=yes)]
add channel BFM TV? [yes,no,all,none (default=yes)]
add channel Gulli? [yes,no,all,none (default=yes)]
add channel France 4? [yes,no,all,none (default=yes)]
add channel W9? [yes,no,all,none (default=yes)]
add channel France Ô? [yes,no,all,none (default=yes)]
add channel TMC? [yes,no,all,none (default=yes)]
Finished configuration.
I chose in my example french channels.
You just have to create a cron job to automate the creation of this file during the night (this file takes several hours to build because he travels the reference site to take informations)
- Code: Select all
vi /etc/crontab
and you add at the end of file :
- Code: Select all
0 1 * * * root tv_grab_fr --output /volume1/test/programmetv.xml --days=9
In my case, I run every day at 1am and I take the program for 9 days.
You quit and save your file and you restart the cron service :
- Code: Select all
/usr/syno/etc.defaults/rc.d/S04crond.sh stop
Then
- Code: Select all
/usr/syno/etc.defaults/rc.d/S04crond.sh start
Now you have the TV program in XML file!!!
You tell me you're nice but then what?
After I'm currently thinking about making a website with information from this file and which will control the HDHomeRun
I already found how to parse the XML file in php but after I do not know if I use a database in MySQL or not.
I am truly sorry for my English! tell me if you dont't understand somethings.
See you soon
