Merge pull request #30 from jaakkosipari/master

Fixes for Mopidy webclient
This commit is contained in:
woutervanwijk 2014-07-12 21:46:49 +02:00
commit d8aa08b4f6
2 changed files with 4 additions and 2 deletions

View File

@ -35,9 +35,11 @@ port = 6680
static_dir = /opt/webclient
```
At least on Raspbian with Mopidy installed from apt.mopidy.com, the 'webclient/mopidy' symbolic link should be re-linked to '/usr/share/mopidy/mopidy/http/data'. Another missing file/symbolic link is 'webclient/js/radiostations.js', which can be copied from https://github.com/woutervanwijk/Pi-MusicBox/tree/master/filechanges/boot/config.
Then point your browser (modern, with websockets: recent versions of Firefox, Chrome, Safari and IE10) to the ip-address and port of your device. e.g. http://192.168.1.5:6680
Security
========
(Note from Mopidy:) Note that the HTTP frontend does not feature any form of user authentication or authorization. Anyone able to access the web server can use the full core API of Mopidy. Thus, you probably only want to make the web server available from your local network or place it behind a web proxy which takes care or user authentication. You have been warned.
(Note from Mopidy:) Note that the HTTP frontend does not feature any form of user authentication or authorization. Anyone able to access the web server can use the full core API of Mopidy. Thus, you probably only want to make the web server available from your local network or place it behind a web proxy which takes care or user authentication. You have been warned.

View File

@ -8,7 +8,7 @@
<script type='application/javascript' src='js/fastclick.js'></script>
<script>
//configuration
var wsLocation = location.host + ':6680'; //for musicbox configuration and normal operation of mopidy http
var wsLocation = location.host.split(':')[0] + ':6680'; //for musicbox configuration and normal operation of mopidy http. remove port from location.host before adding :6680
// var wsLocation = location.host; //for running on port 80