diff --git a/faq/faq.md b/faq/faq.md index 9a01f1035..bada7b735 100644 --- a/faq/faq.md +++ b/faq/faq.md @@ -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) @@ -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.
diff --git a/install-raspbian.sh b/install-raspbian.sh index 67f973651..95da7afed 100755 --- a/install-raspbian.sh +++ b/install-raspbian.sh @@ -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