orithena / youtupi

YouTube (mobile) web frontend for your Raspberry Pi
http://blog.maxtuni.es/2013/02/introducing-youtupi-youtube-mobile-web.html
2 stars 0 forks source link

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:

Screenshots

Player View Search Youtube Search Local Files Settings View

Manual installation

  1. Install dependencies:

    sudo apt-get update
    sudo apt-get install -y libpcre3 fonts-freefont-ttf 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

Debug YouTuPi

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