Author: Gwadavel
Date: 2009-03-12 16:05:26 +0100 (Thu, 12 Mar 2009)
New Revision: 4013
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/executables/tux-gadget-clockradio.py
Log:
Add tgp_radio for select radio from CC
Add dictionary for radios
2 radios for the moment ;-)
Modified:
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/executables/tux-gadget-clockradio.py
===================================================================
---
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/executables/tux-gadget-clockradio.py
2009-03-12 15:03:52 UTC (rev 4012)
+++
software_suite_v2/software/gadgets/tuxdroid-gadget-clockradio/trunk/executables/tux-gadget-clockradio.py
2009-03-12 15:05:26 UTC (rev 4013)
@@ -29,6 +29,10 @@
2009/03/11 - version 0.0.1:
- Initial version
+2009/03/12 - version 0.0.2:
+ - Add tgp_radio for select radio from the control center
+ - Add dictionary for webradio
+
TODO LIST
=========
- Add more webradio
@@ -37,11 +41,24 @@
__author__ = "Eric Lescaudron AKA Gwadavel"
__appname__ = "tux radio-réveil"
-__version__ = "0.0.1"
-__date__ = "2009/03/11"
+__version__ = "0.0.2"
+__date__ = "2009/03/12"
__license__ = "GPL"
+DEBUG = False
+
import os
-os.system("mplayer -ao alsa:device=plughw=TuxDroid.0 -playlist
http://cache.yacast.fr/V4/rmc/rmc.m3u")
+WEBRADIO =
{"France-Inter":"http://viphttp.yacast.net/V4/radiofrance/franceinter_hd.m3u",
+ "RMC-Info":"http://cache.yacast.fr/V4/rmc/rmc.m3u"}
+
+radio = os.environ['tgp_radio']
+
+command = "mplayer -ao alsa:device=plughw=TuxDroid.0 -playlist " +
WEBRADIO[radio]
+
+if DEBUG: print command
+
+os.system(command)
+
+# os.system("mplayer -ao alsa:device=plughw=TuxDroid.0 -playlist
http://cache.yacast.fr/V4/rmc/rmc.m3u")
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn