Skip to content

IoT - lights trigger

  • source: github.com:mixicz/iot-service.git / src/lights-trigger

cross platform build

cd docker/lights-trigger
env GOOS=linux GOARCH=arm64 go build ../../src/lights-trigger.go
docker build --platform linux/arm64/v8 -t mixi/lights-trigger:v0.1.4-arm64 ./
docker push mixi/lights-trigger:v0.1.4-arm64

debug

kubectl port-forward service/mosquitto 1883
env MQTT_CONNECT_STRING="tcp://localhost:1883" LOCATION=schodiste MQTT_CLIENT_ID=lights-trigger-test ./lights-trigger