1.0.15 • Published 2 years ago

govee-bt-client v1.0.15

Weekly downloads
72
License
MIT
Repository
-
Last release
2 years ago

Govee H5xxx Bluetooth Client

npm version

A library to listen for the BLE (Bluetooth Low Energy) broadcasts from Govee Thermometer Hygrometer devices. Requires a compatible bluetooth module and operating system (see prepequisites).

Supported devices:

  • H5072
  • H5074
  • H5075
  • H5100
  • H5101
  • H5102
  • H5179

Installation

npm install govee-bt-client

API

  • startDiscovery: (callback: (reading: GoveeReading) => void)
    • Starts listening to broadcasts and pass decrypted data into the callback function.
  • stopDiscovery()
    • Stops listening to broadcasts from Bluetooth
  • debug: (on: boolean)
    • Function to enable debugging of bluetooth advertisements and peripherals.

Example

import { startDiscovery, stopDiscovery, debug } from "./index";

debug(true);

console.log("=== start discovery");

startDiscovery((reading) => {
    console.log(reading);
});

setTimeout(async () => {
    await stopDiscovery();
    console.log("=== stop discovery");
}, 30000);

Credits

Credits and thanks to

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago