spaces vs tabs… arggg… oh well, that was my whole purpose of going down this rabbit hole, to learn more how Python works by following more and more complex examples.
But this certification thing has me thinking I ended up down the wrong-end-of-the-rabbit hole instead
Using the cloud server and your edits…
return {'server': 'blynk-cloud.com', 'port': 443, 'ssl': True}
ssl_context.check_hostname = False ## Added to test following line
ssl_context.verify_mode = ssl.CERT_NONE ##ssl.CERT_REQUIRED
and got this…
2021-06-14 00:58:51,662 [DEBUG] Request(server details)
2021-06-14 00:58:51,669 [INFO] Connecting to blynk-cloud.com:443
2021-06-14 00:58:51,857 [INFO] Using SSL socket...
2021-06-14 00:58:52,126 [INFO] Connection to Blynk server established
2021-06-14 00:58:52,172 [DEBUG] Request(auth details)
2021-06-14 00:58:52,180 [INFO] Authenticating user: <REDACTED>@gmail.com
2021-06-14 00:58:52,190 [DEBUG] Sending BlynkLoginMessage - BlynkCommand(Login) ID(1): ['<REDACTED>@gmail.com', 'VyD3Yy0nyzln6bbEyTd3zuLdbxmmceUIamalM6WKjxU=', 'Python App', '0.2.6_app', 'Blynk']
Traceback (most recent call last):
File "C:\Users\Gunner\blynk_app_demo\blynk_app.py", line 216, in <module>
main()
File "C:\Users\Gunner\blynk_app_demo\blynk_app.py", line 213, in main
timer.run()
File "C:\Users\Gunner\blynk_app_demo\blynktimer.py", line 102, in run
timers_intervals = [curr_timer.run() for curr_timer in Timer.timers.values() if not curr_timer.stopped]
File "C:\Users\Gunner\blynk_app_demo\blynktimer.py", line 102, in <listcomp>
timers_intervals = [curr_timer.run() for curr_timer in Timer.timers.values() if not curr_timer.stopped]
File "C:\Users\Gunner\blynk_app_demo\blynktimer.py", line 127, in run
self.deco(*self.args, **self.kwargs)
File "C:\Users\Gunner\blynk_app_demo\blynk_app.py", line 199, in toggle_door_button
blynkapp['widgets']['button']['value'] = int(blynkapp['widgets']['button']['value']) + 1
KeyError: 'value'
Looks familiar to what I was first seeing at the beginning of this topic… arrg.