Twittering from the command line

posted May 22nd 2008 9:50pm by Sean Percival
filed under: cellphones hacks
Twitter users often have trouble explaining just exactly what the service is for. The site specifically asks “What are you doing right now?” A simple interface and multiple ways to update means people have started hooking it to different real world objects… objects that aren’t reporting what they had for lunch. After the break, we’ll cover a couple devices that have interfaced Twitter to the real world and how you can update from your command line.



Justin Wickett was looking for a way to control his room lights via his cellphone. By using Bob Paauwe’s iLink INSTEON software and Twitter, he was able to control basic functions. Now he can SMS text like “bedroom lights off” and the software does his bidding. Of course, in the time it takes to send and process this request you could just as easily walk over and shut of the lights. We’re sure he’s planning more features than just that.

Adafruit Industries is selling an interesting device called the Botanicalls Twitter kit. It will post directly to Twitter when your plant is in need of water. Using a moisture sensor and built in Ethernet port it just requires some basic soldering to get started.


Pictured above is Ninja Networks’ Shoutwall from Defcon (photo: pinguino). It receives and displays direct SMS messages and Twitter updates. It also does reverse number lookups on Dodgeball to get user icons. An Ericsson T39m with a data cable is used because it provides an easy SMS interface. Take it to a party and your service provider is sure to wonder how you managed to receive 4000 inbound txt messages in one weekend.

curl --basic --user "$user:$pass" --data-ascii
“status=testing123″ http://twitter.com/statuses/update.json

If you want to strap twitter to your own project, it’s probably best to learn how to update from the command line. Dave Thomas with Linux Journal posted how to do it using cURL. It’s definitely an easy way to get your feet wet with the Twitter API.

Recent Posts

hack a day serves up a fresh hack each day, every day from around the web and a special how-to hack each week.

send us your hacks

have a hack you'd like to see here? tell us about it



hacks

  • aibo hacks (1)
  • cellphones hacks (81)
  • cons (78)
  • contests (29)
  • daily (120)
  • digital audio hacks (18)
  • digital cameras hacks (72)
  • downloads hacks (16)
  • gameboy hacks (35)
  • google hacks (6)
  • gps hacks (35)
  • HackIt (20)
  • handhelds hacks (61)
  • home entertainment hacks (145)
  • home hacks (21)
  • how-to (16)
  • ipod hacks (75)
  • laptops hacks (52)
  • laser hacks (32)
  • macs hacks (40)
  • misc hacks (828)
  • news (197)
  • pcs hacks (146)
  • peripherals hacks (187)
  • playstation hacks (52)
  • podcasts (8)
  • portable audio hacks (43)
  • portable video hacks (27)
  • robots hacks (107)
  • roundup (3)
  • security hacks (55)
  • solar hacks (2)
  • tablet pcs hacks (6)
  • tivo hacks (6)
  • tool-hacks (10)
  • transportation hacks (91)
  • Uncategorized (320)
  • wii hacks (18)
  • wireless hacks (84)
  • xbox hacks (51)
  • resources

    rss newsfeeds

    powered by wordpress