diff --git a/README.rst b/README.rst index 8bd0898..e133794 100644 --- a/README.rst +++ b/README.rst @@ -11,35 +11,36 @@ This is a responsive html/js/css client especially written for Mopidy, a music s Development =========== -Note: this Git-version is under heavy development! As Mopidy changes, this client changes as well. It tries to follow the development-branch of Mopidy for now, so update Mopidy as you update the client. +Note: this Git-version is under development! As Mopidy changes, this client changes as well. It tries to follow the Master-branch of Mopidy for now, so update Mopidy as you update the client. Installation ============ -If you use an older version of Mopidy, you should use this version: -`0.11.x `_ - -There is another option if you want to use 0.11 with the recent version of the webclient. You can patch the playlists.py file of core (in linux located in /usr/share/pyshared/mopidy/core or in OSX /Library/Python/2.7/site-packages/mopidy/core ). You can use `this patch `_ or you can manually change the function get_playlists to this: - - def get_playlists(self, include_tracks=True): - futures = [ - b.playlists.playlists for b in self.backends.with_playlists] - results = pykka.get_all(futures) - playlists = list(itertools.chain(*results)) - if not include_tracks: - playlists = [p.copy(tracks=[]) for p in playlists] - return playlists - To install Mopidy, check out `the installation docs `_, `the settings docs `_ and `even more detailed information `_. +If you want to use the web client on a Raspberry Pi, do yourself a favor and use my custom built SD-image: `Pi MusicBox `_. + Quick install ============= -Drop the 'webclient' folder in a folder on your Mopidy-system. Then change the settings.py (in the root directory of the Mopidy code) to make it work. Add a line *mopidy.frontends.http.HttpFrontend* to the FRONTENDS section, and set the *HTTP_SERVER_STATIC_DIR* to point to the folder with the files from the web client. -Then point your browser (modern, with websockets: recent versions of Firefox, Chrome, Opera, and maybe IE10) to the ip-address and port of your device, which you added to the settings.py. e.g. http://192.168.1.5:6680 +Drop the 'webclient' folder in a folder on your Mopidy-system. Then change the settings.py (in the root directory of the Mopidy code) to make it work. +Add a line *mopidy.frontends.http.HttpFrontend* to the FRONTENDS section of your settings.py in the .config directory, and set the *HTTP_SERVER_STATIC_DIR* to point to the folder with the files from the web client. + +Something like: + FRONTENDS = ( + 'mopidy.frontends.mpd.MpdFrontend', + 'mopidy.frontends.http.HttpFrontend', + 'mopidy.frontends.lastfm.LastfmFrontend', + 'mopidy.frontends.mpris.MprisFrontend', + ) + HTTP_SERVER_HOSTNAME = u'0.0.0.0' + HTTP_SERVER_PORT = 6680 + HTTP_SERVER_STATIC_DIR = u'/opt/webclient' + +Then point your browser (modern, with websockets: recent versions of Firefox, Chrome, Safari and IE10) to the ip-address and port of your device, which you added to the settings.py. e.g. http://192.168.1.5:6680 Security ======== -(Note from Mopidy:) As a simple security measure, the web server is by default only available from localhost. To make it available from other computers, change :attr:`mopidy.settings.HTTP_SERVER_HOSTNAME`. Before you do so, 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. \ No newline at end of file +(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. \ No newline at end of file diff --git a/screenshots/playlists-albums-cut.png b/screenshots/playlists-albums-cut.png new file mode 100644 index 0000000..dcdd72c Binary files /dev/null and b/screenshots/playlists-albums-cut.png differ diff --git a/screenshots/playlists-albums.png b/screenshots/playlists-albums.png new file mode 100644 index 0000000..9325fb0 Binary files /dev/null and b/screenshots/playlists-albums.png differ