Blog reboot
I moved to Amsterdam in April, and didn't have wifi internet access until just the other day. So Milan has been out of action for a while. Meanwhile I notice that Nabaztags are now for sale in the U.S., and that they continue to receive good reviews (except from the Guardian newspaper).
I've restarted my personal blog, and given it a new name: Immortality. A free pint to anyone who can tell me the link between that title and the name of my Nabaztag wifi bunny!
Moving Milan’s ears, to activate a PHP script
As I said in my previous (first) post, Milan is a Nabaztag wifi bunny made of plastic — something like the Ambient Devices Orb. Unlike the Orb however — and more like a bunny rabbit — he has ears that move.
They have little motors, allowing Milan to move his ears when a new message arrives from the nabaztag.com server. More interestingly though, they have sensors which can tell if I have moved the ears by hand, how far I’ve moved them, and in which direction. I could move the right ear back as far is it will go, and the left ear as far forward as it goes, for example. Milan will then send a quick message to the nabaztag.com server saying “my ears have moved. The left one is at position x, and the right one is at position y.” With the API, I can easily get a hold of that information and use it to run some code on a server if I want to.
Here’s an example PHP script which will change the background color of a webpage depending on the position of the rabbit’s ears:
"; //print_r($ears); // Latest ear position reported by API $posright = $ears[0][0]; $posleft = $ears[0][1]; ?> "> Current Ear Positions
Left Ear
Right Ear
Try this: Move the ears and then reload this page.
Nabaztag wifi bunny introduction
Hello and welcome to this, my first post, on my new blog, getting to know milan. A few weeks ago some friends bought a Nabaztag wifi rabbit for me and my girlfriend for our birthdays (which are just a week apart).
It’s like the Orb made by Ambient Devices, except that it works everywhere you can get a wifi connection, plus it looks like a white plastic bunny rabbit. Besides having ears that move and lights that flash, it also plays midi audio and even does text-to-speech in English and French (and sometimes a mix of the two!). You can send it text messages, messages via the web, or via email.
What makes the Nabaztag — mine is called Milan — most interesting is the easy to use API. And that’s what this blog will be all about. I intend to learn and play with the API in the coming weeks — making Milan do stuff, and seeing if Milan can make other things do stuff (you can move his ears, and he’ll send a message to the nabaztag.com server with their new position).