There is no USPS pickup on Monday Feb 15th, 2016 because of President's Day. USPS orders placed after 11am EST Fri February 12th will go out Tuesday February 16. UPS orders will ship as normal.

Wattcher Code Help
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

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: 120
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: 120
Joined: Wed May 04, 2011 6:14 pm

Please be positive and constructive with your questions and comments.