This is a small web server which supports for management and configuration of Cacophononator devices from the The Cacophony Project.
This project uses the packr tool to embed static resources (e.g. CSS, JS and image files) into the resulting Go binary.
To install packr from source, run:
go get -u github.com/gobuffalo/packr/packr
Make sure $GOPATH/bin is in your $PATH.
Alternatively download a stable prebuilt release of the packr tool and install it into a directory in your $PATH.
To build the management server for ARM (to run on a Raspberry Pi):
make
To build the management server to run on your development machine:
make build
For either case the resulting executable is managementd
.
- Build for ARM (run
make
) - Copy to the Pi:
scp managementd pi@[host]
- SSH to Pi:
ssh pi@[host]
- Stop the running management server:
sudo systemctl stop cacophonator-management
- Run the development version:
sudo ./managementd