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-disruptive

v1.1.0

Published

Apple HomeKit support for Disruptive Technologies sensors.

Downloads

52

Readme

Disruptive Cloud Homebridge

Installation

Homebridge and any homebridge plugins should be downloaded globally using the -g flag.

sudo npm install -g homebridge
sudo npm install -g homebridge-disruptive

If you don't have Homebridge installed, check the repository for detailed setup instructions.

Dynamic Accessories:

Homebridge will request all devices from the specified project on startup, and dynamically add them as accessories in HomeKit. A server will be set up, and will listen to specified the specified port for Sensor Events from Data Connector.

You will have to manually add a Data Connector on the Disruptive Cloud dashboard.

Note: Newly added devices will not be requested runtime. To update accessory list with new devices, restart Homebridge.

Example config.json:

{
  "platforms": [
    {
      "platform": "DisruptivePlatform",
      "projectId": "<Project ID from Disruptive Cloud>",
      "serviceAccount": "<Service Account Email>",
      "keyId": "<Service Account Key ID>",
      "keySecret": "<Key Secret generated on Service Account creation>",
      "port": <Listening for Sensor Events on port>
    }
  ]
}

Optional config:

- "excludedTypes": ["touch", "temperature", "humidity", "proximity"]
- "excludeSensor": ["projects/<Project ID>/devices/<Device ID>", ...]

BalenaCloud

  • Download the balenaCloud directory from the repository: .
  • Push to your balenaCloud device using Balena CLI:
    • balena push <DeviceName> (--emulated)
    • For more information, visit https://www.balena.io/docs/learn/deploy/deployment
  • Enable Public URL on the balena dashboard
  • Add Public URL to Data Connector on Disruptive Cloud Studio:
    • https://<PUBLIC DEVICE URL>/event
  • Open http://<PUBLIC DEVICE URL>:8080 in a web browser.
    • Note: port 8080 is not open for https.
  • Log in to the Configuration User Interface with the credentials:
    • Username: admin
    • Password: admin
  • Add plugin homebridge-disruptive on the plugins tab, and add config.

The docker images linked below are for arm32v6 architecture. If running on another architecture, change the docker-compose.yml file and the Dockerfile in the nginx directory.