Use an RPi + Accelerometer + Websockets to control a Phaser game using a physical board.
Add the following to .config/wayfire.ini
. (The read -n 1 -s
bit is to keep the window open. Thank to dgonzalez )
[autostart]
term = lxterminal -e "cd ~/rpi-balance-game/; ./begin.sh; read -n 1 -s"
chromium = chromium-browser http://localhost:3000 --kiosk --noerrdialogs --disable-infobars --no-first-run --ozone-platform=wayland --start-maximized --hide-scrollbars
screensaver = false
Nearly all the accelerometer connection material comes from the Measuring Acceleration with ADXL345 Accelerometer & Raspberry Pi tutorial.
Kiosk mode setup (above) thanks to the official Kiosk Mode Tutorial