This commit is contained in:
SiloDS
2021-07-30 13:36:47 +01:00
parent ab9b2aa44b
commit 827f115b06
3 changed files with 5 additions and 5 deletions

View File

@@ -76,8 +76,8 @@ def parse_iwlist(iwlist_output, current_sid):
cell["Connected"] = "Yes"
else:
cell["Connected"] = ""
if line.partition("Signal level=")[2].split("/")[0] != "" != -1:
cell["Signal"] = line.partition("Signal level=")[2].split("/")[0]
if line.partition("Quality=")[2].split("/")[0] != "" != -1:
cell["Signal"] = line.partition("Quality=")[2].split("/")[0] + "/70"
if line.find("Encryption key:") != -1:
if line.find(":on") != -1:
cell["WPA"] = "WPA2"

View File

@@ -48,9 +48,9 @@
<a href="{{ url_for('logout') }}">Logout</a>
{% endif %}
{% if vpn %}
<a href="{{ url_for('vpndisconnect') }}">Disconnect</a>
<a href="{{ url_for('vpndisconnect') }}">Disconnect from VPN</a>
{% else %}
<a href="{{ url_for('vpnconnect') }}">Connect</a>
<a href="{{ url_for('vpnconnect') }}">Connect to VPN</a>
{% endif %}
</div>
<hr>

View File

@@ -6,7 +6,7 @@
<thead>
<tr>
<th class="tg-0lax">SSID</th>
<th class="tg-0lax">Signal</th>
<th class="tg-0lax">Quality</th>
<th class="tg-0lax">Connected</th>
<th class="tg-0lax">Security</th>
<th class="tg-0lax">Action</th>