mirror of
https://github.com/Tafkas/fritzbox-munin.git
synced 2023-10-10 13:36:55 +02:00
formatting
This commit is contained in:
parent
4e5ede6d12
commit
9fe16979b7
@ -19,14 +19,15 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import fritzbox_helper as fh
|
import fritzbox_helper as fh
|
||||||
|
|
||||||
locale = os.environ.get('locale', 'de')
|
locale = os.environ.get('locale', 'de')
|
||||||
patternLoc = {"de":"(\d+)\s(Tag|Stunden|Minuten)", \
|
patternLoc = {"de": "(\d+)\s(Tag|Stunden|Minuten)",
|
||||||
"en":"(\d+)\s(days|hours|minutes)"}
|
"en": "(\d+)\s(days|hours|minutes)"}
|
||||||
dayLoc = {"de":"Tag", "en":"days"}
|
dayLoc = {"de": "Tag", "en": "days"}
|
||||||
hourLoc = {"de":"Stunden", "en":"hours"}
|
hourLoc = {"de": "Stunden", "en": "hours"}
|
||||||
minutesLoc = {"de":"Minuten", "en":"minutes"}
|
minutesLoc = {"de": "Minuten", "en": "minutes"}
|
||||||
|
|
||||||
PAGE = '/system/energy.lua'
|
PAGE = '/system/energy.lua'
|
||||||
pattern = re.compile(patternLoc[locale])
|
pattern = re.compile(patternLoc[locale])
|
||||||
|
@ -19,10 +19,11 @@
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
import fritzbox_helper as fh
|
import fritzbox_helper as fh
|
||||||
|
|
||||||
locale = os.environ.get('locale', 'de')
|
locale = os.environ.get('locale', 'de')
|
||||||
patternLoc = {"de":"(\d+) WLAN", "en":"(\d+) wireless LAN"}
|
patternLoc = {"de": "(\d+) WLAN", "en": "(\d+) wireless LAN"}
|
||||||
|
|
||||||
PAGE = '/system/energy.lua'
|
PAGE = '/system/energy.lua'
|
||||||
pattern = re.compile(patternLoc[locale])
|
pattern = re.compile(patternLoc[locale])
|
||||||
|
Loading…
Reference in New Issue
Block a user