EPG IMPORT - Import XMLTV file to Astra.
Reserved for middleware.
XMLTV Channel ID - channel id from xmltv file.
EPG is an electronic program guide. EPG Export extracts the program guide from the stream and saves it into the file or sends it to the server.
FORMAT - transmission format:
XMLTV - it is a popular format for storing and distributing EPG files. XMLTV uses a large number of popular middlware and iptv players. (as an example - Infomir Ministra)
DESTINATION - destination address:
file:// - save EPG to file. (for example, file://tmp/test_channel.xml - save EPG in /tmp folder with file name test_channel.xml)
http:// - sending data via POST request via HTTP Protocol. (On the server side, there must be an application to handle the received request - for example, an EPG aggregator)
This option let to override EPG codepage.
By the default Astra get codepage from the EIT table
EPG Aggregator is a script for Astra to receive EPG from many servers and save it into the single XMLTV file.
To install script, run command in server console:
wget -O /etc/astra/epg-aggregator.lua http://cesbo.com/download/astra/scripts/epg-aggregator.lua
And launch it:
astra /etc/astra/epg-aggregator.lua -o /tmp/epg.xml -p 5000 --daemon
-o /tmp/epg.xml -path to store the generated XMLTV file
-p 5000 -port for receiving EPG
–daemon -run as daemon
–interval SEC -interval of saving EPG to file. default: 60 seconds
–stalker — replace tag
the script is ready to receive data on port 5000.
You can add an autorun script:
Run commands in the console:
wget http://cesbo.com/download/astra/scripts/astra-epg.service -O /etc/systemd/system/astra-epg.service systemctl daemon-reload systemctl enable astra-epg systemctl start astra-epg
In stream settings, on the "EPG" tab, configure the epg transfer:
The file with the collected data will be located on the path: /tmp/epg.xml
You can add URLs to client applications: http://EPG_agregator_IP:5000/epg.xml