A simple set of scripts for a "Smart TV" using a Raspberry Pi.
- mp3info
- omxplayer
- curl
- youtube-dl
- feh
- transmission
To download, you need to install git
on your Raspberry pi
sudo apt-get install git
Then clone this repository:
git clone https://github.com/tooringanalytics/smartiepi.git
First download Smartiepi and make sure the requirements are satisfied.
cd
to the source directry and execute install_smartiepi.sh
.
The script will install dependencies, set up directories and execution paths. When finished, it will reboot the raspberry pi.
Music should be stored under /home/pi/Music/external
.
plamusic.sh '.*\/Western.*\.(mp3|avi|ogg)$'
The environment variable AUDIO_OUT
can be used to set the audio output.
It can be one of "hdmi", "local" or "alsa" (default). Use hdmi
for direct hdmi
audio output, local
for audio through the headphone socket and alsa
for output through bluetooth, for example (assuming bluetooth is the default
output configured by ALSA).
Youtube play requires the packes youtube-pl which is downloaded by isntall.sh
Youtube videos are downloaded and stored under /home/pi/Videos/youtube
.
You should store Movies under /home/pi/Videos/Movies
. You may also store
a subtitles file in the 'SRT' format (with the extension .srt
) in the
same directory as the movie file.
To play a movie:
plamusic.sh ~/Videos/Movies/path/to/movie.avi
This will automatically look for and use the subtitles file if it is present in the same directory as the movie file.
Slideshows require the feh
package which is installed by the installation script.
To view a bunch of Photos as a slideshow:
-
Store your photos under
/home/pi/Pictures/external/<ALBUM-NAME>
. -
To play the slideshow:
slideshow.sh <ALBUM-NAME>
The default delay is 5s.