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! ;-)

June 2, 2006. Uncategorized. Leave a comment.

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];

?>

">
<h1>Current Ear Positions</h1>
<h2>Left Ear</h2>
<h2>Right Ear</h2>
<blockquote>

Try this: Move the ears and then reload this page.</blockquote>
</pre>
</div>
<p class="meta">March 5, 2006.  <a href="http://gettingtoknowmilan.wordpress.com/category/uncategorized/" title="View all posts in Uncategorized" rel="category tag">Uncategorized</a>. <a href="http://gettingtoknowmilan.wordpress.com/2006/03/05/moving-milans-ears-to-activate-a-php-script/#respond" class="commentslink"  title="Comment on Moving Milan’s ears, to activate a PHP script">Leave a comment</a>. </p>


</div>


<div id="post-1" class="post-1 post hentry category-uncategorized">

<h1><a href="http://gettingtoknowmilan.wordpress.com/2006/03/01/hello-world/" rel="bookmark" title="Permanent Link to Nabaztag wifi bunny introduction">Nabaztag wifi bunny introduction</a></h1>

<div class='snap_preview'><p>Hello and welcome to this, my first post, on my new blog, <em>getting to know milan</em>. A few weeks ago some friends bought a <a href="http://nabaztag.com/">Nabaztag</a> wifi rabbit for me and my girlfriend for our birthdays (which are just a week apart).</p>
<p>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.</p>
<p>What makes the Nabaztag — mine is called <em>Milan</em> — 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).</p>
</div>
<p class="meta">March 1, 2006.  <a href="http://gettingtoknowmilan.wordpress.com/category/uncategorized/" title="View all posts in Uncategorized" rel="category tag">Uncategorized</a>. <a href="http://gettingtoknowmilan.wordpress.com/2006/03/01/hello-world/#respond" class="commentslink"  title="Comment on Nabaztag wifi bunny introduction">Leave a comment</a>. </p>


</div>


<p class="postnav"></p>



	</div>
	<div id="sidebar">
		<h1>sidebar</h1>


<h2>Other Stuff</h2>
<ul>
<li class="page_item page-item-2"><a href="http://gettingtoknowmilan.wordpress.com/about/" title="About">About</a></li>
</ul>

<h2>Friends</h2>
<ul>
<li><a href="http://eoin.free.fr/blog/" title="Immortality">Eoin Dubsky’s blog</a> Immortality</li>
<li><a href="http://wordpress.com/">WordPress.com</a></li>
<li><a href="http://wordpress.org/">WordPress.org</a></li>
</ul>

<h2>Archives</h2>
<ul>
	<li><a href='http://gettingtoknowmilan.wordpress.com/2006/06/' title='June 2006'>June 2006</a></li>
	<li><a href='http://gettingtoknowmilan.wordpress.com/2006/03/' title='March 2006'>March 2006</a></li>
</ul>
<h2>Categories</h2>
<ul>
<li><a href="http://gettingtoknowmilan.wordpress.com"> </a></li>	<li class="cat-item cat-item-1"><a href="http://gettingtoknowmilan.wordpress.com/category/uncategorized/" title="View all posts filed under Uncategorized">Uncategorized</a>
</li>
</ul>


<p><a href="http://gettingtoknowmilan.wordpress.com/wp-login.php">Log in</a></p>

	</div>
	<div id="footer">
	<p><a href='http://wordpress.com/' rel='generator'>Blog at WordPress.com</a>.</p>
	</div>
</div>


<script type="text/javascript" src="http://wordpresscom.skimlinks.com/api/wordpress.js"></script>
<script type="text/javascript">
var skimlinks_pub_id = "725X1342";
var skimlinks_sitename = "gettingtoknowmilan.wordpress.com";
var skimlinks_domain = "go2.wordpress.com";
skimlinks();
</script><script type="text/javascript" src="//secure.quantserve.com/quant.js"></script>
<script type="text/javascript">_qoptions = { labels:"adt.0,language.en" };_qacct="p-18-mFEk4J448M";quantserve();</script>
<noscript><p><img src="//secure.quantserve.com/pixel/p-18-mFEk4J448M.gif?labels=adt.0%2Clanguage.en" style="display: none" height="1" width="1" alt="" /></p></noscript>
<script src="http://s.stats.wordpress.com/w.js?19" type="text/javascript"></script>
<script type="text/javascript">
st_go({'blog':'120932','v':'wpcom','user_id':'0','post':'0','subd':'gettingtoknowmilan'});
ex_go({'crypt':'RDZ8LFkxbXFKfnxTcjN3eDdlYixRLWQ4amlhcE1tN2Ruby8wUlBPTFVtfkxSQ2JrNk1dekdVR0VbXS0uT3FxWzd0a1JYPUdfNTkza3duLXZkcixWd0wuT0JOR0s9K09bdjNHV0FES29IVSt2b2JKVDN2OCVDZVo/VEJNbVFETy5hZEglZ3xSYXFGLUVDc2x0dkROTyxCMFVyRlRVbSxoZVBZcEwvRVY1T3NfMWhzRA=='});
addLoadEvent(function(){linktracker_init('120932',0);});
	</script>

</body>
</html>