carbon
is an Arduino C++11 sketch for temperature, humidity, and CO2 measurement device ZG01 (MasterKit MT8060). It provides a simple program for MCU ESP8266 for collecting and sending metrics to the MQTT broker. This project is a part of health measurement system for office workers.
- WPA2 PSK support
- MQTT authentication
- MQTT TLS encryption
- mDNS configuration (ZeroConf)
- HTTP API for management
- OTA upgrades support
carbon
sends MQTT message in the following format:
/devices/MT8060/<name>/<metrics> {value}
Read configuration from device.
curl -sL http://esp-50-02-91-48-02-68.local/config/read
Set up device configuration. It works unless device rebooted.
curl -X POST http://esp-50-02-91-48-02-68.local/config/apply -d '{"device_id": "red-room"}'
Save settings permanently.
curl -X POST http://esp-50-02-91-48-02-68.local/config/commit
Released under the MIT license (see LICENSE)