/garageHttp

Golang http server to run on an embedded garage door opener

Primary LanguageGroovy

To compile and run on for Raspberry Pi Zero W

GOOS="linux" GOARCH="arm" GOARM=6 golang build

scp garageServer pi@192.168.1.22:~/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.

Todo

  • 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?)

Resources

SmartThings LAN connected docs

Pi pinout

Pi power reqs

Pi GPIO library

Relay overview

Garage door wiring