Andreas Demmelbauer f1d7f8f819 | há 4 anos | |
---|---|---|
music | há 5 anos | |
project-images | há 5 anos | |
remotes | há 4 anos | |
.gitignore | há 5 anos | |
README.md | há 5 anos | |
apt-installed.list | há 5 anos | |
disco.service | há 5 anos | |
discobert.py | há 4 anos | |
lircrc | há 5 anos | |
mpd.conf | há 5 anos | |
oe1journal.py | há 4 anos | |
requirements.txt | há 4 anos | |
smb.conf | há 5 anos | |
webtest.py | há 5 anos |
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-lirc python3-rpi.gpio nginx
maybe also: wiringpi espeak mpc
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
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