GOOS="linux" GOARCH="arm" GOARM=6 golang build
scp garageServer [email protected]:~/garageServer
ssh...
./garageServer
Note: I should perhaps attempt to figure out the best way to manage this service on the Pi long term, and maybe make the output a container.
- Establish a connection over SPI, reading in the tilt sensor
- Create a GET endpoint that will share the state of the sensor
- Create PUT endpoint that will allow updating of the garage doors state (should this be blocking?)