This app will listen to a specific set of hashtags on twitter and save any georeferenced tweets to a geonode layer
###Installation
- Open a terminal and navigate into the parent of your geonode folder (usually
/usr/local/lib/python2.7/dist-packagesfor geonode 2.4 installed with apt-get) Git clone https://github.com/Hydrata/geonodetwitter.git- add
"geonodetwitter",to yourINSTALLED_APPSin settings.py - add
DATABASE_ROUTERS = ['geonodetwitter.models.TwitterRouter']in settings.py - Open a terminal and navigate to your Django root directory (the one with "manage.py" in it)
- run
python manage.py syncdb --database=datastore
###Running (this can be replaced with a web interface once we understand how this tool will be used)
- Open a terminal and navigate to your Django root directory (the one with "manage.py" in it)
- Run
python manage.py listen examplehastaghere - The captured tweets will be stored in the POSTGIS database, in a table called
geonodetwitter_tweet - CTRL-C to stop lisening
###Viewing (I think this can be replaced with some calls to the geoserver API, but it's a manual job for now)
- Open the geoserver web interface
- Select "add layers"
- Select geonode:datastore
- Publish "geonodetwitter_tweet"
- Calculate the min/max bounds
- Save
- Run
python manage.py updatelayers -f geonodetwitter_tweetfrom your geonode commandprompt