Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the web client a Mopidy extension #4

Open
jodal opened this issue Jun 23, 2014 · 6 comments
Open

Make the web client a Mopidy extension #4

jodal opened this issue Jun 23, 2014 · 6 comments

Comments

@jodal
Copy link

jodal commented Jun 23, 2014

The shortly upcoming Mopidy 0.19 release lets web clients be installed as Mopidy extensions. This makes it possible to install a web client simply by running e.g. pip install Mopidy-Lux and restarting Mopidy. No configuration changes needed. No git clone or download-and-unzip.

Multiple web clients can be installed at the same time, as each client is hosted with a prefix, e.g. Mopidy-Lux on http://localhost:6680/lux/. Mopidy provides a list of all installed web clients on http://localhost:6680/mopidy/.

Mopidy 0.19 hasn't been released yet, but this feature is complete and available in our develop branch. We want web client authors to start working on making all the web clients pip-installable.

The main sources of information is:

We'll be happy to help you get this working nicely. Let us know if you run into problems.

@samcreate
Copy link
Owner

Cool, I'll start working on it.

@samcreate
Copy link
Owner

Questions: Since my client is running on Node.js would this still be possible to run with this method of installing?

@jodal
Copy link
Author

jodal commented Jun 26, 2014

No, the Mopidy web extensions system only supports:

  • hosting static web clients
  • hosting Tornado server-side apps (a Python web framework) + static files
  • hosting WSGI server-side apps (CGI for Python, basically) + static files

If you don't do much on the Node.js part of your app, a long term solution might be to port that part to a Tornado app which can run directly on Mopidy's web server and be installed as a Mopidy extension.

@samcreate
Copy link
Owner

Thanks for the info. The biggest thing I use node for is authentication with twitter (unique id and picture) and crawling spotify for album artwork.

In those aforementioned methods, would it be possible to those same activities? If so, maybe I'll take the time learn some python.

@jodal
Copy link
Author

jodal commented Jun 27, 2014

Yeah, both should be possible with Python and Tornado.

The Spotify album artwork part can probably easily be moved to the client side now, as the new Spotify web API gives easy access to artwork, ref. https://developer.spotify.com/web-api/get-album/

@kingosticks
Copy link

Album artwork is now obtainable through Mopidy itself.

It'd be really nice to have this project better integrated into Mopidy and pip installable. I've not looked into exactly what you are doing with twitter authentication but mopidy-mopify uses external services and might be helpful to look at if moving forward with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants