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=19.22&sensornum=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 | TOGGLE FULL SIZE
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 710, in __call__
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
I'm using this code:
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.