Wattcher Code Help

XBee projects like the adapter, xBee tutorials, tweetawatt/wattcher, etc. from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
rob drizzle
 
Posts: 127
Joined: Wed May 04, 2011 6:14 pm

Wattcher Code Help

Post by rob drizzle »

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

User avatar
rob drizzle
 
Posts: 127
Joined: Wed May 04, 2011 6:14 pm

Re: Wattcher Code Help

Post by rob drizzle »

Any help on this?

Thank you

Locked
Please be positive and constructive with your questions and comments.

Return to “XBee products (discontinued)”