Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
remotebuzzer: adjusted install-raspian.sh and faq section
Browse files Browse the repository at this point in the history
Change-Id: Ib5704a9212beaaaa3eef44a27a451fd3ea6fab19
  • Loading branch information
jacques42 authored and andi34 committed Mar 1, 2021
1 parent 238abf3 commit 7a4f916
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 5 additions & 3 deletions faq/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,11 @@ sudo crontab -e
### Hardware Button for WLAN connected screen (i.e. iPad) - Remote Buzzer Server
This feature enables multiple GPIO pin connected hardware buttons (buzzer) in a setup where the display / screen is connected via WLAN / network to the photobooth webserver (e.g. iPad). Configuration takes place in the admin settings - Remote Buzzer Server area.

**Important: You must make sure to set the IP address of the Photobooth web server in the admin settings - section "General"**. The loopback IP (127.0.0.1) does not work, it has to be the exact IP address of the Photobooth web server, to which the remote display connects to.
Troubleshooting / Debugging:

Debugging: switch on dev settings for server logs to be written to the "tmp" directory of the photobooth installation (i.e. `data/tmp/io_server.log`). Clients will log server communication information to the browser console.
- **Important: You must make sure to set the IP address of the Photobooth web server in the admin settings - section "General"**. The loopback IP (127.0.0.1) does not work, it has to be the exact IP address of the Photobooth web server, to which the remote display connects to.
- Switch on dev settings for server logs to be written to the "tmp" directory of the photobooth installation (i.e. `data/tmp/remotebuzzer_server.log`). Clients will log server communication information to the browser console.
- If hardware buttons do not trigger, GPIO interrupts might be disabled. Check file `/boot/config.txt` and remove / disable the following overlay `dtoverlay=gpio-no-irq` to enable interrupts for GPIOs.

***************
Hardware Button (Buzzer)
Expand Down Expand Up @@ -179,7 +181,7 @@ The trigger server controls and coordinates sending commands via socket.io to th
- Commands: `start-picture`, `start-collage`
- Response: `completed` will be emitted to the client, once photobooth finished the task

This functionality is experimental and largely untested.
This functionality is experimental and largely untested. Not sure if there is a use-case but if you have one, happy to learn about it.

<hr>

Expand Down
7 changes: 5 additions & 2 deletions install-raspbian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,11 @@ fi
info "### Remote Buzzer Feature"
info "### Configure Raspberry PI GPIOs for Photobooth - please reboot in order use the Remote Buzzer Feature"
# remove old artifacts from node-rpio library, if there was
rm -f /etc/udev/rules.d/20-photobooth-gpiomem.rules
sed -i '/dtoverlay=gpio-no-irq/d' /boot/config.txt
if [ -f '/etc/udev/rules.d/20-photobooth-gpiomem.rules' ]; then
info "### Remotebuzzer switched from node-rpio to onoff library. We detected an old remotebuzzer installation and will remove artifacts"
rm -f /etc/udev/rules.d/20-photobooth-gpiomem.rules
sed -i '/dtoverlay=gpio-no-irq/d' /boot/config.txt
fi
# add configuration required for onoff library
usermod -a -G gpio www-data
sed -i '/Photobooth/,/Photobooth End/d' /boot/config.txt
Expand Down

0 comments on commit 7a4f916

Please sign in to comment.