scripts/tv/sat_conf.py
Brice Dubost 0e787a35e6 Retour des chaines diffusees par lapin
darcs-hash:20071227095140-c9953-205943b65a18054dc87b8536c99f7aa8849a57e4.gz
2007-12-27 10:51:40 +01:00

38 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' : [ Hotbird_10796(0) ,
Hotbird_10873(1) ,
Hotbird_11137(2) ,
Hotbird_12111(3) ],
# Hotbird_12673(4) ]
}
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