Please be aware of all shipping deadlines before placing your order - we cannot guarantee orders will arrive before Christmas!

Wattcher Code Help
Moderators: adafruit_support_bill, adafruit

Wattcher Code Help

by rob drizzle on Sat Dec 01, 2012 12:24 am

Hey guys,

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__
    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


I'm using this code:
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.
rob drizzle
 
Posts: 119
Joined: Wed May 04, 2011 6:14 pm

Re: Wattcher Code Help

by rob drizzle on Thu Dec 06, 2012 1:03 pm

Any help on this?

Thank you
rob drizzle
 
Posts: 119
Joined: Wed May 04, 2011 6:14 pm