I have installed FHEM home automation server (see http://fhem.de/fhem.html ) on a raspberry pi and I am using musicbox which is running on a second raspberry pi
For FHEM I am using the boat browser since it offers a nice fullscreen mode and also a screen-always-on-option.
2 questions:
I would like to control musicbox directly through FHEM. Anybody here who tried this ? There are fhem modules for Sonos but not for musicbox…
any chance to get a musicbox version which runs with my beloved boat browser ? Currently it does not.
Musicbox uses Mopidy which is compatible with most of the MPD protocol. If
your home automaton software supports MPD then you can use that to control
it.
If it works OK in other browsers then you’ll have to find out what’s the
specific problem with boat browser. I’ve never heard of it. does it support
websockets? If not, you could try installing an alternative Web client like
rompr.
I just tried to install ROMPR using these instructions:
Installation was straight forward (except I had to use nano instead of vi) but
finally I got stuck with that error message.
root@MusicBox:~# service mpd restart
[ ok ] Stopping Music Player Daemon: mpd.
[…] Starting Music Player Daemon: mpdFailed to bind to ‘127.0.0.1:6600’: Address already in use
failed!
root@MusicBox:~#
OK, I downloaded rompr and unzipped it to mentioned directory.
however when I enter 192.168.178.5/rompr in my browser I get a 404 error.
I suppose that the files are in the correct directory (see below) so whats wrong here ? Sorry I am linux novice…
I just tried that everything went fines but
"service apache2 restart2 results in the following:
root@MusicBox:~# service apache2 restart
Syntax error on line 31 of /etc/apache2/sites-enabled/rompr.conf:
Invalid command ‘Header’, perhaps misspelled or defined by a module not included in the server configuration
Action ‘configtest’ failed.
The Apache error log may have more information.
failed!
First check the path in the apache configfile matches the location of the rompr code.
Next check the file permissions of the rompr directory. It should belong to the user your apache is running as. Probably www-data (you can check with ‘ps aux | grep apache’ )
Also the apache log and error files may be helpful.
I noticed now that when I boot the raspberry, 192.168.178.5 points to the apache default page "“it works” for a short moment. After some seconds when reloading the page, the standard musicbox page appears. rompr is not reachable either way
I am not running a musicbox, so it is hard to tell what is going on with you apache configuration.
I assume musicbox has setup a default document root of /opt/webclient.
So you need to move rompr to /opt/webclient/rompr and change the rompr configuration.
And/Or move the musicbox configuration from a default configuration to a specific config file and move the musicbox client from /opt/webclient to /opt/webclient/musicbox.