Skip to content

A Go application to retrieve and parse data from LYWSD03MMC thermometers over Bluetooth Low Energy (BLE), supporting BTHome V2 format and compatible with custom firmware like ATC_MiThermometer.

Notifications You must be signed in to change notification settings

Bastien2203/LYWSD03MMC-themometer-scan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LYWSD03MMC-themometer-scan

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.

Getting Started

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

Http Endpoints

/readings : Retrieve last data from sensor

Format:

{
  "temperature": "25.5",
  "humidity": "45"
}

About

A Go application to retrieve and parse data from LYWSD03MMC thermometers over Bluetooth Low Energy (BLE), supporting BTHome V2 format and compatible with custom firmware like ATC_MiThermometer.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published