<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7852388463015725402</id><updated>2024-10-04T20:29:24.594-07:00</updated><category term="jnabserver"/><category term="nabaztag"/><category term="ambientblock"/><category term="java"/><category term="rfid"/><category term="server"/><category term="tag"/><category term="hack"/><category term="namoztag"/><category term="pnabserver"/><category term="python"/><category term="setambientvalue"/><category term="text to speech"/><category term="tts"/><category term="violet"/><category term="ztamp"/><title type='text'>Namochan&#39;s Hacks</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://namochan.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7852388463015725402/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://namochan.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Namochan</name><uri>http://www.blogger.com/profile/17248227841552940887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7852388463015725402.post-6736834240305907843</id><published>2010-03-21T17:02:00.000-07:00</published><updated>2010-03-21T17:02:57.954-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ambientblock"/><category scheme="http://www.blogger.com/atom/ns#" term="jnabserver"/><category scheme="http://www.blogger.com/atom/ns#" term="nabaztag"/><category scheme="http://www.blogger.com/atom/ns#" term="pnabserver"/><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><title type='text'>pNabServer</title><content type='html'>I&#39;ve wanted to learn python for a while, and started talking about python html-servers with a friend. One sleepless night later I have communication going on with my python script and the nabaztag.&lt;br /&gt;
&lt;br /&gt;
So far I&#39;ve only managed to send the bytecode, tell the logging information and have some ambient lights blinking. Slow progress, but progress nevertheless. Sending the encrypted commands is a bit pain, but I think I have the encryption function working.&lt;br /&gt;
&lt;br /&gt;
One day with python behind and loving it.&lt;br /&gt;
&lt;br /&gt;
Oh, and thank you moo--- at #python.fi for some bitwise-advice :)</content><link rel='replies' type='application/atom+xml' href='http://namochan.blogspot.com/feeds/6736834240305907843/comments/default' title='Lähetä kommentteja'/><link rel='replies' type='text/html' href='http://namochan.blogspot.com/2010/03/pnabserver.html#comment-form' title='1 kommenttia'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7852388463015725402/posts/default/6736834240305907843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7852388463015725402/posts/default/6736834240305907843'/><link rel='alternate' type='text/html' href='http://namochan.blogspot.com/2010/03/pnabserver.html' title='pNabServer'/><author><name>Namochan</name><uri>http://www.blogger.com/profile/17248227841552940887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7852388463015725402.post-6490906299529862844</id><published>2010-03-20T04:07:00.000-07:00</published><updated>2010-03-20T04:27:36.093-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="jnabserver"/><category scheme="http://www.blogger.com/atom/ns#" term="nabaztag"/><category scheme="http://www.blogger.com/atom/ns#" term="namoztag"/><category scheme="http://www.blogger.com/atom/ns#" term="rfid"/><category scheme="http://www.blogger.com/atom/ns#" term="tag"/><category scheme="http://www.blogger.com/atom/ns#" term="text to speech"/><category scheme="http://www.blogger.com/atom/ns#" term="tts"/><category scheme="http://www.blogger.com/atom/ns#" term="ztamp"/><title type='text'>Again with the Nabaztag:tag</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;Ok, I&#39;ve got the text-to-speech working. I&#39;m using Google&#39;s Translate TTS service for the voice. I made a little addPlayTTSCommand(string tts) function to MessageBlock.java with this as the magic:&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;this.commands += &quot;ST http://translate.google.com/translate_tts?ln=en&amp;amp;q=\&quot;&quot; + tts + &quot;\&quot;\n&quot;;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;div&gt;Google TTS sound pretty nice, but it has something like 97 character limitation. I&#39;ll split these later and just stream them back-to-back, or make my own service with festival and a bit of php.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;To make a lot of scripts to work easily with nabaztag, I made some dirty API function to Worker.java. Parameter &quot;sn&quot; is for serial number, &quot;tts&quot;is for text-to-speech string and &quot;stream&quot; is for MP3s and web radios. It could use some kind of password or &quot;token&quot; like violet is using.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I&#39;ll put a video or something up later, right now I&#39;m getting local weather in speech by pressing the button, and random funny movie sound clips when I show the bunny a RFID tag. Good times.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://namochan.blogspot.com/feeds/6490906299529862844/comments/default' title='Lähetä kommentteja'/><link rel='replies' type='text/html' href='http://namochan.blogspot.com/2010/03/again-with-nabaztagtag.html#comment-form' title='0 kommenttia'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7852388463015725402/posts/default/6490906299529862844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7852388463015725402/posts/default/6490906299529862844'/><link rel='alternate' type='text/html' href='http://namochan.blogspot.com/2010/03/again-with-nabaztagtag.html' title='Again with the Nabaztag:tag'/><author><name>Namochan</name><uri>http://www.blogger.com/profile/17248227841552940887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7852388463015725402.post-5527038820893453695</id><published>2010-03-18T14:47:00.000-07:00</published><updated>2010-03-18T15:36:29.098-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ambientblock"/><category scheme="http://www.blogger.com/atom/ns#" term="hack"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="jnabserver"/><category scheme="http://www.blogger.com/atom/ns#" term="nabaztag"/><category scheme="http://www.blogger.com/atom/ns#" term="rfid"/><category scheme="http://www.blogger.com/atom/ns#" term="server"/><category scheme="http://www.blogger.com/atom/ns#" term="setambientvalue"/><category scheme="http://www.blogger.com/atom/ns#" term="tag"/><category scheme="http://www.blogger.com/atom/ns#" term="violet"/><title type='text'>Nabaztag hacking.</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYim41fquI9aXYvo_T8leFHTtYqc6QWbd5fm0qN2yXbmb5ZE_9u6ABf19WYZy6jBCIOuPhfZ5-9O2OX4Z3M4qbcZA9rsFhbYdFwwVy2Geo0LRZ1jQ0H9XNkuPXmcGGyWIzhycUT1KiPGnI/s1600-h/photo.jpeg&quot;&gt;&lt;img style=&quot;float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;width: 320px; height: 240px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYim41fquI9aXYvo_T8leFHTtYqc6QWbd5fm0qN2yXbmb5ZE_9u6ABf19WYZy6jBCIOuPhfZ5-9O2OX4Z3M4qbcZA9rsFhbYdFwwVy2Geo0LRZ1jQ0H9XNkuPXmcGGyWIzhycUT1KiPGnI/s320/photo.jpeg&quot; border=&quot;0&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5450106159977763106&quot; /&gt;&lt;/a&gt;&lt;br /&gt;I recently bought a Nabaztag:tag with three RFID-enabled books. I wasn&#39;t happy with Violet&#39;s applications or server. Worst thing of all, there were not one Ztamp in the package and you can&#39;t remove the book-reading application from the storybooks. So I searched for alternative.&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Best result was the slightly undocumented &lt;a href=&quot;http://code.google.com/p/jnabserver/&quot;&gt;jNabServer&lt;/a&gt;. I&#39;ve been to the smart home at Tampere University of Technology, seen their bunny, and actually that was the fist Nabaztag I&#39;ve ever touched. Turns out that they were working on their own Nabaztag server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;There hasn&#39;t been any activity for a year, I&#39;m not sure if it&#39;s still going on, but this was a goldmine for me. All the nasty stuff was already written and all the good ready to.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;I got the code to compile under NetBeans 6.8, and got my Nabaztag:tag (named &quot;Namoztag&quot; obviously) to connect to it. It&#39;s all pretty dirty code, and completely just to test the thing out, but I&#39;ve tried to document some parts of it. Firstly, the &lt;a href=&quot;http://ajuda.nabaztag.com/fiche.php?fiche=22&quot;&gt;Light Language&lt;/a&gt; that tells the user when it&#39;s raining (so you don&#39;t have to look outside) or if the sun shining etc. They are sent in a &lt;i&gt;Packet&lt;/i&gt; with a &lt;i&gt;AmbientBlock.&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;&lt;div&gt;&lt;i&gt;AmbientBlock &lt;/i&gt;has a function called setAmbientValue(int Type, int Value), and this is the list of Types and Values:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Type 0 - Nothing&lt;/div&gt;&lt;div&gt;Type 1 - Weather&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;0 - Sunny&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;1 - Cloudy&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;2 - Smog&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;3 - Rain&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;4 - Snow&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;5 - Storm&lt;/div&gt;&lt;div&gt;Type 2 - Market&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;0 - Down a lot&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;1 - Down some&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;2 - Down a bit&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;3 - Stable&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;4 - Up a bit&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;5 - Up some&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;6 - Up a lot&lt;/div&gt;&lt;div&gt;Type 3 - Red lights, no documentation from Violet&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;0 - Red Left and Right, Blinking&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;1 - Red Center, then Red Left and Right&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;2 - Same but faster.&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;3 - Same but even more faster.&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;4 - Even faster&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;5 - Faster still&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;6 - Warp 6 the seizure more.&lt;/div&gt;&lt;div&gt;Type 4 and 5 do nothing.&lt;/div&gt;&lt;div&gt;Type 6 - Mail&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;0 - No mail waiting.&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;1 - One mail waiting.&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;2 - Two mails waiting.&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;3 - Three or more mails waiting.&lt;/div&gt;&lt;div&gt;Type 7 - Air quality&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;1 - 4 Good&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;5 - 7 Average&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;8 Lousy&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Well, that&#39;s it for tonight. I&#39;m working on getting a text-to-speech working somehow, maybe using a PHP to launch Festival on Linux, and streaming the wave file straight to the Nabaztag using the addPlayStreamCommand(). And maybe an URL based nabaztag messaging system to enable whole lot of applications to talk trough my Namoztag.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://namochan.blogspot.com/feeds/5527038820893453695/comments/default' title='Lähetä kommentteja'/><link rel='replies' type='text/html' href='http://namochan.blogspot.com/2010/03/nabaztag-hacking.html#comment-form' title='0 kommenttia'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7852388463015725402/posts/default/5527038820893453695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7852388463015725402/posts/default/5527038820893453695'/><link rel='alternate' type='text/html' href='http://namochan.blogspot.com/2010/03/nabaztag-hacking.html' title='Nabaztag hacking.'/><author><name>Namochan</name><uri>http://www.blogger.com/profile/17248227841552940887</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYim41fquI9aXYvo_T8leFHTtYqc6QWbd5fm0qN2yXbmb5ZE_9u6ABf19WYZy6jBCIOuPhfZ5-9O2OX4Z3M4qbcZA9rsFhbYdFwwVy2Geo0LRZ1jQ0H9XNkuPXmcGGyWIzhycUT1KiPGnI/s72-c/photo.jpeg" height="72" width="72"/><thr:total>0</thr:total></entry></feed>