E-mail Print


One of my favorite webradio stations is PROJECT RELOADED, successor of the legendary PROJECT 89.0 DIGITAL (you probably had to live in the Northern part of Germany in 2001-2003 to know this station). Unfortunately, it is not broadcasting proper metadata in its stream, while almost every webradio device would display this information nicely.

Requests to improve the situation were unsuccessful, although there are already playlists available: on the official website and on the homepage of another enthusiastic listener. They are backed by two XML files, the preview list which drives the flash-based playlist and the main list which is said to be used by the old Windows gadget player PROJECT offers for download.

So I sat down and wrote a tiny program to plug the floating pieces together: project-relay was born. On its input side, project-relay connects to the webradio stream server and also periodically reads one of the two XML playlists. It converts the data about the currently played song and injects it conforming to the shoutcase format into the stream that it provides on its output side. As the playlist server is a bit instable, quite a few magic dances are performed to avoid presenting no or invalid metadata.

The relay is written in C for Unix in order to run it directly on my Musicpal (pictured above) which is Linux-based and only has a few KB space left. Pre-built binaries of the latest version are available for both x86 and the Musicpal. They run as daemon in the background by default, but can also be re-configured:

Usage: project-relay [OPTIONS]

-d, --debug stay in foreground and issue debug messages
-p, --port PORT provide radio stream on given TCP port (default: 8010)
-v, --version print version and exit

To push the Musicpal version on the device, telnet acces has to be enabled first (go to http://<local-musicpal-ip>/admin/cgi-bin/debug.cgi). Recent revisions of that webradio come with a USB plug and support mass storage devices so that the binary can be transferred via an USB stick. Alternatively, a tftp server can provide the binary for download. The required steps are then:

# telnet 
# login as root
~ $ ./
# if there is already an older version:
~ $ killall project-relay
# copy from USB
~ $ cp /tmp/mnt/Flash_Disk\#sda1/project-relay /bin/project-relay
# or download from tftp server
~ $ tftp -g -r project-relay -l /bin/project-relay <server-ip>
# Add project-relay to start script
~ $ vi /etc/init.d/mainapp

The script should gain a call to project-relay:

#! /bin/sh

case "$1" in

echo "Starting Nashville."
/bin/logo 2 &
/bin/nashville | logger &

A short vi editor how-to: Press the Insert key, move the cursor and add the new line. Then press Esc and type ':x'. Finally press Enter.

Reboot the Musicpal to check if the installation succeeded:

~ $ reboot

The Musicpal will now provide a stream with proper metadata on <musicpal-ip>:8010 or (when addressing it locally). Note that only one client can connect in parallel. I was lazy and have no permant use for more so far. May change in the future, and I'm open for patches as well.

Last Updated on Saturday, 21 November 2009 14:55

Why Flash Sucks on the Best OS

E-mail Print

Yesterday I finally watched that great movie Home on my laptop. And I wondered if I already need a new one. But now I know for sure it wasn't a hardware problem:

why flash still sucks
(for more of these:

Seriously, Adobe's Flash plugin for Linux is a nightmare. Right while hacking these lines it decides to go wild and took whole Firefox with unsaved version 1 of the article with it. And this happens regularly with Flash-overloaded pages here. Based on some gdb sessions with stalled Firefoxes my suspect is a lock-ordering bug. Well, hard to say for sure without the source code...

Too bad that half of the Web more or less depends on this closed-source extension. And we still have no real alternative.

Last Updated on Saturday, 30 June 2012 09:12

Page Launched

E-mail Print

Here we go, finally. Almost a year after I set up this server, no longer shows a poor placeholder. Everything is still a bit minimalistic here, but content should now appear at a faster pace.

The desire to push some private photo galleries online gave the final kick. My aim was private hosting. I really do not like handing out too much data to any of those "free" content hosters. But I also wanted some appealing user interface. So I watched out for a Joomla-based solution and stopped at the nice Phoca Gallery. Of course its default behavior did not completely meet what I had in mind. But after just a little bit of tuning it's much closer now. Same for Joomla itself and the other extensions I use. You quickly find yourself spending unreasonable time on this...

Though most photos are for "selected viewers" only, I also opened some to the public. Yeah, you got it: Elba was marvelous! 

Last Updated on Saturday, 05 December 2009 11:56

Page 2 of 2
© Copyright 2009-2014 by Jan Kiszka (PGP Key), Impressum