|
[Contiki-developers] Contiki can post sensortweets to Twitter!
From: Adam Dunkels <adam@si...> - 2009-05-12 17:43
|
|
Hi all, a while ago I started trying out Twitter, the microblogging service that has received so much attention lately (http://twitter.com/adunk - yeah, I know I am a few years late to the party... :)). I was quite skeptical at first, particularly since the Twitter.com website wasn't that easy to use. But after trying out better tools like TweetDeck and TwitterBar I started to quite like it. It is a nice way to keep up with what is going on around the world, and to share brief thoughts and links with others. Looking around Twitter, I found a few projects where people were sending Tweets from their flowers, hot tubs, and electrical meters: quite cool. The problem with all these projects was, however, that they either required cables (into every flower) or custom hardware or software to communicate with the sensors and with the Twitter server (many were ZigBee-based). I figured that with Contiki and our native TCP/IP connectivity, we should be able to do more: directly post Tweets from wireless sensors all around the world. Without intermediate software, protocol converters, or custom gateways. So I wrote a small Twitter client for Contiki: the Twitter API is based on HTTP and easy enough to implement. With the Twitter client, Contiki now can post messages directly to Twitter! I set up a twitter feed from a Tmote Sky mote outside my home here: http://twitter.com/tempcontiki The Twitter code is commited to the CVS, along with two shell commands, 'tweet' for sending a Twitter message, and 'sensortweet' for sending sensor data from a Tmote Sky to Twitter. It is easy to get it started for the Tmote Sky in Instant Contiki: Connect two Tmote Sky motes to the PC, make sure they are connected to Instant Contiki, then do the follwing in a terminal window: cd contiki-2.x/examples/sky-ip make telnet-tweet.upload sudo ../../tools/setup-nat-ubuntu # set up NAT forwarding sudo make linslip # set up IP forwarding to the mote telnet to one Tmote Sky ("telnet 172.16.x.y" from the terminal, where x and y should be replaced with the IP address of the Tmote Sky) and run sensortweet my-username:my-secret-password to send a sensortweet to your Twitter account. It is also possible to run tweet my-username:my-secret-password A twitter message to send a message to Twitter. It would be cool to see a bunch of Contiki sensors all over the world tweeting their sensor data. One of the cool features of Twitter is that it is possible to search all tweets in real time (e.g. http://www.twitscoop.com/). Would be cool to see if we might be able to have an effect on the global twitter statistics! Granted, Twitter is not the ideal way to post and collect temperature or other sensor data. But is an interesting experiment to see how we can integrate sensor networks with the emerging web-as-a-platform (aka web 2.0). Try it out! /adam -- Adam Dunkels <adam@si...>, +46707731614 http://www.sics.se/~adam/ |
| Thread | Author | Date | |
|---|---|---|---|
| [Contiki-developers] Contiki can post sensortweets to Twitter! | Adam Dunkels <adam@si...> |
|
|
Copyright © 2010 Geeknet, Inc. All rights reserved. Terms of Use