andrewshilliday / garage-door-controller

Software to monitor and control garage doors via a raspberry pi
MIT License
327 stars 132 forks source link

http://<url>:8081/st produces an error #92

Closed Michael-W closed 6 years ago

Michael-W commented 6 years ago

pi@hassbian:~/garage-door-controller $ python controller.py Unhandled Error Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/twisted/protocols/basic.py", line 571, in dataReceived why = self.lineReceived(line) File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1752, in lineReceived self.allContentReceived() File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1845, in allContentReceived req.requestReceived(command, path, version) File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 766, in requestReceived self.process() --- <exception caught here> --- File "/usr/lib/python2.7/dist-packages/twisted/web/server.py", line 190, in process self.render(resrc) File "/usr/lib/python2.7/dist-packages/twisted/web/server.py", line 241, in render body = resrc.render(self) File "controller.py", line 302, in render door = request.args['id'][0] exceptions.KeyError: 'id'

Everything else works very well. Thank you.

Michael-W commented 6 years ago

My understanding is growing. I thought that the http://:8081/xxx were to return info for another program. Bad thought! I love the program for its possibilities and for the education. Thank you.