Wattcher Code Help

Xbee projects like the adapter, xbee tutorials, tweetawatt/wattcher, etc. purchased at Adafruit

Moderators: adafruit_support_bill, adafruit

Wattcher Code Help

Postby rob drizzle » Fri Nov 30, 2012 11:24 pm

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

Re: Wattcher Code Help

Postby rob drizzle » Thu Dec 06, 2012 12:03 pm

Any help on this?

Thank you
rob drizzle
 
Posts: 101
Joined: Wed May 04, 2011 5:14 pm


Return to XBee products from Adafruit

Who is online

Users browsing this forum: No registered users and 0 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [102]

Raspberry Pi[80]
 
FLORA[23]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[11]
Arduino[60]
 
NETduino[14]
 
BeagleBone[24]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[33]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[8]


 
Breakout Boards[33]
LCDs & Displays[48]
Components & Parts[69]
Batteries & Power[49]
EL Wire/Tape/Panel[52]
LEDs[108]
 
Wireless[14]
Cables[60]
 
Lasers[6]
Sensors/Parts[145]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[69]
 
iDevices[13]
Tools[71]
 
Wearables[39]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[24]


 
Stickers[41]
 
Skill badges[55]
 
Books[25]
 
Circuit Playground[7]
 
Gift Certificates[4]