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,6 +35,8 @@ port = 6680
static_dir = /opt/webclient 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 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 Security

View File

@ -8,7 +8,7 @@
<script type='application/javascript' src='js/fastclick.js'></script> <script type='application/javascript' src='js/fastclick.js'></script>
<script> <script>
//configuration //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 // var wsLocation = location.host; //for running on port 80