Tweet-a-watt: Google's visualisations (Json)

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
hugues
 
Posts: 2
Joined: Wed Aug 05, 2009 4:07 pm

Tweet-a-watt: Google's visualisations (Json)

Post by hugues »

Hi all,

I'm trying to set up the Google Anotated Timeline Visualisation for the Tweet-a-watt, and I'm currently stopped at the Json step.

Here's the error I'm getting:

Code: Select all

Traceback (most recent call last):
  File "/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 507, in __call__
    handler.get(*groups)
[...]
Source: http://ecocaruoit.appspot.com/visquery. ... m&bhours=1

However, the how to seems to reffer to the same kind of error:
http://wattcher.appspot.com/visquery.js ... m&bhours=1

Have one of you solved this issue?

Thanks!

Hugues

User avatar
ericzundel
 
Posts: 41
Joined: Thu Aug 06, 2009 10:42 pm

Re: Tweet-a-watt: Google's visualisations (Json)

Post by ericzundel »

It looks to me like you need to create the indexes for the Powerusage datastore described in the error output in your app.yaml file for app engine.
...
File "/base/python_lib/versions/1/google/appengine/api/datastore.py", line 929, in _Run
str(exc) + '\nThis query needs this index:\n' + yaml)
NeedIndexError: no matching index found.
This query needs this index:
- kind: Powerusage
properties:
- name: author
- name: date

http://code.google.com/appengine/docs/p ... figuration

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Re: Tweet-a-watt: Google's visualisations (Json)

Post by adafruit »

ya i strongly suggest going through the apps tutorials. they're good, and will inform you of all the strange pythony things they added

User avatar
hugues
 
Posts: 2
Joined: Wed Aug 05, 2009 4:07 pm

Re: Tweet-a-watt: Google's visualisations (Json)

Post by hugues »

Hi all,
I solved my problems.

As ericzundel proposed, I replaced my index.yaml by the following:

Code: Select all

indexes:

- kind: Powerusage
  properties:
  - name: author
  - name: date

# AUTOGENERATED
Then, update the google server and indexes with:
appcfg.py update [my directory] and appcfg.py update_indexes [my directory].

Thanks for your help!

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

Return to “XBee products (discontinued)”