Andreas Demmelbauer ba526deb8c | 1年前 | |
---|---|---|
music | 5 年前 | |
project-images | 5 年前 | |
remotes | 4 年前 | |
.gitignore | 5 年前 | |
README.md | 1年前 | |
apt-installed.list | 5 年前 | |
disco.service | 5 年前 | |
discobert.py | 1年前 | |
lircrc | 5 年前 | |
mpd.conf | 5 年前 | |
oe1journal.py | 4 年前 | |
requirements.txt | 1年前 | |
smb.conf | 5 年前 | |
webtest.py | 5 年前 |
Discobert is a multimedial toilet experience device
The Setup is pretty custom. It includes:
Use Debian, install apt dependencies
sudo apt install git samba mpd libttspico-utils python3-pip python3-rpi.gpio nginx lirc mpd python3-mpd
maybe also: wiringpi espeak mpc
wiringpi:
http://wiringpi.com/wiringpi-updated-to-2-52-for-the-raspberry-pi-4b/
Clone this repo
cd /home/pi
git clone https://git.notice.at/redplanet/discobert.git
cd discobert
configure mpd
sudo cp mpd.conf /etc/mpd.conf
configure samba share
sudo cp smb.conf /etc/samba/smb.conf
install pip modules
pip3 install -r requirements.txt
add systemd service
sudo cp disco.service /lib/systemd/system/disco.service
sudo systemctl daemon-reload
Use irrecord
to create a lirc Config file and copy the generated file in
/etc/lirc/lircd.conf.d/your-remotes-name.lircd.conf
You can find and edit the used keycodes: ~/discobert/lircrc
My remote:
sudo cp Sony-RM-V33E.lircd.conf /etc/lirc/lircd.conf.d/
download udmx-pyusb:
Clone https://github.com/dhocker/udmx-pyusb
... and add user permissions for udmx device
sudo cp 98-uDMX-usb.rules /etc/udev/rules.d