edna2 webserver for beets
edna2 is a music streaming server based on two concepts:
Edna2 needs the [beets](http://beets.radbox.org/) music manager to be installed before it can work. Edna2 is essentially a beets plugin (that’s exactly what it is actually). After installing beets, you will also need to have beets catalog your music library so edna2 can stream it for you. View the beets docs for how to do that.
After beets is installed, the easiest way to install edna2 is:
git clone https://firstname.lastname@example.org/aweidner/edna2 cd edna2 python setup.py install
Then edit your .beetsconfig file to include the following line:
plugins = enda2
After that, you can start edna by doing:
edna2 will be started on port 5000, so navigate to [localhost:5000](http://localhost:5000) to see your music. Edna2 will serve out publicly on port 7000 with the command
beet edna2 0.0.0.0 7000
You can specify any port you want so long as no other services are using that port.
If you are having trouble installing edna2, it may help to install it along with beets inside of a virtual environment using the following commands:
pip install virtualenv virtualenv venv source venv/bin/activate pip install beet pip install edna2
And then run the server regularly.
## Using edna2
The key feature of edna2 is the autosearch bar located in the upper left hand corner. Just type and your library will be automatically searched for terms. Then just click a song and it will start playing. Subsequent songs can be added to your current queue with a click and clicking any song in the queue will start playing it.
Currently edna2 only supports playing individual songs from your library, but this is VERY early in the development. Soon, clicking on an album or an artist will add all songs by that artist or from that album to your queue.
## What is edna2 using
Edna2 is using jQuery, flask, beets (duh), and audiojs. It’s based heavily on the web plugin for beets, so if you see similarities in the servers, that’s why.
## Why edna2
edna2 is inspired by the original [edna](http://edna.sourceforge.net/). Edna is an impressive piece of software. I enjoyed the time I spent using it, but it’s from 2006 and no longer updated. Since edna was my inspiration for creating this new music server, I’m dubbing it edna2.