Fix rssi
This commit is contained in:
parent
2bb100aa4d
commit
8b843e701b
4
app.py
4
app.py
|
@ -61,8 +61,8 @@ def allowed_file(filename):
|
|||
# Get Wifi signal level
|
||||
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