Skip to content

Running Telly: Config File Generator

Chaz Larson edited this page May 19, 2020 · 4 revisions

This is a Python script that will ask for user input and generate a telly config file for version 1.1.

First, download a copy of the script:

curl -fLO https://github.com/tellytv/telly/wiki/files/scripts/config-gen.py

Then run the script and answer the questions:

➜ python config-gen.py
We're going to generate a Telly config file. 

You will need these bits of information: 
    1. An M3U URL or file path 
    2. An EPG URL or file path 
    3. How many simultaneous streams your IPTV provider allows 
    4. The IP address where telly is running if it's not this machine 
    5. A working filter string for telly 
     

Do you have those things available? (y/n): y

Cool.

Are you using file paths? (y/n): n

Cool.

IPTV Provider M3U URL or path: http://bing.bang.boing:8880/get.php?username=bing&password=bang&type=m3u_plus&output=mpegts
IPTV Provider EPG URL or path: http://bing.bang.boing:8880/xmltv.php?username=bing&password=bang
How many simultaneous connections does your IPTV provider allow? 2
The IP address of this machine is: 192.168.1.219
Is this the IP where Plex is going to find telly? (y/n): y

Cool.

Do you want to turn ffmpeg buffering OFF? (y/n): y

Running telly on the default port [6077]? (y/n): n

Which port do you want to use? 6078
Filter: USA General
Use default options for other filter details [most likely yes]? (y/n): y

Cool.

= Config file contents [telly.config.toml in this directory] ===========================
 [Discovery] 
  Device-Auth = "telly123" 
  Device-ID = 12345678 
  Device-UUID = "" 
  Device-Firmware-Name = "hdhomeruntc_atsc" 
  Device-Firmware-Version = "20150826" 
  Device-Friendly-Name = "telly" 
  Device-Manufacturer = "silicondust"  
  Device-Model-Number = "hdtc-2us" 
  SSDP = true 
 
 [IPTV] 
  Streams = 2 
  Starting-Channel = 10000 
  XMLTV-Channels = true 
   
 
 [Log] 
  Level = "info" 
  Requests = true 
 
 [Web] 
  Base-Address = "192.168.1.219:6078" 
  Listen-Address = "0.0.0.0:6078" 
 
 [[Source]] 
  Name = "TellyTV" 
  Provider = "Custom" 
  M3U = "http://bing.bang.boing:8880/get.php?username=bing&password=bang&type=m3u_plus&output=mpegts"
  EPG = "http://bing.bang.boing:8880/xmltv.php?username=bing&password=bang"
  Filter = "USA General" 
  FilterKey = "group-title" 
  FilterRaw = false 
  Sort = "group-title" 

========================================================================================
All done.

The config file will be generated in the same directory as the script.

Clone this wiki locally