RkTaggy - example Google Wave robot
- Googl App Engine account. A robot must be (for now) hosted on GAE, as an GAE application. You don't have to know datastore or webapp to start with making a robot (but you have to know how to deploy you application to GAE servers)
- The official robot Python Tutorial is a good start to get to know how to make a robot skeleton.
- And when creating new code the API Documentation will be our friend
- Robots can be tested only from GAE, so you will need to deploy them often and debug a lot (objects, data) with logging.debug(). The logged data will be available in the application admin panel:
The make_barcharts function looks like this: The function looks for tags of this structure:
And then it extracts labels, values and title and makes a chart using pygooglechart module. The pygooglechart will return a URL for the chart (which we later insert to the blip).
[barchart]Chart Title label,int_value label,int_value label,int_value [/barchart]
Currently you can't add HTML to a blip using the API (like with SetText) in an easy way. The problem is known, and the Wave Team is working on it ;) Currently some developers suggest using SetAnnotation to add some HTML markup to the blip text. In our case we use the "easy" way of inserting an image.