From: Guillaume Pellerin Date: Wed, 24 Nov 2021 16:43:18 +0000 (+0100) Subject: Merge branch 'dev' X-Git-Tag: 0.9~1^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=ae7fcc8fca7e0a363c57d941972390dab3351c12;p=telecaster-client.git Merge branch 'dev' --- ae7fcc8fca7e0a363c57d941972390dab3351c12 diff --cc telecaster/tools/status.py index f3b21e6,f82a3a3..233b4fc --- a/telecaster/tools/status.py +++ b/telecaster/tools/status.py @@@ -39,18 -39,12 +39,19 @@@ import o from telecaster.tools import * from django.conf import settings + +interfaces = ['eth0', 'eth1', 'eth2', 'eth0-eth2', 'eth3', 'eth4', 'eth5', + 'eth6', 'eth7', 'eth8', 'eth9', 'eno0', 'eno1', 'enp0s25', + 'wlan0', 'wlan1', 'wlan2', 'wlan3', 'wlan4'] + +acpi_states = {0: 'battery', 1: 'battery', 2: 'AC'} + + class Status(object): - interfaces = ['eth0', 'eth1', 'eth2', 'eth0-eth2', 'eth3', 'eth4', - 'wlan0', 'wlan1', 'wlan2', 'wlan3', 'wlan4', 'eno0', - 'eno1',] + interfaces = interfaces + acpi_states = acpi_states + acpi_states = {0: 'battery', 1: 'battery', 2: 'AC'} def __init__(self): self.acpi = acpi.Acpi()