Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tofuSCHNITZEL committed Aug 24, 2019
1 parent 54f1e6e commit edcd842
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 7 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,18 @@ Easy to use out of the box but also has a lot of settings to make it fit your us

If you miss a feature just post an issue on github. (https://github.com/adafruit/pi_video_looper)

##Changelog

#### new in v1.0.2:
- in directory mode the directory is now monitored;
if the number of files have changed the playlist is regenerated
- some defaults have changed
- new option for the countdown time (default is now 5 seconds)
- new option for a wait time between videos (default is 0 seconds)
- tweaks to the install script (skip the build of hello_video by using (sudo ./install.sh no_hello_video))
- cleanup of the directory structure
- added enable.sh analogous to disable.sh

#### new in v1.0.1:
- reworked for python3
- keyboard control (quiting the player)
Expand Down
File renamed without changes.
9 changes: 5 additions & 4 deletions video_looper.ini → assets/video_looper.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ osd = true
#osd = false

#Below you can set for how many secounds the osd (and countdown) is displayed after files are found
countdown_time = 10
countdown_time = 5

# Below you can set a timout time (in seconds) that is waited between each video
wait_time = 0
Expand Down Expand Up @@ -64,14 +64,15 @@ bgcolor = 0, 0, 0
fgcolor = 255, 255, 255

# Output program state to standard output if true.
console_output = true
#console_output = false
# Useful for debugging to see whats going on behind the scenes
console_output = false
#console_output = true

# Directory file reader configuration follows.
[directory]

# The path to search for movies when using the directory file reader.
path = /home/pi
path = /home/pi/video

# USB drive file reader configuration follows.
[usb_drive]
Expand Down
11 changes: 11 additions & 0 deletions enable.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh

# Make sure script is run as root.
if [ "$(id -u)" != "0" ]; then
echo "Must be run as root with sudo! Try: sudo ./enable.sh"
exit 1
fi

# Disable any supervisor process that start video looper.
mv /etc/supervisor/conf.d/video_looper.conf.disabled /etc/supervisor/conf.d/video_looper.conf
supervisorctl start video_looper
12 changes: 10 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,23 @@ fi

echo "Installing video_looper program..."
echo "=================================="

# change the directoy to the script location
cd "$(dirname "$0")"

mkdir -p /mnt/usbdrive0 # This is very important if you put your system in readonly after
mkdir -p /home/pi/video # create default video directory

pip3 install setuptools
python3 setup.py install --force
cp video_looper.ini /boot/video_looper.ini

cp ./assets/video_looper.ini /boot/video_looper.ini

echo "Configuring video_looper to run on start..."
echo "==========================================="
cp video_looper.conf /etc/supervisor/conf.d/

cp ./assets/video_looper.conf /etc/supervisor/conf.d/

service supervisor restart

echo "Finished!"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import setup, find_packages

setup(name = 'Adafruit_Video_Looper',
version = '1.0.1',
version = '1.0.2',
author = 'Tony DiCola',
author_email = '[email protected]',
description = 'Application to turn your Raspberry Pi into a dedicated looping video playback device, good for art installations, information displays, or just playing cat videos all day.',
Expand Down

0 comments on commit edcd842

Please sign in to comment.