Socket
Socket
Sign inDemoInstall

govee-bt-client

Package Overview
Dependencies
2
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    govee-bt-client

Govee H5xxx Thermometer Hygrometer Bluetooth Client


Version published
Weekly downloads
161
decreased by-22.22%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 18 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc