https://github.com/aluedtke7/brifit_demo
A Golang test program to read temperature and humidity from Brifit Bluetooth sensor
https://github.com/aluedtke7/brifit_demo
bluetooth brifit brifit-bluetooth-thermometer go golang ws02
Last synced: 2 months ago
JSON representation
A Golang test program to read temperature and humidity from Brifit Bluetooth sensor
- Host: GitHub
- URL: https://github.com/aluedtke7/brifit_demo
- Owner: aluedtke7
- License: mit
- Created: 2025-03-18T16:09:49.000Z (2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-18T17:26:12.000Z (2 months ago)
- Last Synced: 2025-03-18T18:37:13.033Z (2 months ago)
- Topics: bluetooth, brifit, brifit-bluetooth-thermometer, go, golang, ws02
- Language: Go
- Homepage:
- Size: 727 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Demo to read temperature and humidity from a Brifit Bluetooth sensor
## Overview
This little GO program will print the temperature and humidity of a Brifit Bluetooth sensor.
I bought a pair on Amazon for 20 Euros.Output
````
2025/03/18 17:29:48 Inside sensor: AA:BB:CC:DD:EE:F0 - 0.000000 - 0.000000
2025/03/18 17:29:48 Outside sensor: AA:BB:CC:DD:EE:F1 - 0.000000 - 0.000000
2025/03/18 17:29:48 Inside Temp: 24.1°C - Hum: 29.6% - Bat: 3030 - RSSI: -61 - Uptime: 2d, 6h, 15m
2025/03/18 17:29:53 Outside Temp: 23.6°C - Hum: 28.2% - Bat: 3060 - RSSI: -53 - Uptime: 2d, 0h, 43m
````The battery level is the 16-bit value without a conversion. I think it could be mV (milli Volt). RSSI is showing the
signal strength and the uptime shows the converted seconds. See comments in source code for details.The sensors I bought have the model no. WS02, but other types will probably work the same.

## Acknowledgements
The formula to convert the 16-bit value of temperature and humidity is from the github
repository [of user iskalchev](https://github.com/iskalchev/ThermoBeacon).