EPG/EIT generator

    EPG generator (eit), used to add electronic program guide in DVB-C/T network

    Download and install the generator executable file:

    curl -Lo /usr/bin/eit-stream http://cesbo.com/and/eit-stream
    chmod +x /usr/bin/eit-stream

    Create a configuration file /etc/astra/eit.ini
    Sample file:

    xmltv = /opt/xmltv.xml
    output = udp://lo@232.0.0.1:1234
    onid = 8000
    codepage = 5
    eit-days = 1
    eit-rate = 1500
    
    [tdt-tot]
    country = RUS
    offset = +300
    
    [multiplex]
    tsid = 1001
    
    [multiplex/service]
    pnr = 101
    xmltv-id = 1TV_O4
    xmltv = /opt/xmltv2.xml
    
    [multiplex/service]
    pnr = 102
    xmltv-id = RTR_D4
    
    [multiplex]
    tsid = 1002
    name = mux2
    
    [multiplex/service]
    pnr = 413
    xmltv-id = Kinipokaz
    name = Kinopokaz
    
    [multiplex/service]
    pnr = 414
    xmltv-id = Multimania

    xmltv - path to xmltv file
    output - broadcast address
    onid - network id
    codepage - codepage, (1 - Western Europe)
    allowed values:

     0 - Default. Latin (ISO 6937)
     1 - Western European (ISO 8859-1)
     2 - Central European (ISO 8859-2)
     3 - South European (ISO 8859-3)
     4 - North European (ISO 8859-4)
     5 - Cyrillic (ISO 8859-5)
     6 - Arabic (ISO 8859-6)
     7 - Greek (ISO 8859-7)
     8 - Hebrew (ISO 8859-8)
     9 - Turkish (ISO 8859-9)
    10 - Nordic (ISO 8859-10)
    11 - Thai (ISO 8859-11)
    13 - Baltic Rim (ISO 8859-13)
    14 - Celtic (ISO 8859-14)
    15 - Western European (ISO 8859-15)
    21 - UTF-8

    eit-days - number of days in epg. default is 3
    eit-rate - maximum bitrate in kbps. default 3000

    [tdt-tot]
    country - country code in format ISO 3166-1 alpha-3
    offset - the time offset in minutes from UTC

    [multiplex]
    tsid - multiplex id
    name - comment

    [multiplex/service]
    pnr - channel number/pnr
    xmltv-id - channel id in xmltv
    name - comment

    codepage can be overridden:
    for example in multiplex specify codepage = 1 then for all channels in multiplex is iso8895-1 (Western Europe)
    or in service specify codepage = 9, then for a certain channel will be iso8859-9 (Turkish)

    Starting:

    eit-stream /etc/astra/eit.ini 

    Data update from the xmltv file occurs when the utility restarts.

    Starting/restarting the utility can be organized by a simple bash-script:

    #!/bin/bash
    killall eit-stream
    screen -d -m -S eit eit-stream /etc/astra/eit.ini

    Running this script can be added to the cron task scheduler - to run every hour.