Skip to content

Commit 938fa20

Browse files
author
OSi (Ondrej Sienczak)
committed
Addds possibility to ignor BSSID
On some meshing WiFi networks there can be various BSSID per one SSID. In this case we shall ignore BSSID selection as this may vary.
1 parent 92e0955 commit 938fa20

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+119
-20
lines changed

esp32/micropython.bin

4.13 KB
Binary file not shown.

simulator/lang/lang_cz.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"Go to travel mode": "Zcela vypnout (opět zapnout tlačítkem reset)",
3333
"Hotspot SSID": "Nastavit název hotspotu",
3434
"Hotspot setup": "Nastavení hotspotu",
35+
"Ignore BSSID": "Ignorovat BSSID",
3536
"Indoor high": "Vnitřní nejvyšsí",
3637
"Language": "Jazyk (Language)",
3738
"Latitude": "Zem. šířka",
@@ -53,6 +54,7 @@
5354
"Summer time": "Letní čas",
5455
"Two days": "Dvoudenní",
5556
"Units": "Jednotky",
57+
"Use with BSSID": "použít včetně BSSID",
5658
"Use": "Použít",
5759
"Variant": "Varianta",
5860
"WiFi setup": "Nastavení WiFi",

simulator/machine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def init(self, baudrate, polarity, phase, sck, mosi, miso):
1414
_pins = [1] * 256
1515

1616

17-
_pins[32] = 1 # 1 - Meteostation, 0 - Config server
17+
_pins[32] = 0 # 1 - Meteostation, 0 - Config server
1818

1919

2020
class WDT:

simulator/web/__init__.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,21 +134,24 @@ def input(self, txt, var, dfl="", tp="text", space=4):
134134
self.row(
135135
(
136136
f"<label>{txt}</label>",
137-
'<input type="{3}" id="{0}" name="{0}" value="{2}">'.format(
138-
var, txt, dfl, tp
139-
),
137+
f'<input type="{tp}" id="{var}" name="{var}" value="{dfl}">',
140138
),
141139
space,
142140
)
143141

144142
def variable(self, var, val):
143+
self.row(
144+
(f'<input type="hidden" id="{var}" name="{var}" value="{val}" />',),
145+
0,
146+
)
147+
148+
def checkbox(self, txt, var, checked=False, space=4):
145149
self.row(
146150
(
147-
'<input type="hidden" id="{0}" name="{0}" value="{1}" />'.format(
148-
var, val
149-
),
151+
f"<label>{txt}</label>",
152+
f'<input type="checkbox" id="{var}" name="{var}"{" checked" if checked else ""}>',
150153
),
151-
0,
154+
space,
152155
)
153156

154157
def spacer(self):

simulator/web/page/alertbugd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
@web.action_handler(__name__)
1010
def www(page, args):
11+
logger.debug(f'args: {", ".join([k+"="+v for k, v in args.items()])}')
12+
1113
beep["error_beep"] = 0
1214
beep.flush()
1315
web.index(page)

simulator/web/page/alertbuge.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
@web.action_handler(__name__)
1010
def www(page, args):
11+
logger.debug(f'args: {", ".join([k+"="+v for k, v in args.items()])}')
12+
1113
beep["error_beep"] = 1
1214
beep.flush()
1315
web.index(page)

simulator/web/page/alerttempd.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
@web.action_handler(__name__)
1010
def www(page, args):
11+
logger.debug(f'args: {", ".join([k+"="+v for k, v in args.items()])}')
12+
1113
beep["temp_balanced"] = 0
1214
beep.flush()
1315
web.index(page)

simulator/web/page/alerttempe.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
@web.action_handler(__name__)
1010
def www(page, args):
11+
logger.debug(f'args: {", ".join([k+"="+v for k, v in args.items()])}')
12+
1113
beep["temp_balanced"] = 1
1214
beep.flush()
1315
web.index(page)

simulator/web/page/apiedt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
@web.action_handler(__name__)
1111
def www(page, args):
12+
logger.debug(f'args: {", ".join([k+"="+v for k, v in args.items()])}')
13+
1214
page.heading(2, trn("Edit API key"))
1315

1416
with page.form("apiset") as form:

simulator/web/page/apiset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
@web.action_handler(__name__)
1010
def www(page, args):
11+
logger.debug(f'args: {", ".join([k+"="+v for k, v in args.items()])}')
12+
1113
api["apikey"] = args["key"]
1214
api.flush()
1315
web.index(page)

0 commit comments

Comments
 (0)