<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" 
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" 
   xmlns:html="http://www.w3.org/1999/html" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
   <title>Fer's blog</title>
   <link>http://www.gnome.org/~fherrera/blog</link>
   <description>fer, ferulo, that crazy man</description>
   <language>en</language>
   <copyright>Copyright 2006 Fernando Herrera</copyright>
   <ttl>60</ttl>
   <pubDate>Sun, 06 Aug 2006 14:23 GMT</pubDate>
   <managingEditor>fherrera@onirica.com</managingEditor>
   <generator>PyBlosxom http://pyblosxom.sourceforge.net/ 1.3.2 2/13/2006</generator>
<item>
   <title>Wireless music at home</title>
   <guid isPermaLink="false">770_daap</guid>
   <link>http://www.gnome.org/~fherrera/blog/770_daap.html</link>
   <description><![CDATA[
<p>Yesterday I assembled my new IKEA desk. It's nice to have my computer again on a desk :). In Madrid I used to connect my computer audio output to my Hi-Fi system to be able to listen to my mp3/ogg/flac music on the living room with a long RCA audio wire. However that is not anymore possible in my new apartment. I though about some other solution to play my music. First I considered buying an <a href="http://www.apple.com/airportexpress/">Apple Airport Express</a>: 130$. Then I realized that I already have a gadget with wireless and audio output: my <a href="http://www.nokia.com/770">Nokia 770</a> so let's code it!.</p><p><ul><li>First I need a music server: after some web crawling <a href="http://www.snorp.net/log/tangerine">tangerine</a> was the perfect piece of software, quick, easy and just works.</li><li>Then I needed some DAAP client code for the 770: <a href="http://jerakeen.org/blog/2005/03/23/python-daap/">python-daap</a> looked great, so I could write a quick 770 python player.</li><li>I did some local testing on my computer and I had to hack python-daap to connect/disconnect after each request, because downloading more than one song was failing: <a href="http://www.gnome.org/~fherrera/770-daap-files/daap.patch">ugly hack for python daap</a></li><li>Finally a quick and dirty test player in python for the 770, based on the <a href="http://muine-player.org/">Muine</a> idea: Add -- Play/Enqueue</li></ul></p><p>So after ~200 lines of python I got it:<br /><center><img src="http://www.gnome.org/~fherrera/770-daap-files/770-hifi.jpg" border="0" /><br /><i>My Hi-Fi system with the 770 connected wih a jack2RCA wire</i><br /><br /><img src="http://www.gnome.org/~fherrera/770-daap-files/770-daap-main.png" border="0" /><br /><i>Main play window</i><br /><br /> <img src="http://www.gnome.org/~fherrera/770-daap-files/770-daap-search.png" border="0" /><br /><i>Add Song window</i><br /></center></p><p>Here are the files:<ul><li><a href="http://www.gnome.org/~fherrera/770-daap-files/pythondaap_1.0-1_armel.deb">pythondaap_1.0-1_armel.deb</a></li><li><a href="http://www.gnome.org/~fherrera/770-daap-files/n770.py">n770.py</a></li></ul>Currently DAAP server address is harcoded and stop button is not working, so there is lot of stuff to do:<ul><li>add some Avahi python code to search for music servers</li><li>Make stop works</li><li>download next song 10 secs before playing it to avoid delays</li><li>Support for remote playlists (in client and tangerine)</li><li>Create real .deb packages with .desktop files so you don't need to run it in a console with <pre>run-standalone.sh python2.4 ./n770.py</pre></li><li>...</li></ul></p>

]]></description>
   <category domain="http://www.gnome.org/~fherrera/blog">main</category>
   <pubDate>Sun, 06 Aug 2006 14:23 GMT</pubDate>
</item>
</channel>
</rss>
