mDNS
drivers need to be installed on system running go server code. They are used to discover esp
Connects to esp running in network(can be anything else with http endpoints).
Temperature is taken every 5 seconds.
Go code uses go modules so go version of 1.11 or higher is required.
- prod mode, on raspberry pi
go run main.go -type=pi
- mock mode, mocks connections to esp
go run main.go -type=mock
UI is written in react and can be built with following command:
webpack --progress
- Nice ui
- error handling
- finish recipes
Binary contains static assets loaded through https://github.com/rakyll/statik
install
go get github.com/rakyll/statik
npm i --prefix web-ui
npm run build --prefix web-ui
statik -f -src=web-ui/build