Tickertweet

When the east coast earthquake hit a little while ago, I found out about it first from a tweet, followed up by an IM from a friend in Brooklyn, followed up 10 minutes or so later by Google News. I thought it would be neat to have a way to call attention to important events. Inspired by old-fashioned ticker tapes, I put together some code to print specified Twitter updates in near-real-time to a thermal printer. More details in the video:

sample of the tweet output

The tweets are fetched using the twitter Ruby gem, rendered into a PBM image with rmagick, and printed via the pbm2lwxl library. I’ll put the code up on github after a little cleanup. As an upgrade, I’m setting up the software to run on a NSLU2 single-board computer, so the printer doesn’t have to be tethered to my desktop. More on that in a bit!

EDIT: the code is now on Github here: https://github.com/riney/tickertweet-proto

19 thoughts on “Tickertweet

  1. Pingback: Spamming a label printer with #cookiehammer - Hack a Day

  2. Pingback: Spamming a label printer with #cookiehammer | You've been blogged!

  3. Pingback: Spamming a label printer with #cookiehammer | The Depot of Talk

  4. Pingback: Spamming a label printer with #cookiehammer | Certified Ethical Hackers Information

  5. Pingback: Hack A Label Printer Into A Twitter Hashtag Ticker | Lifehacker Australia

  6. Pingback: Spamming a label printer with #cookiehammer | CisforComputers

  7. This is so great! Would you consider posting a full Instructable (or similar) for people with little coding experience? I want to make this so bad, and I’ve been looking through your references with much confusion as to where to start. Do you think that you could use an Adruino-based device to host the printer instead of an NAS? Thanks!

    • Absolutely! Maybe not with Instructables themselves (so many ads!) but I’ll do another video and a more in-depth blog post.

      Arduino would be at least theoretically doable, but being able to leverage a full UNIX environment made things a loooooooot faster. Without Ruby, the Twitter and RMagick libraries, the open-source printer control program, and the factory drivers, not to mention USB support from the OS, you’d have to do a lot more low level coding to make things work. Doing antialiased TrueType font rendering on an 8-bit microcontroller isn’t my idea of a good time :)

      Now that’s not to say that you couldn’t do a simpler version. If you could find a text-only printer with a serial interface, that would simplify the task a great deal.

  8. Brilliant! I teach both art and communication technology in high school and would love to use this setup with the students to create some interesting media art. If possible could you please let me know when you release the code and if I can get further details?
    Its quite a fun project.
    TD

  9. Hey man,
    Love the idea!! I have a group at my school that would love to use this! could you maybe send us off the application to run it?

  10. Adrian- Just plain old thermal receipt paper.
    RATz – thanks for reminding me. I’ll slap the code up on github. It’s not pretty, and has a fair number of dependencies, but it’d be a good starting point.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>