GPS Event [11] – Blogger

Blogger is probably the most popular blogging platform around, well depends on who you talk to. Hosted and owned by Google, it takes just a few minutes to get going — if you happen to have a Google email it will take the same login and the password. I have created a new blog for this example.

Google provides API libraries for their services, so it was fairly easy to get going. As you can see, the simple and clean layout is almost perfect for this type of reporting. The template is the same as for the WordPress example, so I only had to add service and authorization modules:

To select the service in the main gps_event.py module:

# select service: none, aws, rc, tweet, email, gtalk, coral8, wp, blog
use_service = 'blog'
  
# define sampling delay in seconds
sample_delay = 25
  
# map templates to services
format_list ={'none':'json', 'aws':'xml', 'rc': 'rcxml',
              'tweet':'tweet', 'email':'email', 'coral8':'coral8',
              'gtalk':'gtalk','wp':'wp', 'blog':'wp'}

The format_list dictionary contains ‘service’:’template’ pairs; note how the ‘wp’ and the ‘blog’ services are both mapped to the ‘wp’ template.