Skip to content

mattholl/twitter-timelapse

Repository files navigation

twitter_timelapse

Code for twitter-timelapse.tumblr.com image rendering.

A Raspberry Pi was used to to post the images rendered from this app every 6 hours over a number of days last year.

The whole process didn't perform well on the Pi alone so a small netbook was also used with the tweet geodata made available using OSC.

Processes

  1. node.js
    • Push the geodata coordinates from the streaming twitter API to port 3001 using OSC protocol
  2. ofApp
    • Read the OSC data from the same port and use it in the running visual render
    • Periodically save the image to a shared folder
  3. node.js
    • Wait for a file to appear in the incoming images folder
    • Post the image to tumblr usin the API
    • Move the image into a completed uploads folder

Process 1

Connect to the twitter stream API and push the geocoordinates of each matching tweet to a local port.

    $ node node-twit/index.js -h

    -t, --text [string or #string]  Filter tweets containing the specified text or hashtag. Comma separated.
    -r, --retain [number]           Use every x tweet to limit rate. Defaults to 10
    -d, --debug                     Print to stdout

    $ node node-twit/index.js -t  -r 10

Process 2

With the correct ip and port set run the openFrameworks app.

Process 3

In a separate process:

    node tumblr-post/index.js

About

Images rendered using geodata from the twitter API over a number of hours.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published