This solution are not really suitable for me...
So now i have searched for other ways to get the epg at least into tvheadend and i have found xmltv. With this i can create an xml file in the xmltv format and import it into tvheadend and have an epg for my channel. So here are the basic information for all with the same problem.
xmltv file format:
http://wiki.xmltv.org/index.php/XMLTVFormat
http://xmltv.cvs.sourceforge.net/viewvc/xmltv/xmltv/xmltv.dtd
Activation in tvheadend:
Configuration -> Channel/EPG -> EPG Grabber Modules -> Activate External: XMLTV
Basic Creation/Importscript:
#!/bin/bash
function header {
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>" > "$epgfile"
echo "<!DOCTYPE tv SYSTEM \"xmltv.dtd\">" >> "$epgfile"
echo '<tv generator-info-name="xmltv generator">' >> "$epgfile"
}
function footer {
echo '</tv>' >> "$epgfile"
}
function channel {
echo " <channel id=\"$channelname\">" >> "$epgfile"
echo " <display-name lang=\"$channellang\">$channelname</display-name>" >> "$epgfile"
echo " </channel>" >> "$epgfile"
echo "" >> "$epgfile"
}
function program {
echo " <programme start=\"$programstart\" stop=\"$programend\" channel=\"$channelname\">" >> "$epgfile"
echo " <title lang=\"$programlang\">$programname</title>" >> "$epgfile"
echo " <desc lang=\"$programlang\">" >> "$epgfile"
echo " $programdescription" >> "$epgfile"
echo " </desc>" >> "$epgfile"
echo " </programme>" >> "$epgfile"
}
epgfile="/tmp/epg.xml"
header
#Channel Section
#channelname should be the same in tvheadend
channelname="Test1 Channel"
channellang="de"
channel
channelname="Test2 Channel"
channellang="en"
channel
#Program Section
programname="News"
programdescription="Test1 Description"
channelname="Test1 Channel"
programlang="de"
#Time in UTC in format YYYYMMDDHHMMSS
programstart="201711121500"
programend="201711121600"
program
programname="Monk"
programdescription="Test2 Description"
channelname="Test2 Channel"
programlang="de"
programstart="201711131210"
programend="201711131305"
program
footer
#Needs User hts or root
cat $epgfile | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock