Wrote me a ybox2 twitter client (sorta)

Talk about YBoxen, widgets, Propeller hacking, etc!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
Fjornir
 
Posts: 58
Joined: Fri Nov 28, 2008 3:14 pm

Wrote me a ybox2 twitter client (sorta)

Post by Fjornir »

So after dealing with a number of teething issues last night tonight I got to spend my first evening actually playing around with programming my ybox2. Twitwidget looks like it would be neat (if it worked) but it's not what I want (I'd like it to work more like a 'normal' twitter client and show me tweets from everyone I'm following not just one person) I decided that would be a nice easy one to go for first.

Not wanting to implement all of the necessary Twitter API calls in a language I don't know (and Spin is quite different from every other language I know) I decided to put the fetching of the tweets onto a PC. So using the Perl module Net::Twitter::Lite I went ahead and wrote a small perl script that would listen for connections on a TCP/IP port and whenever it got one it would connect up to twitter, pull the newest 4 tweets, and spit them out over the socket.

Next up I took the infowidget and a scalpel and cut out everything to do with the web request and rigged it instead to just connect up to my PC, slurp down the data off the socket and splat it onto the TV.

Nothing huge, but I'm happy with it for a step up from 'Hello World'.

Locked
Please be positive and constructive with your questions and comments.

Return to “YBox2 (discontinued)”