Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Andreas Demmelbauer ee5109c1ed Merge branch 'master' of git.notice.at:redplanet/discobert há 5 anos
music add music directory and playlist directories (without music) há 5 anos
project-images add images há 5 anos
remotes fix remote stuff há 5 anos
.gitignore udate readme, update gitignore há 5 anos
README.md Merge branch 'master' of git.notice.at:redplanet/discobert há 5 anos
apt-installed.list installed packages há 5 anos
disco.service added systemd service file, added door state, edited lircrc há 5 anos
discobert.py Merge branch 'master' of git.notice.at:redplanet/discobert há 5 anos
lircrc fix remote stuff há 5 anos
mpd.conf add mpd config há 5 anos
requirements.txt installed packages há 5 anos
smb.conf add samba config, add install instructions há 5 anos
webtest.py clean up, add webserver há 5 anos

README.md

Discobert is a multimedial toilet experience device

The Setup is pretty custom. It includes:

  • Raspberry Pi 3b+
  • 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
  • some speakers

Discobert Work in Progress

Discobert Work in Progress

Install

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

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