Fix rssi
This commit is contained in:
parent
2bb100aa4d
commit
8b843e701b
6
app.py
6
app.py
|
@ -59,10 +59,10 @@ def allowed_file(filename):
|
|||
return True
|
||||
|
||||
# Get Wifi signal level
|
||||
def getRSSI():
|
||||
def getRSSI():
|
||||
signal = subprocess.run( local_bin + "get_rssi.sh", capture_output=True)
|
||||
signal = str(signal.stdout, 'UTF-8')[:-1][1:]
|
||||
#print(signal)
|
||||
print(signal)
|
||||
signal = str(signal.stdout, 'UTF-8').strip("-").strip("\n")
|
||||
return signal
|
||||
|
||||
# Blink the Pi led to allow identification
|
||||
|
|
Loading…
Reference in New Issue