Internet of Things (IoT) home control unit implemented in golang with grpc and protobuf.
548
Collection of different IoT services implemented in golang with the help of gRPC and Protobuf.
The first implemented service allows the control of Philips Hue lights if they are in the same network or if the Philips Hub API is accessible.
# Build server and client.
# Install server and client to ${GOPATH}/bin
make all
# Install server and client to ${GOPATH}/bin
make install
# Build and start docker image
make docker-build docker-run
# Clean generate protobuf and binaries
make clean
# Start local server with TLS
go run server/main.go -tls
# Blink lights that are part of group 2 via homecontrol service hosted
# locally.
go run client/main.go -host 127.0.0.1:50051 -tls -cmd blink -group 2
# Dockerized client example with service hosted under 192.168.1.2
docker run -it --rm networld/homecontrol /client -host 192.168.1.2:50051 -cmd blink
# Dockerized client example with service hosted under 192.168.1.2. TLS support
make tls
docker run -it --rm --name homecontrol -v ~/.homecontrol:/root/.homecontrol networld/homecontrol /client -host 192.168.1.2:50051 -tls -cmd blink
docker exec -it homecontrol /client -tls
Content type
Image
Digest
Size
11 MB
Last updated
over 6 years ago
docker pull networld/homecontrol