changed about
authorChristian Weiske <cweiske@cweiske.de>
Tue, 20 May 2008 21:13:25 +0000 (21:13 +0000)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 20 May 2008 21:13:25 +0000 (21:13 +0000)
renamed sync-radiobouqets
help in config.php.dist

ABOUT
DreamboxBouqets.php
config.php.dist
sync-radio-bouqets.php [moved from sync-radiobouqets.php with 100% similarity]

diff --git a/ABOUT b/ABOUT
index 34bad9c410bba792879b1f2ba1c4e794f131d009..b67c4c0a3af7d64acf883c95b89c17d30db1e104 100644 (file)
--- a/ABOUT
+++ b/ABOUT
@@ -1 +1,30 @@
 enigma2 radio stations to mediatomb converter
 enigma2 radio stations to mediatomb converter
+ by Christian Weiske <cweiske@cweiske.de>
+
+These scripts take radio bouqets defined on your Dreambox and import them as
+external links onto your MediaTomb UPnP server - so you can hear satellite
+radio with the kitchen radio.
+
+Prerequisites
+ You need the Services_MediaTomb php library from my pear channel server.
+ Get it via:
+  pear channel-discover zustellzentrum.cweiske.de
+  pear install zustellzentrum/Services_MediaTomb-alpha
+
+How to use it
+ Copy config.php.dist to config.php and adjust it to your needs
+
+
+Provided scripts
+ copy-radio-bouqets.php
+  Dead simple script that deletes all stations on mediatomb and then
+  copies all bouqets and stations freshly onto the upnp server.
+
+ sync-radio-bouqets.php
+  Sophisticated script that tries to change as little as possible.
+  If a station already exists on mediatomb, its title gets updated.
+  Good for cron jobs to make sure the EPG info is current.
+
+
+How to setup stream transcoding:
+ http://cweiske.de/tagebuch/Dreambox%20and%20noxon%20iRadio.htm
index 2e420d57659a4cbf7d70401de30acd82a98d499e..e035b6d9ef470b72f1ae6d8f674af0618f5fed5d 100644 (file)
@@ -3,6 +3,7 @@
 * Fetches bouqet information from the dreambox
 *
 * @author Christian Weiske <cweiske@cweiske.de>
 * Fetches bouqet information from the dreambox
 *
 * @author Christian Weiske <cweiske@cweiske.de>
+* @license  LGPL http://www.gnu.org/copyleft/lesser.html
 */
 class DreamboxBouqets
 {
 */
 class DreamboxBouqets
 {
@@ -19,7 +20,6 @@ class DreamboxBouqets
         $streamhost = 'http://' . $ip . ':8001';
         $url_getServices     = $host . "/web/getservices?sRef=";
         $url_stream_playlist = $host . '/web/stream.m3u?ref=';
         $streamhost = 'http://' . $ip . ':8001';
         $url_getServices     = $host . "/web/getservices?sRef=";
         $url_stream_playlist = $host . '/web/stream.m3u?ref=';
-        //1%3A7%3A2%3A0%3A0%3A0%3A0%3A0%3A0%3A0%3A(type%20%3D%3D%202)%20FROM%20BOUQUET%20%22userbouquet.info_______________radio_.radio%22%20ORDER%20BY%20bouquet
         $url_bouqet_epg      = $host . '/web/epgnow?bRef=';
         $url_stream          = $streamhost . '/';
 
         $url_bouqet_epg      = $host . '/web/epgnow?bRef=';
         $url_stream          = $streamhost . '/';
 
index e5036fcecb18ce26426873561c7d43402ccd2a6c..777848099472b9ef47a63811ae816bc0b8f4ea9c 100644 (file)
@@ -1,18 +1,25 @@
 <?php
 $GLOBALS['enigtombConfig'] = array(
     'dreambox' => array(
 <?php
 $GLOBALS['enigtombConfig'] = array(
     'dreambox' => array(
-        'host' => 'dreambox'
+        //hostname or IP of the dreambox
+        'host' => 'FIXME'
     ),
     'mediatomb' => array(
     ),
     'mediatomb' => array(
-        'host' => 'dojo',
+        //hostname of IP of the mediatomb server
+        'host' => 'FIXME',
         'port' => 49152,
         'port' => 49152,
-        'user' => 'cweiske',
-        'pass' => 'mediatomb',
+        //mediatomb web UI username and password
+        'user' => 'FIXME',
+        'pass' => 'FIXME',
 
 
+        //the mediatomb UPnP directory you want your radio stations listed
         'radiodir'   => 'Radio',
         'radiodir'   => 'Radio',
+        //The bouqet whose stations you want to have in the root radio dir
         'rootBouqet' => 'Favourites',
         'rootBouqet' => 'Favourites',
+        //mime type of the external links (helpful for transcoding)
         'mimetype'   => 'audio/x-satellite-mpeg2'
     ),
         'mimetype'   => 'audio/x-satellite-mpeg2'
     ),
+    //array of radio station name replacements
     'namefixes' => array(
         'DKULTUR'      => 'D-Kultur',
         'DLF'          => 'Deutschlandfunk',
     'namefixes' => array(
         'DKULTUR'      => 'D-Kultur',
         'DLF'          => 'Deutschlandfunk',
@@ -22,7 +29,6 @@ $GLOBALS['enigtombConfig'] = array(
         'MDR JUMP'     => 'Jump',
         'MDR SPUTNIK'  => 'Sputnik',
         'MDR1 SACHSEN' => 'mdr1 Radio Sachsen',
         'MDR JUMP'     => 'Jump',
         'MDR SPUTNIK'  => 'Sputnik',
         'MDR1 SACHSEN' => 'mdr1 Radio Sachsen',
-        'P-COUNTRY'    => 'Premiere Country',
         'VIBRATION'    => 'Vibration',
     )
 );
         'VIBRATION'    => 'Vibration',
     )
 );
similarity index 100%
rename from sync-radiobouqets.php
rename to sync-radio-bouqets.php