---------- Forwarded message ----------
From: Stuart Harrison <pezh...@gmail.com>
Date: Tue, Dec 22, 2009 at 9:29 PM
Subject: Twitterplan
To: con...@planningalerts.org.au
Hi,
Allison Hornery pointed me in the direction of the Oz version of
Planning Alerts the other day and I thought I'd bestow upon you an
early Christmas gift - I set up Twitterplan about 9 months ago to use
the UK Planning Alerts API to send alerts via Twitter Direct Message.
It was well used until the Royal Mail decided to effectively render
the site useless - hopefully it'll be back up and running shortly.
Anyway, I hate to have code lying around doing nothing, so I've put it
up on Google Code for you to grab if you want - the scripts/db.php
file is where you can add info for the database and Twitter account
details, as well as the oAuth details.
http://code.google.com/p/twitterplan/
Most of the grunt work is done by the htdocs/send.php file - I set it
to run every 10 minutes or so via a Cron job (but only in the
afternoon) it basically goes through the database (10 records at a
time, to avoid running out of Twitter API calls) and checks if a
planning application is lodged in that person's area - if it is, a
Direct Message is sent from the Twitterplan account (in this case
@planbot)
Any questions/queries etc, please don't hesitate to get in touch.
Cheers
Stuart Harrison