Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 520 Bytes

File metadata and controls

24 lines (19 loc) · 520 Bytes

Use the CLI

Create the mqtt server

make mosquitto-up

Start up the up

Open another terminal and run the app with the simple config

 go run ./cmd/calibrator/main.go --path test/input/simple_config.yml

Check that the calibration is working by mimic the sensor behavior using the cli.

Publish to the sensor topic

go run ./cmd/cli/main.go --t 17.0

Publish to the thermostat topic

go run ./cmd/cli/main.go --c 0.0 --th 16.33 --topic topic/thermostat --isth true