From 691d8553d4db800f251f459f7f4e520934a7c273 Mon Sep 17 00:00:00 2001 From: Gorden Mende Date: Thu, 29 Jul 2021 17:08:20 +0100 Subject: [PATCH] minor changes to get monitor.py running --- monitor.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/monitor.py b/monitor.py index 99e0611..684c2a3 100644 --- a/monitor.py +++ b/monitor.py @@ -141,7 +141,7 @@ def click_b2(channel): if apIndx >= 0: main_fun(998) - print ''.join(pwdLst) #TODO change password for real... + #print ''.join(pwdLst) #TODO change password for real... start = stamp - SCREEN_SAVER + 5 else: result = os.popen("iwlist {0} scan 2>/dev/null | grep '^..*ESSID:\"..*\"$' | sed 's/^.*ESSID:\"\\(..*\\)\".*$/\\1/'".format(iface)).read() @@ -413,7 +413,7 @@ GPIO.add_event_detect(JS_R_PIN, GPIO.RISING, callback=select_h, bouncetime=200) GPIO.add_event_detect(JS_U_PIN, GPIO.RISING, callback=select_v, bouncetime=200) GPIO.add_event_detect(JS_D_PIN, GPIO.RISING, callback=select_v, bouncetime=200) -iface = subprocess.check_output("iwgetid | awk '{print $1}'", shell = True).rstrip("\r\n") +#iface = subprocess.check_output("iwgetid | awk '{print $1}'", shell = True).rstrip("\r\n") # Main Loop try: @@ -424,6 +424,6 @@ try: time.sleep(1) except: - print "Stopped", sys.exc_info()[0] + print("Stopped", sys.exc_info()[0]) raise -GPIO.cleanup() \ No newline at end of file +GPIO.cleanup()