Simple web interface to control a single GPIO pin on the raspberry pi.
Change the PIN
constant defined on the main.go
file to control which pin is used.
- Install the react toolchain (node, yarn, etc)
- Run
cd client && yarn build
- Install Statik
- run
make
Copy configs/piswitch.service
to /lib/systemd/system/piswitch.service
and
run sudo systemctl enable piswitch.service