YouTube (mobile) web frontend for your Raspberry Pi
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

YouTuPi

YouTuPi lets you play local and YouTube videos in your Raspberry Pi using a (mobile) web interface. It provides a web UI for Omxplayer (the raspbian media player). It has three modules:

  • Local file search and browse for available media in the filesystem
  • Youtube support thanks to pafy
  • Paste video URL from anywhere

Screenshots

Player View Search Youtube Search Local Files Settings View

Manual installation

  1. Install dependencies:

    sudo apt-get update
    sudo apt-get install omxplayer python-pip python-magic python-dbus git
    sudo pip install web.py beautifulsoup4 youtube_dl betterprint
  2. Clone repository:

    YOUTUPI_HOME=/home/pi/youtupi
    git clone git://github.com/kktuax/youtupi.git $YOUTUPI_HOME
    cd $YOUTUPI_HOME
    cp youtupi.conf.example youtupi.conf
    git submodule init
    git submodule update
  3. Register service:

    sudo cp $YOUTUPI_HOME/service/youtupi /etc/init.d/
    sudo update-rc.d youtupi defaults

Note: If you want to run youtupi under a different user than pi or from a different directory, you'll need to modify /etc/init.d/youtupi before starting it.

Scripted installation

cd ~
curl https://raw.githubusercontent.com/kktuax/youtupi/master/service/install.sh -o youtupi-install.sh
cat youtupi-install.sh         # well, you need to check whether this shell script from the net is clean.
chmod +x youtupi-install.sh
sudo ./youtupi-install.sh

Note: If you want to run youtupi under a different user than pi or from a different directory than /home/pi/youtupi/, you'll need to modify youtupi-install.sh after downloading and /etc/init.d/youtupi after installing.

Use YouTuPi

  • Start youtupi

    sudo /etc/init.d/youtupi start
    
  • Grab your Tablet/Phone/PC and go to: http://192.168.1.2:8080 (replace 192.168.1.2 with your Raspberry Pi address).

  • Enjoy!

Debug YouTuPi

  • Don't start the service (or stop it), then cd into /home/pi/youtupi and run it from the command line:

    sudo /etc/init.d/youtupi stop
    cd /home/pi/youtupi
    python youtupi.py
    
  • Grab your Tablet/Phone/PC and go to: http://192.168.1.2:8080 (replace 192.168.1.2 with your Raspberry Pi address).

This'll give you all the debug messages on the command line. Add more by adding print/pprint statements to the code.

Configuration file

You can customize the download folder and some other parameters in the JSON configuration file

nano ~/youtupi/youtupi.conf
{
    "port": 8888,
    "local-folders": [
        "~/Media", "~/Downloads"
    ],
    "download-folder": "~/Downloads"
}

Problems?

Try updating, or installing again a newer version

sudo /etc/init.d/youtupi update

Still no luck? Raise an issue