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-hatch-rest-bluetooth

v5.0.1

Published

Homebridge plugin for Hatch Rest bluetooth sound machine

Downloads

42

Readme

homebridge-hatch-rest-bluetooth

This plugin is specifically designed for the original Bluetooth Rest sound machine. If you have a newer WiFi model, please see the homebridge-hatch-baby-rest plugin

I no longer personally use the Bluetooth Rest as the WiFi models have more features and are more reliable. As such, this plugin is strictly in maintenance mode. PRs welcome from anyone willing to make improvements.

Installation Prerequisites

Before installing, ensure your environment is configured to install the Bluetooth binaries used by this plugin. See the @abandonware/noble docs for more platform-specific steps.

The original Rest night light uses Bluetooth to control the light and change settings. Because of this restriction, you must specify the name and mac address for each light that you would like to add to HomeKit. Please note that this plugin will only be able to connect to the Rest night light if run on a device with Bluetooth LE (version 4+). This includes the Raspberry Pi 3 b+ and newer, as well as most modern laptops. Please check your device specifications to ensure it supports Bluetooth LE before trying to run the plugin or opening GitHub issues.

Easy Setup

For the best experience, install and set up this plugin using homebridge-config-ui-x. This provides a user interface in which you can enter your account and light information without modifying your config file manually.

Manual Installation

npm i -g homebridge-hatch-baby-rest

Configuration

To add a Rest night light to your homebridge setup, first open the Hatch app on your smartphone or tablet. In the device settings for your light, find the MAC address. In the example below, it is 12:34:56:78:90:AB.

{
  "platforms": [
    {
      "platform": "HatchBabyRest",
      "restLights": [
        {
          "name": "Kid's Night Light",
          "macAddress": "12:34:56:78:90:AB"
        }
      ]
    }
  ]
}

Bluetooth on Linux (Raspberry Pi)

If the plugin is unable to connect to your bluetooth Rest and you are running homebridge on a Raspberry Pi or similar verion of linux, try running the following commands and then restarting homebridge

sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)