I revisited this script and still cannot get it to work. I see it is authenticating because if I put in bogus credentials I get an authentication error.
Here's what I get with the correct username and password. If I don't provide a door ID, status returns nothing. If I provide an ID, I get an error and more in the log.
pi@raspberrypi:~/myq-garage $ pwd
/home/pi/myq-garage
pi@raspberrypi:~/myq-garage $ ls -la
total 44
drwxr-xr-x 4 pi pi 4096 Jun 21 18:48 .
drwxr-xr-x 8 pi pi 4096 Jun 21 18:53 ..
-rwxr-xr-x 1 pi pi 803 Jun 21 18:32 config.ini
drwxr-xr-x 8 pi pi 4096 Jun 21 17:54 .git
-rw-r--r-- 1 pi pi 1067 Jun 21 17:54 LICENSE
drwxr-xr-x 2 pi pi 4096 Jun 21 18:53 logs
-rwxr-xr-x 1 pi pi 15421 Jun 21 17:54 myq-garage.py
-rw-r--r-- 1 pi pi 1928 Jun 21 17:54 README.md
pi@raspberrypi:~/myq-garage $ ./myq-garage.py status
pi@raspberrypi:~/myq-garage $ tail logs/myq-garage.log
2017-06-21 18:53:17,879 INFO ==================================STARTED==================================
pi@raspberrypi:~/myq-garage $ ./myq-garage.py status 0
Usage: ./myq-garage.py [open/close/status] [door ID]
pi@raspberrypi:~/myq-garage $ tail logs/myq-garage.log
2017-06-21 18:53:17,879 INFO ==================================STARTED==================================
2017-06-21 18:53:35,342 INFO ==================================STARTED==================================
2017-06-21 18:53:35,893 ERROR Traceback (most recent call last):
2017-06-21 18:53:35,894 ERROR File "./myq-garage.py", line 407, in <module>
2017-06-21 18:53:35,910 ERROR gdoor_main()
2017-06-21 18:53:35,910 ERROR File "./myq-garage.py", line 396, in gdoor_main
2017-06-21 18:53:35,911 ERROR print(doorname + ' not found in available doors.')
2017-06-21 18:53:35,911 ERROR UnboundLocalError
2017-06-21 18:53:35,911 ERROR :
2017-06-21 18:53:35,911 ERROR local variable 'doorname' referenced before assignment
pi@raspberrypi:~/myq-garage $
Any idea what the issue is?
Thanks