{% 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 %}
"""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
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):