I'm working my way through the google app engine portion of the tut and I ran into a snag. I'm hoping for a little help.
I got to the "TEST" section about two thirds down. When I type in "http://wattcher.appspot.com/report?watt ... ensornum=1", First I need to log in, and then I get the "OK!"
Then I type in the "http://wattcher.appspot.com/dump" and get
Code: Select all
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 710, in __call__
handler.get(*groups)
File "/base/data/home/apps/wattcher/1.331683145908838177/wattcherapp.py", line 77, in get
currnamequery = db.GqlQuery("SELECT * FROM Sensorname WHERE author = :1 AND sensornum = :2", account, powerused.sensornum)
NameError: global name 'account' is not defined
http://www.ladyada.net/media/wattcher/wattcher-final.py
I'm having difficulty finding the errors and correcting them! For the time being, I am just using one kill-a-watt and the receiver. I have had good luck with all of the other parts leading up to this. Any help would be great.