Giter Club home page Giter Club logo

zukebox's Introduction

================================================================== zukebox: Juke Box

ZukeBox is a very simple "Juke Box" application for playing music from Youtube.

Project goals:

  • RESTful API for adding tracks, controlling the playback
  • The tracks are downloaded with youtube-dl and cached on disk
  • The playback is done with python-vlc
  • Browser extensions

It is in POC phase, use it own your own risk. Currently no automated tests, many things are not configurable yet, the project is in early stage.

Developing

$ python bootstrap.py
$ export PATH=$PWD/bin:$PATH
$ buildout
$ zukebox

Installation

The easiest way to install most Python packages is via easy_install or pip::

$ easy_install zukebox

Installing as a systemd daemon

Starting automatically with systemd (you might need to modify username/path):

$ cp -a etc/systemd/system/zukebox.service /etc/systemd/system/zukebox.service 
$ chmod 664 /etc/systemd/system/zukebox.service
$ systemctl daemon-reload
$ systemctl start zukebox   # (optional) try if it works
$ systemctl enable zukebox

ZukeBox is started with screen, so eg you can attach to it by:

$ screen -r

(Make sure you are the same user you are running zukebox with.)

After this, pressing "Ctrl+a" "d" moves it back to the background.

Usage

Start zukebox application and use the REST api.

Adding a track::

$ http POST 0.0.0.0:5000/player/tracks url="https://www.youtube.com/watch?v=lWqeHVOQa58" user="Tomi"

Getting the tracks::

$ http GET 0.0.0.0:5000/player/tracks

Remove a track::

$ http DELETE 0.0.0.0:5000/player/tracks/0

Getting the recent tracks::

$ http GET 0.0.0.0:5000/player/recent-tracks

Control the player::

$ http PATCH 0.0.0.0:5000/player/control time:=240 # seek
$ http PATCH 0.0.0.0:5000/player/control playing:=false # play/pause
$ http PATCH 0.0.0.0:5000/player/control volume:=50 # change volume

Copyright & License

  • Copyright 2015, Tamas Domok
  • License: MIT

zukebox's People

Contributors

manner82 avatar tomicooler avatar

Watchers

 avatar

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.