Zap2xml for ATSC in OpenELEC
#3
(2016-04-12, 00:42)greenbag Wrote: There's a thread where someone installed ActivePerl to the user directory, then symlinked it or something.. as perl normally needs to be installed in the root directory, but that's locked down in openelec. If you have another pc, you can run zap2xml on it, then copy the *xml file to openelec when the old one expires.. 2 weeks or whatever you set it up for. This is why I chose to install Ubuntu on my Pi, then build kodi on top of that. Even with Raspbian.. you have more control over the system. I have zap2xml running on the same system as kodi, even using the web browser in the os to configure the backend.

Thanks for the pointer. After a bit of fiddling, I finally managed to make everything work, capturing the info here for anyone else who needs to do it.

You can download and install ActivePerl on OpenElec (once you know how, rather siple, actually), then add all the necessary Perl packages and finally downloading/running zap2xml

Code:
mkdir -p /storage/downloads/activeperl
cd /storage/downloads/activeperl

# if necessarym replace the download with the latest version
wget http://downloads.activestate.com/ActivePerl/releases/5.22.1.2201/ActivePerl-5.22.1.2201-x86_64-linux-glibc-2.15-299574.tar.gz

tar xzf ActivePerl-5.22.1.2201-x86_64-linux-glibc-2.15-299574.tar.gz

cd ActivePerl-5.22.1.2201-x86_64-linux-glibc-2.15-299574/

./install.sh --prefix /storage/ActivePerl --license-accepted --no-install-html

# done installing perl

#add ActivePerl to PATH
PATH=$PATH:/storage/ActivePerl/site/bin:/storage/ActivePerl/bin

# install some extra perl packages (not sure if all are actually needed, but this works... you can try to run the script and see what dependencies are missing)
/storage/ActivePerl/bin/ppm install TermReadKey
/storage/ActivePerl/bin/ppm install Date-Manip
/storage/ActivePerl/bin/ppm install XML-LibXML
/storage/ActivePerl/bin/ppm install XML-Writer
/storage/ActivePerl/bin/ppm install XML-Twig
/storage/ActivePerl/bin/ppm install File-Slurp
/storage/ActivePerl/bin/ppm install TimeDate
/storage/ActivePerl/bin/ppm install DateTime-Format-Strptime
/storage/ActivePerl/bin/ppm install XML-SAX
/storage/ActivePerl/bin/ppm install XML-NamespaceSupport
/storage/ActivePerl/bin/ppm install IO-stringy
/storage/ActivePerl/bin/ppm install HTTP-Cache-Transparent

/storage/ActivePerl/bin/ppm install JSON-XS

# I decided to store the resulting xmltv.xml file in /storage/xmltv directory, you can use anything else
mkdir -p /storage/xmltv
cd /storage/xmltv
# the current version of the download link for zap2xml for me was at http://zap2xml.hosterbox.net/?h=c61rsa you can find it here: http://zap2xml.awardspace.info/#dependencies)
wget http://zap2xml.hosterbox.net/?h=c61rsa -O zap2xml.pl

Assuming you have a zap2it account, after this, you would usually run a cron job to periodically refresh xlmtv.xml. Here's how you can test it works:

Code:
perl /storage/xmltv/zap2xml.pl -u username@email -p your_password -o /storage/xmltv/xmltv.xml

Since it was the first time I was setting an EPG in tvheadend, I first had to select the xmltv.xml file location in the tvheadend addon UI (from Kodi), then use the tvheadend Web UI to select the right xmltv.xml setting (Configuration, Channel/EPG, EPG grabber, select Internal grabber and there should be your file... it took me a couple of reboots for everything to work). Then Configuration, Channel/EPG, Channels, and one by one map the EPG grabber to the right channel (use Edit, if everything works, you should see a list of your channels in the EPG Source drop down)

Now I just need to make sure that my cron job runs when expected Smile
Reply


Messages In This Thread
Zap2xml for ATSC in OpenELEC - by robca - 2016-04-01, 19:58
RE: Zap2xml for ATSC in OpenELEC - by robca - 2016-04-25, 02:11
RE: Zap2xml for ATSC in OpenELEC - by brohawk - 2016-04-27, 19:20
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2016-07-20, 14:27
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2016-07-21, 18:51
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-08-21, 21:25
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-08-21, 22:47
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-08-21, 23:41
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-08-22, 00:40
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-08-22, 02:55
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-08-22, 17:19
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-10-08, 16:53
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-10-08, 18:16
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 16:27
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-10-25, 04:39
RE: Zap2xml for ATSC in OpenELEC - by drhoeh - 2016-10-26, 00:53
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 16:38
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 16:55
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 17:03
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2016-11-01, 18:15
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2016-12-15, 21:42
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2016-11-10, 06:53
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2016-11-11, 15:30
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2016-11-12, 04:57
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2016-12-15, 23:14
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2017-03-07, 23:33
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2017-03-10, 02:26
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-27, 01:57
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-27, 06:12
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-27, 07:11
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-27, 07:14
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-28, 03:13
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-28, 23:50
RE: Zap2xml for ATSC in OpenELEC - by mesc53 - 2017-04-29, 06:08
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-05-02, 18:33
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-05-02, 19:41
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-12, 23:34
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-13, 03:25
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-13, 15:28
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-13, 15:34
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-15, 01:22
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-15, 13:27
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-15, 19:18
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-17, 14:53
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-16, 16:43
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-19, 03:24
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-06-22, 14:15
RE: Zap2xml for ATSC in OpenELEC - by rcrh - 2017-07-07, 14:43
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-26, 01:31
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-26, 05:20
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-26, 19:06
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-26, 20:56
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-07-27, 01:08
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-04, 17:52
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-06, 16:15
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-07, 00:22
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-07, 16:08
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-07, 17:30
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-07, 18:32
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-09, 14:36
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 01:03
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 01:15
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 03:22
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 03:25
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 14:03
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 16:41
RE: Zap2xml for ATSC in OpenELEC - by LHoust - 2017-08-10, 21:37
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-13, 04:37
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-13, 15:28
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-13, 20:56
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-13, 21:25
RE: Zap2xml for ATSC in OpenELEC - by mikitz - 2017-08-14, 01:09
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 14:29
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 16:25
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 16:36
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 17:28
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 17:46
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 18:24
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-21, 22:57
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-22, 15:55
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-23, 16:24
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-08-23, 20:35
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-26, 21:37
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-27, 00:07
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-28, 03:43
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-28, 21:24
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-29, 01:40
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-30, 17:34
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-30, 18:41
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-30, 22:30
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-31, 00:33
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-31, 04:20
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-08-31, 18:17
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-02, 17:30
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-03, 18:38
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-04, 21:12
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-06, 17:04
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-06, 23:21
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-07, 02:11
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-08, 04:23
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-09, 01:27
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-10, 17:58
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-15, 02:49
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-21, 01:28
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-23, 03:03
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-09-23, 19:55
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-09-23, 16:06
RE: Zap2xml for ATSC in OpenELEC - by snapple - 2017-09-28, 21:00
RE: Zap2xml for ATSC in OpenELEC - by snapple - 2017-09-28, 21:30
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-06, 19:36
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-08, 23:02
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-09, 18:51
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-10, 17:50
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-11, 18:22
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-11, 21:49
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-14, 23:49
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-24, 23:26
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-26, 02:58
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2017-10-30, 15:13
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-10-31, 17:00
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-01, 06:11
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-01, 18:45
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-02, 02:17
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-05, 23:29
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-02, 17:25
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-08, 04:07
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-08, 18:10
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-08, 19:35
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-09, 02:38
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-09, 17:36
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-09, 19:41
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-10, 03:42
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-10, 18:33
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-12, 04:02
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-12, 23:55
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-13, 01:29
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-13, 18:14
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-14, 08:13
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-15, 01:54
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-15, 22:21
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-15, 02:35
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-16, 18:23
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-16, 21:46
RE: Zap2xml for ATSC in OpenELEC - by Mardy - 2017-11-19, 05:09
RE: Zap2xml for ATSC in OpenELEC - by Mardy - 2017-11-19, 15:39
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2017-11-22, 02:20
RE: Zap2xml for ATSC in OpenELEC - by Alarmed - 2017-11-22, 05:12
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-24, 18:28
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-26, 04:00
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-11-26, 21:16
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-02, 00:13
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 04:43
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 17:41
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 19:03
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 21:11
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-03, 23:00
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-04, 17:51
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-04, 17:53
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-05, 07:44
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-05, 16:27
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-07, 23:44
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-14, 01:51
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-15, 19:15
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-15, 23:08
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-16, 22:53
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-18, 18:49
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-19, 00:14
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2017-12-20, 04:20
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-18, 18:17
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2018-01-21, 21:10
RE: Zap2xml for ATSC in OpenELEC - by igbee - 2018-01-22, 15:56
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-22, 18:52
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-22, 19:54
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-22, 22:52
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-23, 17:39
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-01-23, 18:16
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-02-15, 19:27
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-02-17, 00:45
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-03-18, 22:13
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-03-19, 03:12
RE: Zap2xml for ATSC in OpenELEC - by MB32 - 2018-03-21, 06:04
RE: Zap2xml for ATSC in OpenELEC - by MB32 - 2018-03-21, 19:04
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2018-04-28, 06:41
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-06-13, 04:21
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-06-13, 22:36
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2018-06-15, 22:38
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2019-03-04, 21:47
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2019-03-06, 01:13
RE: Zap2xml for ATSC in OpenELEC - by stephr1 - 2019-03-06, 02:15
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2019-09-02, 18:35
RE: Zap2xml for ATSC in OpenELEC - by mxlance - 2019-09-06, 14:35
RE: Zap2xml for ATSC in OpenELEC - by RKCRLR - 2020-10-04, 20:50
Logout Mark Read Team Forum Stats Members Help
Zap2xml for ATSC in OpenELEC4