Giter Club home page Giter Club logo

cmus_app's Introduction

AGPL

cmus-remote web app

This is a web app to control a server instance of cmus, a powerful music player, remotely. It supports basic player, volume and mode controls, can fetch and show the albumart-image from current files' folder and display all tags. But you can't add items to the playlist or manage the queue.

If you want to run this web app and cmus itself in backgound and optionally automatically on system-startup check out cmus_daemon!

Screenshot of cmus_app running in Firefox

Dependencies

cmus is required, of course. The backend is written in Python and has been tested with Python 2.7, Python 3.5, PyPy 4.0, and Pyston 0.4.

All dependencies are bundled. They are bottle and sh. The frontend also makes use of Zepto, Kube, and Font Awesome. Thanks to the creators for making them available under permissive licenses.

Instructions

The web app can run on the same host as the cmus instance you want to control or a different one, but both hosts will have to have cmus installed.

On the cmus host

  • Run an instance of cmus using the --listen option.

      $ cmus --listen <host>
    
  • Set a password in cmus using :set passwd=<passwd>.

On the web app host

  • Fetch cmus_app:

      $ git clone git://github.com/ichier/cmus_app
      $ cd cmus_app
    
  • Edit the configuration file. (Optional.)

  • Run the app with a configuration file or command-line options:

      $ python app.py -f <config_file>
      $ python app.py -c raspberry -w PaSsWd -a localhost -p 8080
    

Anywhere on your network

  • Open your browser and navigate to http://<host>:<port>.

Enjoy!

Prior Art and Alternatives

Take a look on the cmus wiki.

cmus_app's People

Contributors

ichier avatar

Stargazers

Eugene avatar Nathan avatar Cora Muirgen avatar  avatar Shawn Anderson avatar Ano Rebel avatar

cmus_app's Issues

crashes with var not defined....

Traceback (most recent call last):
File "/root/cmus_app/bottle.py", line 862, in _handle
return route.call(**args)
File "/root/cmus_app/bottle.py", line 1732, in wrapper
rv = callback(*a, **ka)
File "app.py", line 169, in fetch_full_status
r = get_full_status()
File "app.py", line 75, in get_full_status
r = get_cmus_status()
File "app.py", line 71, in get_cmus_status
return false
NameError: global name 'false' is not defined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.