Skip to content

Management of Cacophony Project thermal cameras over local networks

License

Notifications You must be signed in to change notification settings

TheCacophonyProject/management-interface

Repository files navigation

management-interface

This is a small web server which supports for management and configuration of Cacophononator devices from the The Cacophony Project.

Installing packr (will be done by make)

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.

Building

Building will install packr for you. Make sure $GOPATH/bin is 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.

Running on a Cacophonator

  • 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

Releases

Releases are built using TravisCI. To create a release visit the repository on Github and then follow our general instructions for creating a release.

For more about the mechanics of how releases work, see .travis.yml and .goreleaser.yml.