scripts/tv/sat_conf.py
dubost a23230d215 une carte sat de moins pour oie
En attendant la configuration de la carte double tuner TNT

darcs-hash:20080326214013-9fc8c-05371c0a97a3e35b19e5fc4a05c2e385794d1ea6.gz
2008-03-26 22:40:13 +01:00

39 lines
1.3 KiB
Python
Executable file

#! /usr/bin/env python
# -*- coding: iso-8859-15 -*-
""" Défini les transpondeurs à associer à chacune des cartes """
from sat_base import *
from socket import gethostname
host = gethostname()
transpondeurs = { 'canard' : [ TNT_R4_498000(0) ,
Hotbird_12476(1) ,
Hotbird_11240(2) ,
Hotbird_12597(3) ,
Hotbird_12577(4) ],
'lapin' : [ Hotbird_11604(0) ,
Hotbird_10911(1) ,
TNT_R1_586000(2) ,
TNT_R6_562000(3) ,
TNT_R2_474000(4) ,
TNT_R3_522000(5) ],
# 'oie' : [ ]
'oie' : [ Hotbird_11766(0) ,
# Hotbird_10873(1) ,
Hotbird_11137(1) ,
Hotbird_12111(2) ,
Hotbird_12673(3) ]
}
conf = transpondeurs.get(host,[])
if __name__ == '__main__' :
import sys
if len(sys.argv) == 2 :
conf = transpondeurs.get(sys.argv[1],[])
for t in conf :
print t
for chaine in t.chaines.values() :
print '\t%s' % chaine