justboom/ 0000755 0000000 0000000 00000000000 14523372474 011431 5 ustar root root justboom/scripts/ 0000755 0000000 0000000 00000000000 14523372474 013120 5 ustar root root justboom/scripts/custom.css 0000644 0000000 0000000 00000000754 13757417277 015163 0 ustar root root .logojustboom {
background: rgba(0, 0, 0, 0) url("/addons/justboom/justboom-logo-450.jpg") no-repeat scroll left top / contain;
float: left;
width: 220px;
height: 80px;
}
@media only screen
and (max-width : 800px)
{
.logojustboom {
background: rgba(0, 0, 0, 0) url("/addons/justboom/justboom-logo-450_k.jpg") no-repeat scroll left top / contain;
width: 60px;
height: 60px;
margin-top: 0px;
}
}
justboom/scripts/90-custom-justboom.hwdb 0000644 0000000 0000000 00000000351 13757417277 017376 0 ustar root root evdev:input:b0003v2252p0120*
KEYBOARD_KEY_c00ea=minus
KEYBOARD_KEY_c00e9=equal
KEYBOARD_KEY_c00e2=u
KEYBOARD_KEY_c0224=j
KEYBOARD_KEY_c0223=h
KEYBOARD_KEY_c0030=q
KEYBOARD_KEY_c0040=semicolon
KEYBOARD_KEY_c0041=enter
justboom/scripts/install_ir.sh 0000777 0000000 0000000 00000011540 13757417277 015635 0 ustar root root #!/bin/bash
# Some information
# https://www.justboom.co/tutorials/configure-justboom-ir-remote-lirc/
# https://www.max2play.com/en/forums/topic/infrared-remote-for-max2play-rpi-squeezebox/
# Keymap lirc-x jivelite: /usr/share/doc/lirc/irxevent.keys
# Use irw to test the remote
CURRENTDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
USER=$(grep -a "SYSTEM_USER" /opt/max2play/audioplayer.conf | sed -n -e 's/^[A-Z_]*\=//p')
###### ---- 3 Options Available---- ###########
# Setup lirc in /boot/config.txt with PHP First (use function in RaspberryPi settings, add IR to RaspberryPi Settings)!
if [ -e /etc/lirc/lirc_options.conf ]; then
# New Lirc 0.9.4 Version Updates
sed -i 's@^driver.*=.*@driver=default@;s@^device.*=.*@device=/dev/lirc0@' /etc/lirc/lirc_options.conf
if [ -e /etc/lirc/lircd.conf.d/lircd.conf ]; then
echo "Config File lircd.conf already existing"
else
# make sure original path of new lirc version is included
cp -f /etc/lirc/lircd.conf.dist /etc/lirc/lircd.conf
cp $CURRENTDIR/ir/lircd.conf /etc/lirc/lircd.conf.d/
chmod 777 /etc/lirc/lircd.conf.d/lircd.conf
fi
else
# Copy initial lirc remote configuration (IR-Code definition)
if [ "$(grep -i 'begin remote' /etc/lirc/lircd.conf | wc -l)" -lt "1" ]; then
cp $CURRENTDIR/ir/lircd.conf /etc/lirc/
chmod 777 /etc/lirc/lircd.conf
fi
# Edit /etc/lirc/hardware.conf
sed -i 's@^LIRCD_ARGS=.*@LIRCD_ARGS="--uinput"@;s@^DRIVER=.*@DRIVER="default"@;s@^DEVICE=.*@DEVICE="/dev/lirc0"@;s@^MODULES=.*@MODULES="lirc_rpi"@' /etc/lirc/hardware.conf
fi
# Remove any existing configuration!
if [ -e /opt/max2play/custom_autostart.sh ]; then
sed -i 's/.*\/ir\/my_lirc.*//' /opt/max2play/custom_autostart.sh
fi
sed -i 's@ -i .*\/ir\/my_lircsqueeze@@' /opt/max2play/audioplayer.conf
###### 1. Jivelite
if [ "$1" == "jivelite" ]; then
# Use irxevent and lircjivelite config
if [ "$(dpkg -s lirc-x | grep 'install ok' | wc -l)" -lt "1" ]; then
apt-get update
apt-get install lirc-x --yes --force-yes
fi
if [ ! -e $CURRENTDIR/ir/my_lircjivelite ]; then
cp $CURRENTDIR/ir/lircjivelite $CURRENTDIR/ir/my_lircjivelite
fi
# Add irxevent to custom autostart under user pi and exported Display
if [ ! -e /opt/max2play/custom_autostart.sh ]; then
echo -e "#!/bin/bash\nif [ \"\$(ps -Al | grep irxevent | wc -l)\" -lt \"1\" ]; then export DISPLAY=:0;sudo su -l $USER -c \"irxevent -d $CURRENTDIR/ir/my_lircjivelite\";fi\n" >> /opt/max2play/custom_autostart.sh
chmod 777 /opt/max2play/custom_autostart.sh
else
echo -e "\nif [ \"\$(ps -Al | grep irxevent | wc -l)\" -lt \"1\" ]; then export DISPLAY=:0;sudo su -l $USER -c \"irxevent -d $CURRENTDIR/ir/my_lircjivelite\";fi\n" >> /opt/max2play/custom_autostart.sh
chmod 777 /opt/max2play/custom_autostart.sh
fi
echo "Jivelite lirc configuration finished";
fi
###### 2. Squeezelite
if [ "$1" == "squeezelite" ]; then
if [ ! -e $CURRENTDIR/ir/my_lircsqueezelite ]; then
cp $CURRENTDIR/ir/lircsqueezelite $CURRENTDIR/ir/my_lircsqueezelite
fi
# add Parameter -i to Squeezelite with Path to lircsqueeze
SQUEEZELITE_PARAMETER=$(grep -a "SQUEEZELITE_PARAMETER" /opt/max2play/audioplayer.conf | sed -n -e 's/^[A-Z_]*\=//p')
sed -i "s@^SQUEEZELITE_PARAMETER=.*@SQUEEZELITE_PARAMETER=$SQUEEZELITE_PARAMETER -i $CURRENTDIR/ir/my_lircsqueezelite@" /opt/max2play/audioplayer.conf
echo "Squeezelite lirc configuration finished";
fi
###### 3. MPD
if [ "$1" == "mpd" ]; then
# use lircmpd config and irexec
# add irexec to custom autostart
if [ ! -e $CURRENTDIR/ir/my_lircmpd ]; then
cp $CURRENTDIR/ir/lircmpd $CURRENTDIR/ir/my_lircmpd
fi
if [ ! -e /opt/max2play/custom_autostart.sh ]; then
echo -e "#!/bin/bash\nif [ \"\$(ps -Al | grep irexec | wc -l)\" -lt \"1\" ]; then sudo su -l $USER -c \"irexec -d $CURRENTDIR/ir/my_lircmpd\";fi\n" >> /opt/max2play/custom_autostart.sh
chmod 777 /opt/max2play/custom_autostart.sh
else
echo -e "\nif [ \"\$(ps -Al | grep irexec | wc -l)\" -lt \"1\" ]; then sudo su -l $USER -c \"irexec -d $CURRENTDIR/ir/my_lircmpd\";fi\n" >> /opt/max2play/custom_autostart.sh
chmod 777 /opt/max2play/custom_autostart.sh
fi
echo "MPD lirc configuration finished";
fi
###### 4. Kodi
if [ "$1" == "kodi" ]; then
if [ ! -e /home/pi/.kodi/userdata/Lircmap.xml ]; then
ln /var/www/max2play/application/plugins/justboom/scripts/ir/lirckodi /home/pi/.kodi/userdata/Lircmap.xml
fi
if [ ! -e $CURRENTDIR/ir/my_lirckodi ]; then
cp $CURRENTDIR/ir/lirckodi $CURRENTDIR/ir/my_lirckodi
fi
echo "Kodi lirc configuration finished";
fi
chmod -R 777 $CURRENTDIR/ir/
killall irexec;killall irxevent;
echo "";
echo "finished - Reboot needed: Click here to Restart Device";
exit 0 justboom/scripts/install_rotary_encoder.sh 0000777 0000000 0000000 00000003331 13757417277 020241 0 ustar root root #!/bin/bash
apt-get update
apt-get install wiringPi --yes --force-yes
# Connection details: http://theatticlight.net/posts/Reading-a-Rotary-Encoder-from-a-Raspberry-Pi/
# Sources Repository: https://github.com/alidaf/raspberryPi.git
######## Compile from source ########
# pushd /opt
# mkdir rotenc
# pushd /opt/rotenc
# git clone https://github.com/alidaf/raspberryPi.git
# pushd /opt/rotenc/raspberryPi/piRotEnc
# edit rotencPi.c: setenv("WIRINGPI_GPIOMEM", "1", 1);
# gcc piRotEnc.c alsaPi.c rotencPi.c -o piRotEnc -lwiringPi -lasound -lm -lpthread
# cp -f /opt/rotenc/raspberryPi/piRotEnc /opt/max2play/
####### Get Precompiled from Server ##########
wget -O /opt/max2play/cache/piRotEnc.tgz cdn.max2play.com/pi/piRotEnc.tgz
tar xzf /opt/max2play/cache/piRotEnc.tgz -C /opt/max2play/
if [ ! "$(grep -a 'ROTARY_ENCODER_OPTIONS' /opt/max2play/options.conf)" ]; then
echo "ROTARY_ENCODER_OPTIONS=-c hw:0 -m Digital --gpiorot=23,24 --vol=60" >> /opt/max2play/options.conf
fi
if [ ! "$(grep -a 'ROTARY_ENCODER_AUTOSTART' /etc/rc.local)" ]; then
sed -i "s@^exit 0@if [ \"\$(grep -a 'ROTARY_ENCODER_AUTOSTART=1' /opt/max2play/autostart.conf)\" ]; then \n ROTARY_ENCODER_OPTIONS=\$(grep -a \"ROTARY_ENCODER_OPTIONS\" /opt/max2play/options.conf | sed -n -e 's/^[A-Z_]*\\=//p')\n /opt/max2play/piRotEnc/piRotEnc \$ROTARY_ENCODER_OPTIONS \&\nfi\nexit 0@" /etc/rc.local
fi
# Optional Disable On-Board Sound to let the Encoder get the Right Soundcard for Debian Jessie Raspberry Pi
sed -i 's/^dtparam=audio=on/dtparam=audio=off/' /boot/config.txt
echo "finished - Reboot needed: Click here to Restart Device";
exit 0 justboom/scripts/images/ 0000755 0000000 0000000 00000000000 14523372474 014365 5 ustar root root justboom/scripts/images/justboom-logo-450_k.jpg 0000644 0000000 0000000 00000005770 13757417277 020531 0 ustar root root Exif II* Ducky ? +http://ns.adobe.com/xap/1.0/