
Ignore-this: 636772d1bedecb565b90add22ff46fe2 darcs-hash:20110309153338-ffbb2-97105c5300c11b967ce70293a952ea60f4107566.gz
44 lines
1.8 KiB
Python
Executable file
44 lines
1.8 KiB
Python
Executable file
#! /usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
""" Definit les transpondeurs a associer a chacune des cartes """
|
|
|
|
from sat_base_ng import *
|
|
from socket import gethostname
|
|
|
|
host = gethostname()
|
|
|
|
transpondeurs = { 'canard' : [ SAT_10773h(0),
|
|
TNT_R2_506000(1),
|
|
SAT_10714h(2) ,
|
|
#Hotbird_12597(3) ,
|
|
#Hotbird_11604(4) ,
|
|
],
|
|
'lapin' : [ SAT_10714h(0) ,
|
|
#Hotbird_11727(1) , #Cette carte capte bizarrement, a vérifier
|
|
TNT_R5_530000(2) ,
|
|
TNT_R3_482000(3) ],
|
|
'poulet' : [ TNT_R3_482000(1) ], #la 0 est la carte sat + decodeur #serveur de test
|
|
'dindon' : [ TNT_R1_586000(0) ,
|
|
TNT_R4_546000(1) ,
|
|
TNT_R6_562000(2) , # La carte dual tuner de dindon est HS
|
|
TNT_R3_482000(3) ], # ...
|
|
'oie' : [ SAT_10773h(0),
|
|
TNT_R6_562000(1) , # les cartes d'oie ne supportent pas le multiplex R2.
|
|
#Hotbird_12111(2) ,
|
|
#Hotbird_11137(3) ,
|
|
SAT_11343v(4) ,
|
|
TNT_L8_570000(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)
|