You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Andreas Demmelbauer 1c6268b764 update readme преди 5 години
music add music directory and playlist directories (without music) преди 5 години
.gitignore udate readme, update gitignore преди 5 години
README.md update readme преди 5 години
apt-installed.list installed packages преди 5 години
disco.service added systemd service file, added door state, edited lircrc преди 5 години
discobert.py add gitignore usw преди 5 години
dmxtest.py initial commit преди 5 години
lircrc added systemd service file, added door state, edited lircrc преди 5 години
mpd-test.py a lot преди 5 години
mpd.conf add mpd config преди 5 години
playmusic.py initial commit преди 5 години
requirements.txt installed packages преди 5 години
smb.conf add samba config, add install instructions преди 5 години

README.md

Discobert is a multimedial toilet experience device

The Setup is pretty custom. It includes:

  • Raspberry Pi
  • Relay Board for switching 220V Devices
    • Relay #1:
      • Light Bulb
    • Relay #3:
      • DMX Light
      • Disco Ball + Motor
  • PIR sensor
  • Door open/closed Sensor
  • IR Receiver
  • USB to DMX (Anyma uDMX interface)
    • A random DMX Spot
  • A random remote

Install

Use Debian, install apt dependencies

sudo apt install git samba mpd libttspico-utils python3-pip python3-lirc python3-rpi.gpio

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

Setting up a random remote

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

DMX not working?

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