Jump to content

godoorgo

Members
  • Posts

    2
  • Joined

  • Last visited

godoorgo's Achievements

Newbie

Newbie (1/6)

0

Reputation

  1. 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
  2. Hello einstein, I'm running the script with ISY set to False, and am getting the following: When I issue './myq-garage.py status' I get no results and the following shows in the log: 2016-09-02 20:04:55,062 INFO ==================================STARTED================================== When I issue './myq-garage.py open garage' I also get no output but the following in the log: 2016-09-02 20:12:11,324 INFO ==================================STARTED================================== 2016-09-02 20:12:13,262 ERROR Traceback (most recent call last): 2016-09-02 20:12:13,264 ERROR File "./myq-garage.py", line 344, in <module> 2016-09-02 20:12:13,267 ERROR gdoor_main() 2016-09-02 20:12:13,269 ERROR File "./myq-garage.py", line 333, in gdoor_main 2016-09-02 20:12:13,272 ERROR print(doorname + ' not found in available doors.') 2016-09-02 20:12:13,275 ERROR UnboundLocalError 2016-09-02 20:12:13,277 ERROR : 2016-09-02 20:12:13,279 ERROR local variable 'doorname' referenced before assignment What's the problem here? Thanks
×
×
  • Create New...