summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/autocard.py
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-01-16 18:54:45 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-01-16 18:54:45 (GMT)
commit4e0ed14b738b9989d4360be63f472323cfda3305 (patch)
tree39d7bf63bdac3c1cd76f4f1ae3041113911e782a /abs/core/LinHES-config/autocard.py
parentc7033cd90ab47e9c739e492bd2de1c50699e7516 (diff)
downloadlinhes_pkgbuild-4e0ed14b738b9989d4360be63f472323cfda3305.zip
linhes_pkgbuild-4e0ed14b738b9989d4360be63f472323cfda3305.tar.gz
linhes_pkgbuild-4e0ed14b738b9989d4360be63f472323cfda3305.tar.bz2
linhes-config: list the ip of network tuners, and provide a link on the supplemental webpage
refs #898
Diffstat (limited to 'abs/core/LinHES-config/autocard.py')
-rw-r--r--abs/core/LinHES-config/autocard.py15
1 files changed, 12 insertions, 3 deletions
diff --git a/abs/core/LinHES-config/autocard.py b/abs/core/LinHES-config/autocard.py
index 3d11fe0..8b70465 100644
--- a/abs/core/LinHES-config/autocard.py
+++ b/abs/core/LinHES-config/autocard.py
@@ -317,10 +317,12 @@ class v4l_tuners():
def get_static_device(self):
return self.staticdevice
+
#-----
class hdhr_tuners():
- def __init__(self, device):
+ def __init__(self, device,ip):
self.device = device
+ self.ip = ip
self.description = self.find_description()
self.staticdevice = device
@@ -369,6 +371,7 @@ class hdhr_tuners():
#only used by dvb, but here to be complete
self.tuner_index = index
+
def get_dev_node(self):
return self.device
@@ -376,7 +379,8 @@ class hdhr_tuners():
return "hdhr"
def get_description(self):
- return self.description
+ desc = "%s - %s" %(self.description,self.ip)
+ return desc
def get_udev_rule(self):
return
@@ -386,6 +390,10 @@ class hdhr_tuners():
def get_static_device(self):
return self.staticdevice
+
+
+
+
#-----
class dvb_tuners():
@@ -589,9 +597,10 @@ def gather_hdhr(tuner_list):
else:
for line in lines:
hdhrdevice=line.strip().split()[2]
+ hdhrip = line.strip().split()[5]
tuners = find_hdhr_tuner(hdhrdevice)
for t in tuners:
- tuner_list.append(hdhr_tuners(t))
+ tuner_list.append(hdhr_tuners(t,hdhrip))
except:
print "Error finding HDHOMERUN"
return tuner_list