scripts/tv/genconf/sat_conf.py
Antoine Durand-Gasselin bb0653a801 [tv/gen_conf] commit
darcs-hash:20090520175100-bd074-2bcf64fefc286556511b090c4b1f46b9d8e1bfb4.gz
2009-05-20 19:51:00 +02:00

39 lines
1.5 KiB
Python
Executable file

#! /usr/bin/env python
# -*- coding: utf-8 -*-
""" Defini les transpondeurs a associer a chacune des cartes """
from sat_base import *
from socket import gethostname
host = gethostname()
transpondeurs = { 'canard' : [ Hotbird_11034(0) ,
Hotbird_11240(1) ,
Hotbird_12597(2) ,
Hotbird_11604(3) ,
TNT_R4_498000(4) ],
'lapin' : [ Hotbird_12539(0) ,
Hotbird_11727(4) , #Cette carte capte bizarrement, lancer un scan avant pour voir ce u'elle capte
TNT_R1_586000(1) ,
TNT_R6_562000(2) ,
TNT_R2_474000(3) ],
'oie' : [ Hotbird_10853(0) ,
Hotbird_11642(1) ,
Hotbird_12111(2) ,
Hotbird_11137(3) ,
TNT_R7_490000(4) ,
# TNT_R5_538000(4) ,
TNT_R3_522000(5) ]
}
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, "sur la carte", t.card
for (sap_group, chaine) in t.chaines.values() :
print '\t%s\t: \t%s' % (sap_group,chaine)