Installing Michigan Sensor Code on Beaglebone Black.¶
This page is not complete.
Mostly follow the instructions at https://github.com/terraswarm/urban-heartbeat-kit/blob/master/docs/gateway-setup-scratch-common.md. Ignore everything having to do with Edison.
There are also instructions at https://github.com/terraswarm/urban-heartbeat-kit/blob/master/docs/BBB-gateway-setup-from-scratch.md, but you can ignore most of them unless you are using the Michigan radios.
It appears that Mosquitto will not install from the Debian packages. Get it in source and apply this patch:
[~/src/mosquitto] git diff diff --git a/config.mk b/config.mk index 71f17e5..8061b56 100644 --- a/config.mk +++ b/config.mk @@ -65,7 +65,7 @@ WITH_SRV:=yes WITH_UUID:=yes # Build with websockets support on the broker. -WITH_WEBSOCKETS:=no +WITH_WEBSOCKETS:=yes # Use elliptic keys in broker WITH_EC:=yes @@ -249,7 +249,7 @@ ifeq ($(WITH_DOCS),yes) endif INSTALL?=install -prefix=/usr/local +prefix=/usr mandir=${prefix}/share/man localedir=${prefix}/share/locale STRIP?=strip