Easy-controllable (WebIF) Raspberry Pi MusicBox with wake-up alarm clock & GoogleTTS/{any submitted audio file} notifications

nuclearmeltd0wn101 d9c991e930 181013 7 months ago
static 9ff13303de 180614 11 months ago
tpl d9c991e930 181013 7 months ago
1-musicbox.cron 609871b185 180617 11 months ago
LICENSE 14c97bc357 Initial commit 11 months ago
README.md d9c991e930 181013 7 months ago
alarm.py d9c991e930 181013 7 months ago
buttond.py 66e34887ce 180616 11 months ago
deploy.sh 38050e7abc Update 'deploy.sh' 11 months ago
notification_alert.mp3 66e34887ce 180616 11 months ago
smb.py 0d3fead6ee 180613 11 months ago
util.py 66e34887ce 180616 11 months ago
web.py d9c991e930 181013 7 months ago
web_start.sh 0d3fead6ee 180613 11 months ago
web_stop.sh 0d3fead6ee 180613 11 months ago

README.md

Raspberry Pi MusicBox

  • MPD MusicBox with yMPD web interface (on 81 port)
  • AirPlay Receiver (Shairport-Sync)
  • Cron-based wake-up alarm with your own randomized melodies.
  • Broadcast notifications (play file from POST request, from URL, or even read your text via Google TTS)
  • Easy controllable (alarms, system settings, broadcasts) via MusicBox WebIf
  • WebAPI support
  • Lightweight
  • Easy deployable

Installation

Manual (Arch Linux)

  1. Install Arch Linux ARM to your RPi from scratch
  2. Configure your network manually
  3. curl https://git.nm101.tk/nuclearmeltd0wn101/rpi-musicbox/raw/master/deploy.sh | bash (as root)
  4. Patiently wait until device reboot
  5. Open http://MusicBox/ in your browser (if your router does not support mDNS, connect by RPi`s IP)

Manual (any other distro)

  1. Install omxplayer, mpc, mpd, moc, cron, shairport-sync, samba, smbclient, gcc, tmux, git
  2. git clone https://git.nm101.tk/nuclearmeltd0wn101/RPi-MusicBox /opt/musicbox
  3. mv /opt/musicbox/1-musicbox.cron /etc/cron.d/musicbox.cron
  4. systemctl enable cron or how does it look in your distro.. All you need in this step is enable cron daemon autostart.
  5. mkdir -p /mnt/music/Alarms
  6. cp /opt/musicbox/notification_alarm.mp3 /mnt/music/
  7. Reboot

Screenshots

Desktop

Alarm Schedule Alarm Melodies Device Settings (1) Device Settings (2) Broadcast (1) Broadcast (2)

Mobile

Alarm Schedule Alarm Schedule (timepicker) Alarm Melodies Device Settings Broadcast

Credits