Retrieve LYWSD03MMC thermometer data using Bluetooth Low Energy (BLE) and parse it into a readable format. It works with custom firmware like ATC_MiThermometer (https://github.com/pvvx/ATC_MiThermometer).
For now it supports only the BTHome V2 advertising format.
Enter the thermometer MAC address in the .env file. Enter desired http port in the .env file. (.env.default is provided as a template)
Run the application:
go run main.go
/readings
: Retrieve last data from sensor
Format:
{
"temperature": "25.5",
"humidity": "45"
}