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
* Fetches bouqet information from the dreambox
*
* @author Christian Weiske <cweiske@cweiske.de>
+* @license LGPL http://www.gnu.org/copyleft/lesser.html
*/
class DreamboxBouqets
{
$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 . '/';
<?php
$GLOBALS['enigtombConfig'] = array(
'dreambox' => array(
- 'host' => 'dreambox'
+ //hostname or IP of the dreambox
+ 'host' => 'FIXME'
),
'mediatomb' => array(
- 'host' => 'dojo',
+ //hostname of IP of the mediatomb server
+ 'host' => 'FIXME',
'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',
+ //The bouqet whose stations you want to have in the root radio dir
'rootBouqet' => 'Favourites',
+ //mime type of the external links (helpful for transcoding)
'mimetype' => 'audio/x-satellite-mpeg2'
),
+ //array of radio station name replacements
'namefixes' => array(
'DKULTUR' => 'D-Kultur',
'DLF' => 'Deutschlandfunk',
'MDR JUMP' => 'Jump',
'MDR SPUTNIK' => 'Sputnik',
'MDR1 SACHSEN' => 'mdr1 Radio Sachsen',
- 'P-COUNTRY' => 'Premiere Country',
'VIBRATION' => 'Vibration',
)
);