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

nefit-easy-core

v4.0.3

Published

Nefit Easy™ core library

Downloads

89

Readme

Nefit Easy™ core

Core functionality to implementation communications with Nefit/Bosch backend.

Unless you're implementing a client yourself, this library is probably not what you're looking for.

Installation

$ npm i nefit-easy-core

Synopsis

The Nefit Easy™ smart thermostat is sold in The Netherlands by Nefit, a company owned by Robert Bosch GmbH.

The Easy can be controlled through apps for Android and iOS, which communicate with a Bosch-hosted backend using the XMPP protocol. This library aims to implement the communication protocol used between the apps and the backend.

Devices related to the Nefit Easy, like the Worcester Wave, the Junkers Control, the Buderus Logamatic TC100 and the Bosch Greenstar CT100, are probably also supported.

Installation

This library requires Node.js 4.0.0 or later.

Install it as a Node module

$ npm install nefit-easy-core

Checkout the repository (in case you want to run the example code)

$ git clone https://github.com/robertklep/nefit-easy-core
$ cd nefit-easy-core
$ npm install

Other/related projects

  • nefit-easy-http-server: an HTTP-to-XMPP bridge that allow projects that can't implement this library directly (for instance, if they aren't written in Javascript) to communicate, using an HTTP-based interface, with the Nefit Easy
  • nefit-easy-cli: a command line interface tool to communicate with the Nefit Easy
  • bosch-xmpp: a similar library that can be used to communicate with other Bosch devices (it supports the Nefit Easy, but also IVT, Junkers Bosch, Buderus and probably any Bosch EasyRemote-compatible controller)
  • node-red-contrib-nefit-easy2: a Node RED node to interact with the Nefit Easy (fork of node-red-contrib-nefit-easy, which doesn't work anymore and its author has abandoned the project)

Disclaimer

The implementation of this library is based on reverse-engineering the communications between the apps and the backend, plus various other bits and pieces of information. It is not based on any official information given out by Nefit/Bosch, and therefore there are no guarantees whatsoever regarding the safety of your devices and/or their settings, or the accuracy of the information provided.

API

General information

All (asynchronous) methods return a promise that resolves to a plain object.

nefit-easy-core uses debug to provide some debug logging:

$ env DEBUG=nefit-easy-core node your-app.js

Constructor

const Client = require('nefit-easy-core');
const client = Client({
  serialNumber   : NEFIT_SERIAL_NUMBER,
  accessKey      : NEFIT_ACCESS_KEY,
  password       : NEFIT_PASSWORD,
[ retryTimeout   : Number ]
[ maxRetries     : Number ]
});

A request is retried a few times (because the backend can only handle one request at a time, requests may get dropped when more than one client is active). The default is to retry every 2000 milliseconds (retryTimeout) for a maximum of 15 times (maxRetries).

Reading data

client.get(uri : String) : Promise

This allows retrieving specific URI's from the backend.

A non-exhaustive list of URI's can be found here. And @marcelrv has done a great job of documenting a lot of endpoints, the results of which can be found here.

Writing data

client.put(uri : String, data) : Promise

This allows writing values to specific URI's.