]> git.parisson.com Git - telecaster-client.git/commitdiff
fix wlan, acpi and host for TC
authoryomguy <yomguy@parisson.com>
Fri, 24 Feb 2012 12:27:05 +0000 (13:27 +0100)
committeryomguy <yomguy@parisson.com>
Fri, 24 Feb 2012 12:27:05 +0000 (13:27 +0100)
telecaster/templates/telecaster/base.html
telecaster/tools/acpi.py
telecaster/tools/tools.py

index b38c599505232c4f93f0da2a3a84200e6761e5c4..5d767ae85c5bb389a681c905e16270989c3eac72 100644 (file)
@@ -37,7 +37,7 @@ server_status_callback();
 {% block video %}
 <div class="video">
 <video id="my_video_1" class="video-js vjs-default-skin" controls preload="auto" width="360" height="240" data-setup="{}">
-<source src="http://192.168.0.15:8080/consume/safe" type="video/webm"></video>
+<source src="{{ host }}:8080/consume/safe" type="video/webm"></video>
 </div>
 {% endblock video %}
 
index 8d2fb06432b30753dd9c4398f458de2cd82c16a7..a4835d52619ce5961d5b7fa303e50a97bca2989f 100644 (file)
@@ -173,7 +173,7 @@ class AcpiLinux:
         """init ACPI class and check for any ACPI features in /proc/acpi/"""
 
         #we read all acpi stuff from here
-        dirs = ['/proc/acpi/ibm']
+        dirs = ['/proc/acpi/ibm', '/proc/acpi']
         for dir in dirs:
             if os.path.exists(dir):
                 self.proc_acpi_dir = dir
index ee2d83142c6dcc9c9020ba29958f7bbe3a255965..f3fabe7a01d234c1976ef7b98b872dbfe38f75d1 100644 (file)
@@ -167,7 +167,7 @@ def norm_string(string):
 
 class Status(object):
 
-    interfaces = ['eth0', 'eth1', 'eth2', 'eth0-eth2','eth3']
+    interfaces = ['eth0', 'eth1', 'eth2', 'eth0-eth2', 'eth3', 'wlan0', 'wlan1']
     acpi_states = {0: 'battery', 1: 'battery', 2: 'AC'}
 
     def __init__(self):