Simple tool for collecting OwnTracks location messages from an MQTT broker and store them into a database.
Run go-bindata -fs -pkg static .
in the static directory
CGO_ENABLED=1 GOOS=linux GOARCH=arm GOARM=7 go build github.com/dfleischhacker/locationhistory-collector
- Install musl cross compiler tools:
brew install FiloSottile/musl-cross/musl-cross
CC=x86_64-linux-musl-gcc CXX=x86_64-linux-musl-g++ GOARCH=amd64 GOOS=linux CGO_ENABLED=1 go build -ldflags "-linkmode external -extldflags -static"