[tuxdroid-svn] r5647 - in software_suite_v3/software/gadget: . webradio_variations webradio_variati
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-10-14 07:54:18
|
Author: remi Date: 2009-10-14 09:54:09 +0200 (Wed, 14 Oct 2009) New Revision: 5647 Added: software_suite_v3/software/gadget/webradio_variations/ software_suite_v3/software/gadget/webradio_variations/branches/ software_suite_v3/software/gadget/webradio_variations/tags/ software_suite_v3/software/gadget/webradio_variations/trunk/ software_suite_v3/software/gadget/webradio_variations/trunk/build.py software_suite_v3/software/gadget/webradio_variations/trunk/builder/ software_suite_v3/software/gadget/webradio_variations/trunk/builder/GadgetPackager.py software_suite_v3/software/gadget/webradio_variations/trunk/builder/__init__.py software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/ software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/__init__.py software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/ software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/DirectoriesAndFilesTools.py software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/__init__.py software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/version.py software_suite_v3/software/gadget/webradio_variations/trunk/builder/version.py software_suite_v3/software/gadget/webradio_variations/trunk/icons/ software_suite_v3/software/gadget/webradio_variations/trunk/icons/default.png software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/de.po software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/de.wiki software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/en.po software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/en.wiki software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/fr.po software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/fr.wiki software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/gadget.pot software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/gadget.xml software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/help.wiki software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/nl.po software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/nl.wiki Log: * Added project to serialize the creation of webradio gadget variations. Added: software_suite_v3/software/gadget/webradio_variations/trunk/build.py =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/build.py (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/build.py 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,118 @@ +# -*- coding: utf-8 -*- + +# Copyright (C) 2009 KYSOH Sa +# Remi Jocaille <rem...@ky...> +# Distributed under the terms of the GNU General Public License +# http://www.gnu.org/copyleft/gpl.html + +import os +import shutil + +from builder.util.misc.DirectoriesAndFilesTools import * +from builder.GadgetPackager import GadgetPackager + +# Webradio gadgets defining +RADIOS_DATA = [ + # French radio's + { + 'uuid' : '3e597dc2-d199-416e-83da-3e5bb3ad8683', + 'radios_list' : 'France Inter,RMC Info,France Info,France Culture,Le Mouv,France Musique,France Bleu,Fun Radio,Skyrock', + 'default_radio' : 'France Inter', + 'name_fr' : 'Radios françaises', + 'name_en' : 'Radios françaises', + 'name_nl' : 'Radios françaises', + 'name_de' : 'Radios françaises', + 'icon_file' : 'default.png', + }, + # German radio's + { + 'uuid' : 'a54963a8-500c-4b2b-83c3-38cdf9b6622b', + 'radios_list' : 'WDR1 Live,WDR2,Radio2Day,Rockland Digital,Hit Radio FFH,Antenne Bayern,N-JOY,HR3,Radio ffn,Radio Charivari,BR 3', + 'default_radio' : 'WDR1 Live', + 'name_fr' : 'Radios allemandes', + 'name_en' : 'Radios allemandes', + 'name_nl' : 'Radios allemandes', + 'name_de' : 'Radios allemandes', + 'icon_file' : 'default.png', + }, + # Classic Hits + { + 'uuid' : '1c0e3414-e75e-4ad2-a7b3-6d475ac82195', + 'radios_list' : '977 The 80s Channel,80s Sky FM,Cafe 80s FM,Radio Nigel,Star 107.9,181.FM,1.FM,KickRadio,EYE97', + 'default_radio' : '977 The 80s Channel', + 'name_fr' : 'Classic Hits', + 'name_en' : 'Classic Hits', + 'name_nl' : 'Classic Hits', + 'name_de' : 'Classic Hits', + 'icon_file' : 'default.png', + }, +] + +# ============================================================================== +# Class to retrieve the py file path. +# ============================================================================== +class localFilePath(object): + """Class to retrieve the local file path. + """ + def getPath(self): + """Get the local file path. + """ + mPath, mFile = os.path.split(__file__) + return mPath + +def createRadio(data): + """ + """ + # Define some paths + basePath = localFilePath().getPath() + buildPath = os.path.join(basePath, "BUILD") + tmpGadgetPath = os.path.join(basePath, "tmp", "gadget_%s" % data["uuid"]) + skeletonPath = os.path.join(basePath, "skeleton") + iconSrcPath = os.path.join(basePath, "icons", data["icon_file"]) + iconDestPath = os.path.join(tmpGadgetPath, "gadget.png") + scgGadgetSrcPath = tmpGadgetPath + ".scg" + scgGadgetDestPath = os.path.join(buildPath, "gadget_%s.scg" % data["uuid"]) + # Copy skeleton files + CPDir(skeletonPath, tmpGadgetPath) + # Replace tokens in files + for fileName in os.listdir(tmpGadgetPath): + filePath = os.path.join(tmpGadgetPath, fileName) + # Read original content + f = open(filePath, "rb") + content = f.read() + f.close() + # Replace tokens + content = content.replace("###UUID###", data["uuid"]) + content = content.replace("###RADIOSLIST###", data["radios_list"]) + content = content.replace("###DEFAULTRADIO###", data["default_radio"]) + content = content.replace("###GADGETNAMEFR###", data["name_fr"]) + content = content.replace("###GADGETNAMEEN###", data["name_en"]) + content = content.replace("###GADGETNAMENL###", data["name_nl"]) + content = content.replace("###GADGETNAMEDE###", data["name_de"]) + # Write fixed content + f = open(filePath, "wb") + f.write(content) + f.close() + # Copy gadget icon + shutil.copy(iconSrcPath, iconDestPath) + # Create packed gadget + GadgetPackager().createScg(tmpGadgetPath) + # Copy packed gadget to final directory + shutil.copy(scgGadgetSrcPath, scgGadgetDestPath) + +def createRadios(): + """ + """ + # Clear temp gadgets directory + basePath = localFilePath().getPath() + tmpGadgetsPath = os.path.join(basePath, "tmp") + MKDirsF(tmpGadgetsPath) + # Clear build directory + buildPath = os.path.join(basePath, "BUILD") + MKDirsF(buildPath) + for data in RADIOS_DATA: + createRadio(data) + # Remove temp gadgets directory + RMDirs(tmpGadgetsPath) + +createRadios() Added: software_suite_v3/software/gadget/webradio_variations/trunk/builder/GadgetPackager.py =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/builder/GadgetPackager.py (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/builder/GadgetPackager.py 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- + +import version +__author__ = version.author +__date__ = version.date +__version__ = version.version +__licence__ = version.licence +del version + +# Copyleft (C) 2009 C2ME Sa +# Remi Jocaille <rem...@c2...> +# Distributed under the terms of the GNU General Public License +# http://www.gnu.org/copyleft/gpl.html + +import os +from zipfile import * + +from util.misc.DirectoriesAndFilesTools import * + +# ------------------------------------------------------------------------------ +# Class to create a SCG file from the directory of a smart-core gadget. +# ------------------------------------------------------------------------------ +class GadgetPackager(object): + """Class to create a SCG file from the directory of a smart-core gadget. + """ + + # -------------------------------------------------------------------------- + # Create a scg file. + # -------------------------------------------------------------------------- + def createScg(self, scgDirectory): + """Create a scg file. + @param scgDirectory: Smart-Core gadget directory path. + @return: The success of the file creation. + """ + self.__sourcePath = os.path.realpath(scgDirectory) + if not os.path.isdir(self.__sourcePath): + return False + # Get some paths + TMP_BUILD_PATH = os.path.join(self.__sourcePath, "tmp") + DEST_SCG_FILENAME = self.__sourcePath + ".scg" + # Create the temporary build path + MKDirsF(TMP_BUILD_PATH) + # Copy the directory + CPDir(self.__sourcePath, TMP_BUILD_PATH) + # Filtering the content of temporary path + RMWithFilters(TMP_BUILD_PATH, filters = ['.svn',]) + # Create a zip file + directory = TMP_BUILD_PATH + last_cwd = os.getcwd() + os.chdir(TMP_BUILD_PATH) + zf = ZipFile(DEST_SCG_FILENAME, 'w', compression = ZIP_DEFLATED) + def walker(zip, directory, files, root = directory): + for file in files: + file = os.path.join(directory, file) + name = file[len(TMP_BUILD_PATH) + 1:] + if os.path.isfile(file): + zip.write(file, name, ZIP_DEFLATED) + elif os.path.isdir(file): + file = os.path.join(file, "") + name = os.path.join(name, "") + zip.writestr(name, name) + os.path.walk(TMP_BUILD_PATH, walker, zf) + zf.close() + os.chdir(os.path.abspath(last_cwd)) + # Remove the temporary directory + RMDirs(TMP_BUILD_PATH) + return True Added: software_suite_v3/software/gadget/webradio_variations/trunk/builder/__init__.py =================================================================== Added: software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/__init__.py =================================================================== Added: software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/DirectoriesAndFilesTools.py =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/DirectoriesAndFilesTools.py (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/DirectoriesAndFilesTools.py 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,161 @@ +# -*- coding: utf-8 -*- + +import version +__author__ = version.author +__date__ = version.date +__version__ = version.version +__licence__ = version.licence +del version + +# Copyleft (C) 2008 Acness World +# Remi Jocaille <rem...@c2...> +# Distributed under the terms of the GNU General Public License +# http://www.gnu.org/copyleft/gpl.html + +import os +import shutil + +if os.name == 'nt': + import win32con + import win32file + +# ============================================================================== +# Public functions +# ============================================================================== + +# ------------------------------------------------------------------------------ +# Force to create a directories tree if not exists. +# ------------------------------------------------------------------------------ +def MKDirs(path): + """Force to create a directories tree if not exists. + @param path: Directory path. + """ + if not os.path.isdir(path): + try: + os.makedirs(path) + except: + pass + +# ------------------------------------------------------------------------------ +# Force to create a directories tree after having deleted the old one. +# ------------------------------------------------------------------------------ +def MKDirsF(path): + """Force to create a directories tree after having deleted the old one. + @param path: Directory path. + """ + if os.path.isdir(path): + RMDirs(path) + os.makedirs(path) + +# ------------------------------------------------------------------------------ +# Remove directories and files recursively. +# ------------------------------------------------------------------------------ +def RMDirs(path): + """Remove directories and files recursively. + @param path: Path of the base directory. + """ + if not os.path.isdir(path): + return + for root, dirs, files in os.walk(path, topdown = False): + for d in dirs: + try: + os.removedirs(os.path.join(root, d)) + except: + pass + for f in files: + try: + if os.name == 'nt': + win32file.SetFileAttributesW(os.path.join(root, f), + win32con.FILE_ATTRIBUTE_NORMAL) + os.remove(os.path.join(root, f)) + except: + pass + if os.path.isdir(path): + try: + os.removedirs(path) + except: + pass + +# ------------------------------------------------------------------------------ +# Remove directories and files recursively with filters. +# ------------------------------------------------------------------------------ +def RMWithFilters(path, filters = ['.pyc', '.pyo']): + """Remove directories and files recursively with filters. + @param path: Path of the base directory. + @param filters: Filters as list. + """ + def checkFilter(name): + for filter in filters: + if name.lower().find(filter.lower()) == (len(name) - len(filter)): + return True + return False + + if not os.path.isdir(path): + return + + for root, dirs, files in os.walk(path, topdown = False): + for d in dirs: + if checkFilter(os.path.join(root, d)): + try: + RMDirs(os.path.join(root, d)) + except: + pass + for f in files: + if checkFilter(os.path.join(root, f)): + try: + if os.name == 'nt': + win32file.SetFileAttributesW(os.path.join(root, f), + win32con.FILE_ATTRIBUTE_NORMAL) + os.remove(os.path.join(root, f)) + except: + pass + +# ------------------------------------------------------------------------------ +# Remove a file. +# ------------------------------------------------------------------------------ +def RMFile(path): + """Remove a file. + @param path: File path. + """ + if os.path.isfile(path): + try: + if os.name == 'nt': + win32file.SetFileAttributesW(path, + win32con.FILE_ATTRIBUTE_NORMAL) + os.remove(path) + except: + pass + +# ------------------------------------------------------------------------------ +# Copy a directories tree to another directory. +# ------------------------------------------------------------------------------ +def CPDir(src, dest): + """Copy a directories tree to another directory. + @param src: Source path. + @param dest: Destination path. + """ + if not os.path.isdir(src): + return + if os.path.isdir(dest): + RMDirs(dest) + shutil.copytree(src, dest) + +# ------------------------------------------------------------------------------ +# Retrieve the OS temporary directory. +# ------------------------------------------------------------------------------ +def GetOSTMPDir(): + """Retrieve the OS temporary directory. + @return: The OS temporary directory. + """ + result = None + # On Windows + if os.name == 'nt': + result = os.environ.get('tmp') + if result == None: + result = os.environ.get('temp') + if result == None: + result = "c:\\windows\\temp" + # On linux + else: + result = "/tmp" + return result Added: software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/__init__.py =================================================================== Added: software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/version.py =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/version.py (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/builder/util/misc/version.py 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +"""Version data for tuxisalive.lib.Util""" + +__author__ = "Remi Jocaille (rem...@c2...)" + +# Copyleft (C) 2008 C2ME Sa +# Remi Jocaille <rem...@c2...> +# Distributed under the terms of the GNU General Public License +# http://www.gnu.org/copyleft/gpl.html + +name = 'util.misc' +version = '0.0.1' +author = "Remi Jocaille (rem...@c2...)" + +description = "Utilities libraries." + +licence = "GPL" +date = "December 2008" Added: software_suite_v3/software/gadget/webradio_variations/trunk/builder/version.py =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/builder/version.py (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/builder/version.py 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,9 @@ +# Copyleft (C) 2009 C2ME Sa +# Remi Jocaille <rem...@c2...> +# Distributed under the terms of the GNU General Public License +# http://www.gnu.org/copyleft/gpl.html + +version = '0.0.1' +author = "Remi Jocaille (rem...@c2...)" +licence = "GPL" +date = "2009" Added: software_suite_v3/software/gadget/webradio_variations/trunk/icons/default.png =================================================================== (Binary files differ) Property changes on: software_suite_v3/software/gadget/webradio_variations/trunk/icons/default.png ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/de.po =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/de.po (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/de.po 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,11 @@ +msgid "Webradio" +msgstr "###GADGETNAMEDE###" + +msgid "Webradio." +msgstr "###GADGETNAMEDE###." + +msgid "This gadget will turn Tux Droid into a webradio." +msgstr "Diese Funktion macht aus Ihrem Tux Droid ein Webradio." + +msgid "enum_radios_list" +msgstr "###RADIOSLIST###" Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/de.wiki =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/de.wiki (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/de.wiki 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,14 @@ += Hilfe = +Diese Funktion verwandelt Tux Droid in ein Webradio. + +Mehrere Einstellungen können in der Konfiguration geändert werden: +* Sie können das Webradio aus der Webradio-Liste auswählen, das Sie hören möchten +* Sie können auch die URL Ihres Lieblingswebradios eingeben +* Achten Sie darauf die Option "URL-Adresse verwenden" freizugeben, um die o.g. URL Ihres Lieblingswebradios zu aktivieren +* Webradio als Wecker konfigurieren + +Verwendung: +* Im Listen-Modus: Die Flügel von Tux Droid anstoßen, um zum vorhergehenden/nächsten Webradio zu wechseln +* Im Listen-Modus: Sie können das vorherige oder nächste Webradio auch über die Tasten "zurück" und "weiter" auf der Fernbedienung auswählen +* Über die "Start"-Taste der Fernbedienung können Sie das Hintergrundspiel des Webradios unterbrechen/fortsetzen +* Über die "Power"-Taste der Fernbedienung melden Sie die Webradio-Funktion ab Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/en.po =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/en.po (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/en.po 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,11 @@ +msgid "Webradio" +msgstr "###GADGETNAMEEN###" + +msgid "Webradio." +msgstr "###GADGETNAMEEN###." + +msgid "This gadget will turn Tux Droid into a webradio." +msgstr "This gadget will turn Tux Droid into a webradio." + +msgid "enum_radios_list" +msgstr "###RADIOSLIST###" Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/en.wiki =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/en.wiki (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/en.wiki 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,14 @@ += Help = +This gadget will turn Tux Droid into a webradio. + +Several settings can be changed in the configuration : +* You can select the webradio you want to listen to from the webradio list +* You can also enter your favorite webradio url +* Make sure you enable "Use address url" to activate the above url of your favorite webradio +* Configure the webradio as an alarm clock + +Usage : +* When in list mode : Push Tux Droid wings to switch to the previous/next webradio +* When in list mode : The "previous" and "next" buttons on the remote control also allow you to select the previous/next webradio +* The "play" button on the remote control will pause/continue webradio playback +* The "power" button on the remote control will quit the webradio gadget \ No newline at end of file Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/fr.po =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/fr.po (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/fr.po 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,11 @@ +msgid "Webradio" +msgstr "###GADGETNAMEFR###" + +msgid "Webradio." +msgstr "###GADGETNAMEFR###." + +msgid "This gadget will turn Tux Droid into a webradio." +msgstr "Ce gadget transforme votre Tux Droid en lecteur de radios internet." + +msgid "enum_radios_list" +msgstr "###RADIOSLIST###" Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/fr.wiki =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/fr.wiki (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/fr.wiki 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,14 @@ += Aide = +Ce gadget transforme votre Tux Droid en lecteur de radios internet. + +Voici les options que vous trouverez dans la configuration : +* Sélectionner la radio internet que vous voulez écouter parmi une liste de radios +* Sélectionner une radio internet en indiquant directement son url +* Passer du mode "liste" au mode "url" en activant l'option "Utiliser en mode adresse" +* Utiliser Tux Droid en tant que radio réveil. + +Utilisation du gadget : +* Appuyez sur le bouton "play" de la télécommande pour mettre en pause/continuer l'écoute d'une radio +* Appuyer sur le bouton "Ok" de la télécommande ou le bouton de tête de Tux Droid pour quitter le gadget et l'écoute de la radio. +* Appuyez sur les ailes de Tux Droid pour passer en revue les radios internet (uniquement en mode "liste") +* Appuyez sur les boutons précédant/suivant de la télécommande pour passer en revue les radios internet (uniquement en mode "liste") Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/gadget.pot =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/gadget.pot (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/gadget.pot 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,11 @@ +msgid "Webradio" +msgstr "" + +msgid "Webradio." +msgstr "" + +msgid "This gadget will turn Tux Droid into a webradio." +msgstr "" + +msgid "enum_radios_list" +msgstr "" Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/gadget.xml =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/gadget.xml (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/gadget.xml 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,53 @@ +<gadget> + <description> + <author>Kysoh</author> + <category>Misc</category> + <defaultLanguage>all</defaultLanguage> + <description>This gadget will turn Tux Droid into a webradio.</description> + <iconFile>gadget.png</iconFile> + <name>Webradio</name> + <onDemandIsAble>true</onDemandIsAble> + <platform>all</platform> + <ttsName>Webradio.</ttsName> + <uuid>###UUID###</uuid> + <version>0.0.10</version> + </description> + <parameters> + <param_00> + <defaultValue>null</defaultValue> + <name>url</name> + <visible>false</visible> + </param_00> + <param_01> + <defaultValue>false</defaultValue> + <name>modeUrl</name> + <visible>false</visible> + </param_01> + <param_02> + <defaultValue>###DEFAULTRADIO###</defaultValue> + <name>radio</name> + <visible>true</visible> + </param_02> + <param_03> + <defaultValue>Ryan</defaultValue> + <name>locutor</name> + <visible>false</visible> + </param_03> + </parameters> + <parentPlugin> + <url>http://ftp.kysoh.com/</url> + <uuid>8349ed52-572d-4c3f-a7b8-05c2a8aec2c6</uuid> + <version>0.0.10</version> + </parentPlugin> + <tasks> + <task_00> + <activated>false</activated> + <date>2009/10/10</date> + <delay>00:01:00</delay> + <hoursBegin>07:00:00</hoursBegin> + <hoursEnd>07:15:00</hoursEnd> + <name>Clock radio</name> + <weekMask>true,true,true,true,true,true,true</weekMask> + </task_00> + </tasks> +</gadget> Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/help.wiki =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/help.wiki (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/help.wiki 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,14 @@ += Help = +This gadget will turn Tux Droid into a webradio. + +Several settings can be changed in the configuration : +* You can select the webradio you want to listen to from the webradio list +* You can also enter your favorite webradio url +* Make sure you enable "Use address url" to activate the above url of your favorite webradio +* Configure the webradio as an alarm clock + +Usage : +* When in list mode : Push Tux Droid wings to switch to the previous/next webradio +* When in list mode : The "previous" and "next" buttons on the remote control also allow you to select the previous/next webradio +* The "play" button on the remote control will pause/continue webradio playback +* The "power" button on the remote control will quit the webradio gadget \ No newline at end of file Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/nl.po =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/nl.po (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/nl.po 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,11 @@ +msgid "Webradio" +msgstr "###GADGETNAMENL###" + +msgid "Webradio." +msgstr "###GADGETNAMENL###." + +msgid "This gadget will turn Tux Droid into a webradio." +msgstr "Deze gadget verandert je Tux Droid in een webradio." + +msgid "enum_radios_list" +msgstr "###RADIOSLIST###" Added: software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/nl.wiki =================================================================== --- software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/nl.wiki (rev 0) +++ software_suite_v3/software/gadget/webradio_variations/trunk/skeleton/nl.wiki 2009-10-14 07:54:09 UTC (rev 5647) @@ -0,0 +1,14 @@ += Help = +Deze gadget verandert je Tux Droid in een webradio. + +Verschillende opties kunnen aangepast worden in de configuratie : +* Kies de webradio in de lijst van beschikbare webradio's +* Je kan ook de url ingeven van je favoriete webradio +* Activeer "Gebruik adres url" als je naar de webradio wil luisteren van de hierboven ingegeven url +* Configureer de webradio gadget als een alarm klok + +Gebruik : +* Indien in lijst modus : druk op de vleugels van Tux Droid om naar de vorige/volgende webradio te luisteren +* Indien in lijst modus : druk op de "vorige" en "volgende" knoppen op de afstandsbediening om naar de vorige/volgende webradio te luisteren +* De "play" knop op de afstandsbediening zal de webradio pauzeren/afspelen +* De "power" knop op de afstandsbediening zal de webradio gadget afsluiten \ No newline at end of file |