npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

homebridge-superlights

v1.0.2

Published

Homebridge plugin that exposes the Superlights bluetooth bulb as an accessory

Downloads

3

Readme

Homebridge-superlights

Plugin for Homebridge to support the Superlights/Jasgood Bluetooth light bulbs.

Installation

  1. Install Homebridge: npm install -g --unsafe-perm homebridge
  2. Install Noble: npm install -g noble
  3. Install homebridge-superlights: npm install -g homebridge-superlights
  4. Grant Node access to control BluetoothLE discovery: sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
  5. Configure the plugin

See the Homebridge installation section for more details.

Configuration

The configuration for this plugin is relatively straightforward; simply add the Bluetooth address of each lightbulb required as a separate accessory in the Homebridge config.json file:

{
  "bridge": {
    "name": "Raspberry Pi Zero",
    "username": "12:34:56:78:90:AB",
    "port": 51826,
    "pin": "012-34-567"
  },
  "description": "Raspberry Pi Zero Homebridge",

  "accessories": [
    {
      "accessory": "Superlight",
      "name": "Main Bedroom Light",
      "address": "ff:ee:dd:cc:bb:aa",
      "minBrightness": 10
    }
  ]
}

In the above:

  • "bridge" is your standard Homebridge configuration
  • "accessory" must be "Superlight"
  • "address" is the Bluetooth identifier of the bulb
  • "name" is a friendly name for the bulb, used by Homekit
  • "minBrightness" is an optional parameter to limit the minimum brightness sent to the bulb. Some bulbs turn off completely at low (<10%) brightness levels, so setting this parameter will adjust the requested brightness into the "settable" range.

Changelog

0.0.1

  • Initial version

1.0.0

  • Fixed issue where queries before the bulb is connected would cause a crash
  • Fixed issue where we would continue scanning for devices after the bulb is found
  • Fixed issue where incorrect values were returned from GET calls on characteristics
  • Fixed warning about possible memory leak due to multiple 'read' listeners
  • Added more useful debug information in logging messages
  • Added missing instruction to README regarding Node permissions for BLE access

1.0.1

  • Minor revision to remove testing script from package

1.0.2

  • Add config parameter for minimum bulb brightness
  • Minor text fixes