Online radio for lainons.
There are some assumptions in the code you might have to fix before deploying for real elsewhere:
backend.pyassumes that it has write access to the
metrics.pyprobably assumes a lot about permissions.
schedule.pyassumes that bumps are in the album "Lainchan Radio Transitions".
These shouldn't really matter for development. Some things might not work properly, that's it. There might be more things.
There are a few files you might reasonably want to edit if you deploy this code:
config.json, the list of channels, MPD details, and frontend asset template details.
frontend/static/schedule.json, the live broadcast schedule.
Configure your webserver.
examples/directory for help.
Build the frontend assets.
$ cd frontend $ ./run.sh ../config.json
If all goes well, the directory
_sitenow contains all the frontend assets.
Put the frontend assets where you told the server they would be.
$ cp -r frontend/_site/* /srv/http
Start the backend on the port you told the server it would be.
$ cd backend $ ./run.sh --config=../config.json --http-dir=/srv/http 5000
I want to help!
Great! See the open issues. You can also find me on irc.lainchan.org.