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

node-hivehome

v0.1.0

Published

An (_unofficial_) NodeJS SDK for [Hivehome](https://www.hivehome.com) smarthome products.

Downloads

1

Readme

node-Hivehome

An (unofficial) NodeJS SDK for Hivehome smarthome products.

This uses Hivehome's web API, which isn't officially designated for public consumption. Therefore, this may break randomly if the Hivehome team make breaking changes. Nevertheless, we'll try and fix things as fast as possible.

⚠️ This is still a WIP, and we're still working to expand the feature support for the range of Hivehome's smarthome platform. Start a discussion to help me identify which parts should be focused next.

TOC

Installation

$ yarn add node-hivehome # or, npm install node-hivehome

Documentation

The documentation can be viewed at https://tgallacher.github.io/node-hivehome/. This is auto-generated from the code, using typedoc.

Quick Start

As a quick example for getting going, with your email and password you can view the heating product(s) and their current state (e.g. temperature) by running the following:

// index.js
const { Hivehome } = require('node-hivehome');

(async ()=>{
  const hive = new Hivehome('[email protected]');
  // Note: Doesn't support MFA yet. Need to disable in Hivehome's App for first login.
  await hive.auth.login('supersecretpassword');

  const heatingData = await hive.heating.get();

  console.log(JSON.stringify(heatingData, null, 2));
})()

Once installed, and with the above script, running:

node index.js

should print out the current state of all Hivehome heating product(s) registered to the account used for logging in.

TODO

  • [ ] Add support for MFA flow
  • [ ] Add support for devices
  • [x] Add support for heating products (excl. trvs)
  • [ ] Add support for light products
  • [ ] Add support for camera products
  • [ ] Add support for sensor products
  • [ ] Add support for plug products
  • [ ] Add support for shield products

Alternative(s)