1
0
Fork 0
Use buttons connected to a Rasberry Pi GPIO to trigger Hog 4 comment macros.
Go to file
Kevin Matz 257b6f213b initial comit 2019-11-01 10:34:57 -04:00
baconscript@c1a7ad48b2 initial comit 2019-11-01 10:34:57 -04:00
.gitignore initial comit 2019-11-01 10:34:57 -04:00
.gitmodules initial comit 2019-11-01 10:34:57 -04:00
LICENSE.md initial comit 2019-11-01 10:34:57 -04:00
README.md initial comit 2019-11-01 10:34:57 -04:00
buttond.py initial comit 2019-11-01 10:34:57 -04:00
buttons.cfg initial comit 2019-11-01 10:34:57 -04:00
buttons.service initial comit 2019-11-01 10:34:57 -04:00
server.cfg initial comit 2019-11-01 10:34:57 -04:00

README.md

onsetswitch

Use buttons connected to a Rasberry Pi GPIO to trigger Hog 4 comment macros.

This readme assumes that you have:

  1. a working and updated Rasberry Pi,
  2. with ssh access already set up,
  3. and a static IP address on HogNet.

Beginner users will also want:

  • Internet access on HogNet during setup.

Installing

cd /home/pi
git clone https://git.company235.com/kevin/onsetswitch.git
cd onsetswitch

Configuring

Input

Connect one side of the button to ground, the other to a GPIO pin.

Configure the buttons:

nano buttons.cfg

Output

Configure the Hog4 OSC server:

nano server.cfg

Enabling on Boot

Link the onsetswitch service file to systemd:

sudo ln -s buttons.service /lib/systemd/system/buttons.service

Enable the service at startup:

sudo systemctl daemon-reload
sudo systemctl enable buttons.service

Reboot the Rasberry Pi:

sudo reboot