<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Guy Rutenberg &#187; radio.py</title>
	<atom:link href="http://www.guyrutenberg.com/tag/radio-py/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.guyrutenberg.com</link>
	<description>Keeping track of what I do</description>
	<lastBuildDate>Wed, 16 Jun 2010 19:53:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Italian Radio Stations List for Radio.py</title>
		<link>http://www.guyrutenberg.com/2009/03/25/italian-radio-stations-list-for-radiopy/</link>
		<comments>http://www.guyrutenberg.com/2009/03/25/italian-radio-stations-list-for-radiopy/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 09:21:46 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[radio.py]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/?p=291</guid>
		<description><![CDATA[Fabio, an Italian user of radio.py, wrote to me the other day with couple of suggestions and a huge radio.py configuration file with 150 Italian radio stations.
According to Fabio, the list contains 40 of the most popular Italian radio stations, along with radio station from where he used to live in north Italy.
In his post, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://podcastoro.blogspot.com/">Fabio</a>, an Italian user of <a href="/radiopy">radio.py</a>, wrote to me the other day with couple of suggestions and a huge <a href="http://podcastoro.blogspot.com/2009/03/radiopy.html">radio.py configuration file with 150 Italian radio stations</a>.</p>
<p>According to Fabio, the list contains 40 of the most popular Italian radio stations, along with radio station from where he used to live in north Italy.</p>
<p>In his post, Fabio also describes a useful tip he uses. He used the radio.py configuration file to number his favorite stations, thus allowing him even easier way to listen to them. E.g.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">radio.py 1
radio.py 3</pre></div></div>

<p>Previously, <a href="http://henrikan.wordpress.com/">Henrikan</a> compiled a <a href="http://henrikan.wordpress.com/2008/08/02/spela-och-spela-in-internetradio-fran-terminalen/"><code>.radiopy</code> file containing some 58 Swedish radio stations</a>.</p>
<p>If your a radio.py reader and you&#8217;ve compiles a <code>.radiopy</code> file you would like to share, send a link along with short description and I&#8217;ll gladly publish it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2009/03/25/italian-radio-stations-list-for-radiopy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>radio.py Station List Patch</title>
		<link>http://www.guyrutenberg.com/2008/11/12/radiopy-station-list-patch/</link>
		<comments>http://www.guyrutenberg.com/2008/11/12/radiopy-station-list-patch/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 06:13:30 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[radio.py]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/?p=162</guid>
		<description><![CDATA[Some of the stations in radio.py-0.5 changed the URLs or their streams. The patch updates the stream URLs of three stations: Galgalatz, Galatz and Radius.
To apply the patch and update radio.py, open a terminal and cd to the directory where you installed it. Type the following commands in the terminal (If you installed as root, [...]]]></description>
			<content:encoded><![CDATA[<p>Some of the stations in <a href="/2008/05/17/radiopy-05-an-easy-interface-for-listening-to-radio-under-linux/">radio.py-0.5</a> changed the URLs or their streams. The patch updates the stream URLs of three stations: Galgalatz, Galatz and Radius.</p>
<p>To apply the patch and update radio.py, open a terminal and <code>cd</code> to the directory where you installed it. Type the following commands in the terminal (If you installed as root, you&#8217;ll need to run the commands as root too).</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">$ wget &quot;http://www.guyrutenberg.com/wp-content/uploads/2008/11/radio.py.patch&quot;
$ patch radio.py &lt; radio.py.patch
$ rm radio.py.patch</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2008/11/12/radiopy-station-list-patch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>radio.py-0.5 &#8211; An Easy Interface for Listening to Radio under Linux</title>
		<link>http://www.guyrutenberg.com/2008/05/17/radiopy-05-an-easy-interface-for-listening-to-radio-under-linux/</link>
		<comments>http://www.guyrutenberg.com/2008/05/17/radiopy-05-an-easy-interface-for-listening-to-radio-under-linux/#comments</comments>
		<pubDate>Sat, 17 May 2008 10:42:48 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[radio.py]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/?p=57</guid>
		<description><![CDATA[This new release of radio.py brings more predefined stations and the much wanted recording feature. radio.py is a python wrapper for mplayer, designed to provide an easy-to-use interface for listening to radio from the command line. And indeed using radio.py is very easy, just pass the station name.

radio.py Classic FM

To read more about radio.py and [...]]]></description>
			<content:encoded><![CDATA[<p>This new release of <code>radio.py</code> brings more predefined stations and the much wanted recording feature. <code>radio.py</code> is a python wrapper for mplayer, designed to provide an easy-to-use interface for listening to radio from the command line. And indeed using radio.py is very easy, just pass the station name.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">radio.py Classic FM</pre></div></div>

<p>To read more about radio.py and the existing features go to <a href="/2007/08/17/radiopy-a-wrapper-script-for-listening-to-radio-in-linux/">radio.py &#8211; a Wrapper Script for Listening to Radio in Linux</a>.</p>
<p>New stations in this release include <a href="http://www.ramfm.net/">Ram FM</a>, <a href="http://www.classicfm.co.uk/">Classic FM</a>, <a href="http://www.classicfm.co.uk">Radio Caroline</a> and update to all the <a href="http://www.classicfm.co.uk">radioIO</a> stations. So overall this version of radio.py comes with 81 predefined stations. To see the full list of recognized station run <code>radio.py --list</code>. If your favorite station is still missing you can add via configuration files, ans described in <a href="/2007/10/02/radiopy-04-listening-to-radio-the-easy-way/">here</a>. If you will send a comment with the name of the stations and its website, I&#8217;ll add it to the next release.</p>
<p>The other important new feature is the ability to record radio streams to mp3 directly from <code>radio.py</code>. This is done using the <code>--radio</code> command-line switch. For example the following</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">radio.py CNN <span style="color: #660033;">--record</span> cnn.mp3</pre></div></div>

<p>will record the radio stream of CNN to a file called <code>cnn.mp3</code>. To stop recording just press &#8216;q&#8217;. This option also be used with the <code>--sleep</code> and <code>--wake-up</code> to time your recordings. For example if you want to record a show that start in 30 minutes and is 60 minutes long you should do</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">radio.py BBC1 <span style="color: #660033;">--record</span> bbc1.mp3 <span style="color: #660033;">--wake-up</span> <span style="color: #000000;">30</span> <span style="color: #660033;">--sleep</span> <span style="color: #000000;">60</span></pre></div></div>

<p>You can download the new version from <a href="http://downloads.sourceforge.net/radiopy/radio.py-0.5.tar.bz2">here</a>. Installation is pretty straight forward, just untar the archive and put the <code>radio.py</code> some where in your path (e.g. <code>/usr/local/bin/</code>) and the package is installed. </p>
<p>As always if you want new stations added to the next release, send a comment with the station details (at least name and website).</p>
<p><strong>UPDATE</strong> 14/12/2008: I&#8217;ve changed the download link to point to <code>radio.py</code>&#8217;s SourceForge project page.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2008/05/17/radiopy-05-an-easy-interface-for-listening-to-radio-under-linux/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>radio.py-0.4 &#8211; Listening to Radio the Easy Way</title>
		<link>http://www.guyrutenberg.com/2007/10/02/radiopy-04-listening-to-radio-the-easy-way/</link>
		<comments>http://www.guyrutenberg.com/2007/10/02/radiopy-04-listening-to-radio-the-easy-way/#comments</comments>
		<pubDate>Tue, 02 Oct 2007 06:00:36 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[radio.py]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/10/02/radiopy-04-listening-to-radio-the-easy-way/</guid>
		<description><![CDATA[Update: radio.py 0.5 is available.
radio.py is a little script that makes it very easy to listen to radio under Linux (and maybe other OSs too) with mplayer. All you need to do is to call radio.py with the name of the station you want to listen to. For example:
radio.py Radio Paradise
or
radio.py BBC3
To read more about [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> <a href="/2008/05/17/radiopy-05-an-easy-interface-for-listening-to-radio-under-linux/">radio.py 0.5</a> is available.</p>
<p>radio.py is a little script that makes it very easy to listen to radio under Linux (and maybe other OSs too) with mplayer. All you need to do is to call radio.py with the name of the station you want to listen to. For example:</p>
<p><code>radio.py Radio Paradise</code><br />
or<br />
<code>radio.py BBC3</code><br />
To read more about radio.py go to <a href="/2007/08/17/radiopy-a-wrapper-script-for-listening-to-radio-in-linux/"> the first post discussing radio.py</a>. </p>
<h4>What&#8217;s New</h4>
<p>Here are some of the things that have changed in <code>radio.py-0.4</code> compared to the previous release (0.3).<span id="more-19"></span> On the usability side, I&#8217;ve dropped the need to put quotation marks around station names containing spaces. So while in previous version of <code>radio.py</code> to listen for &#8220;Radio Tel Aviv&#8221; you had to run<br />
<code>radio.py "Radio Tel Aviv"</code><br />
In the new version you can just call<br />
<code>radio.py Radio Tel Aviv</code><br />
This doesn&#8217;t seem  a big change but it makes it a lot easier to listen to radio stations with spaces in their names, and listening to radio in a user-friendly way is what <code>radio.py</code> is all about.</p>
<p>Another great feature is the ability to add new stations to <code>radio.py</code> on a specific user basis or in a system-wide basis via configuration files. <code>radio.py</code> looks for <code>/etc/radiopy.conf</code> and <code>~/.radiopy</code> and parse them for new stations or for overriding existing stations. The system-wide <code>/etc/radiopy.conf/</code> overrides the default settings in <code>radio.py</code> itself, and <code>~/.radiopy</code> can override the system-wide configuration. The syntax for adding new station is</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[station name]
home: station homepage
stream: station's stream location</pre></div></div>

<p>So if one wants for example to add the BBC3 radio station (although it already in the known station list) one would add the following snippet to <code>~/.radiopy</code> (or to <code>/etc/radiopy.conf</code> if one wants to add it system-wide):</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[BBC3]
home: http://www.bbc.co.uk/radio3
stream: http://www.bbc.co.uk/radio3/ram/r3g2.ram</pre></div></div>

<p>The credit for the idea to use configuration file and the basic implementation of parsing them using the <code>ConfigParser</code> module goes to Fernando Rendón.</p>
<p>In addition to the above, I&#8217;ve added 24 new radio stations including all of RadioIO stations, Beethoven (classic music), Radio Paradise and Onda Cero (some Spanish radio).</p>
<p>A full list of changes between <code>radio.py</code> versions is included the the file <code>CHANGES</code> inside the <code>radio.py-0.4</code> tar archive.</p>
<h4>Download</h4>
<p>You can download <a href='/wp-content/uploads/2007/10/radiopy-0.4.tar.gz' title='radiopy-0.4.tar.gz' onclick='javascript:urchinTracker("wp-content/uploads/2007/10/radiopy-0.4.tar.gz");'><code>radio.py-0.4</code> from here</a>.</p>
<h4>Installation</h4>
<p>The installation process remained the same. Just download the <a href='/wp-content/uploads/2007/10/radiopy-0.4.tar.gz' title='radiopy-0.4.tar.gz' onclick='javascript:urchinTracker("wp-content/uploads/2007/10/radiopy-0.4.tar.gz");'>tar archive</a>., extract it and copy <code>radio.py</code> to somewhere in your <code>PATH</code>, e.g. to <code>/usr/bin</code> or <code>/usr/local/bin</code>. From the command line you can run the following commands from the directory in which you saved the tar archive in order to install the script:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">tar -zxvf radiopy-0.4.tar.gz
cd radiopy
cp radio.py /usr/bin/</pre></div></div>

<h4>Bugs and Suggestions</h4>
<p>If you find a bug in the script please leave a comment bellow. If you have any suggestion or a radio station you would like me to add to the default station list, comment bellow, preferably add the station&#8217;s stream url.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2007/10/02/radiopy-04-listening-to-radio-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
<enclosure url="http://www.bbc.co.uk/radio3/ram/r3g2.ram" length="0" type="audio/x-pn-realaudio" />
		</item>
		<item>
		<title>radio.py &#8211; a Wrapper Script for Listening to Radio in Linux</title>
		<link>http://www.guyrutenberg.com/2007/08/17/radiopy-a-wrapper-script-for-listening-to-radio-in-linux/</link>
		<comments>http://www.guyrutenberg.com/2007/08/17/radiopy-a-wrapper-script-for-listening-to-radio-in-linux/#comments</comments>
		<pubDate>Fri, 17 Aug 2007 10:44:58 +0000</pubDate>
		<dc:creator>Guy</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[radio.py]]></category>
		<category><![CDATA[mplayer]]></category>

		<guid isPermaLink="false">http://www.guyrutenberg.com/2007/08/17/radiopy-a-wrapper-script-for-listening-to-radio-in-linux/</guid>
		<description><![CDATA[Download radio-0.3.tar.gz.
Update: radio.py-0.4 is now available.
I like listening to music and radio while working, and fortunately there are numerous ways to do that. Unfortunately, most ways that allow you to listen to radio are very resource consuming/memory hogs (such as listening to streaming-media via web-browsers) or very unfriendly to users (listening via mplayer for example). [...]]]></description>
			<content:encoded><![CDATA[<p>Download <a href="/wp-content/uploads/2007/08/radio-0.3.tar.gz">radio-0.3.tar.gz</a>.</p>
<p>Update: radio.py-0.4 is now <a href="http://www.guyrutenberg.com/2007/10/02/radiopy-04-listening-to-radio-the-easy-way/">available</a>.</p>
<p>I like listening to music and radio while working, and fortunately there are numerous ways to do that. Unfortunately, most ways that allow you to listen to radio are very resource consuming/memory hogs (such as listening to streaming-media via web-browsers) or very unfriendly to users (listening via mplayer for example). So, I set out to find a way that will use as little system resources as possible while keeping it user-friendly. One other requirement that I had, that I will be able to do all that from the command-line, so it will work great with <a href="http://www.gnu.org/software/screen/">GNU Screen</a> and won&#8217;t require an X server (if I work without one).</p>
<p>I used for some time mplayer for listening to radio. I had a file with a list of web-radio streams URLs which I would copy and pass to <code>mplayer -playlist</code>. This method answered two of the requirements (minimal resources and command-line interface), but wasn&#8217;t really user friendly. So, I wrote a little wrapper script in python around mplayer &#8211; radio.py. After quick installation (download and extract the tar archive and copy radio.py to somewhere in you PATH), radio.py will allow you to listen to stations easily, and it will also do couple more things for you.</p>
<p>To listen to a station just call radio.py with the station&#8217;s name, e.g. in the command-line enter <code>radio.py BBC1</code> to listen for BBC radio channel 1. To view a list of know stations run <code>radio.py --list</code>. Currently there aren&#8217;t many stations (just stations I thought that are needed or I listen to). You can easily edit radio.py to add new stations (the script is documented and very clear). If you do so, please write a comment or email me so I will be able to add those stations to next release by default.</p>
<p>So, as you seen radio.py allows you to easily listen to radio, as easy as writing the station&#8217;s name. But, as I said, it can do more things that I thought should be in a radio script. It has both a sleep feature (that turns off the radio after specified amount of time) and a wake-up feature (that starts the radio after a specified amount of time). This two features can be used together, and practically allow you to use radio.py as an alarm clock. </p>
<p>You can find more information about radio.py options by calling <code>radio.py --help</code>. I hope you will find this script useful as I do. </p>
<p>Download:<br />
<a href="/wp-content/uploads/2007/08/radio-0.3.tar.gz">radio-0.3.tar.gz</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.guyrutenberg.com/2007/08/17/radiopy-a-wrapper-script-for-listening-to-radio-in-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.604 seconds -->
