Stream: Anybody play with the new Xcode 4 preview 2 yet? http://bit.ly/b286GD Jobs: We're Hiring! >>
ReignDesign

Blog - Welcome the latest member of the ReignDesign team…

Welcome the latest member of the ReignDesign team…

Posted August 7th, 2009 by Todd Cullen

normal.nabby

I'd like to extend a hearty welcome to the latest addition to the ReignDesign crew. Say hello to Nabby! Nabby is a Nabaztag, a hackable robotic rabbit. She comes equiped with an audio system, 5 powerful LED lights, and a set of moving ears. Not to mention a dead-simple web API to interact with her. Did your last hire have all that?

To make it easier to interact with her, we whipped up a little javascript wrapper to cover all the API methods. Now its dead simple to make nabby dance anyway you'd like. Here's a couple simple examples:

 
var nabby = nabaztag(sn, token);//sn and token are given when you buy a rabbit
nabby.speakEnglish("Hello");//nabby can speak multiple languages
nabby.speakChinese("你好");
 
nabby.audio("http://213.205.96.91:9915");//or can play internet radio for you
 
//but seriously, what good is a team member if they can't get down
nabby.dance().leftEar("75","1").go();//move the ears
nabby.dance().topLED("FF0000").go();//flash the top LED's red (that's a hex value)
 
//how about something a little more complex - chain it up
nabby.dance().bothEars("125","1").centerLED("00FF00").wait(10).bothEars("25","0").go();
 
//chain them all together
 nabby.dance().speakEnglish("Time to party!")
.bothEars("25","0")
.wait("15")
.allLED("00FF00")
.bothEars("90","1")
.wait("10")
.bothEars("35","0").go();
 

Can I get the source already? Sure! Its right here.

Let me know what you think in the comments - API changes/additions or if you found a bug.

quirky.nabby

Like the rest of the RD crew, she's a little quirky but we like that :)


Happy hacking!


Enjoyed this post? ReignDesign is a great team of tech-savvy developers providing RIA and mobile services. For more articles like this, subscribe to our blog feed.

Tags:

Leave a Reply