Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-switchbot

Package Overview
Dependencies
Maintainers
2
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-switchbot - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

40

CHANGELOG.md

@@ -5,6 +5,12 @@ # Changelog

## [Version 1.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.1.0) (2021-10-26)
## [Version 1.1.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.1) (2021-11-02)
### Changes
- Change back from @node/noble to @abandonware/noble
## [Version 1.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.1.0) (2021-10-26)
### Changes
- Add Contact/Motion Sensor advertisement

@@ -14,3 +20,3 @@ - Add Humidifier advertisement

## [Version 1.0.8](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.8) (2021-09-30)
## [Version 1.0.8](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.8) (2021-09-30)

@@ -21,9 +27,9 @@ ### Changes

## [Version 1.0.7](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.7) (2021-09-24)
## [Version 1.0.7](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.7) (2021-09-24)
### Changes
- Change from @abandonware/noble to @homebridge/noble
- Change from @abandonware/noble to @node/noble
## [Version 1.0.6](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.6) (2021-08-29)
## [Version 1.0.6](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.6) (2021-08-29)

@@ -34,3 +40,3 @@ ### Changes

## [Version 1.0.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.5) (2021-08-04)
## [Version 1.0.5](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.5) (2021-08-04)

@@ -42,3 +48,3 @@ ### Changes

## [Version 1.0.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.4) (2021-08-03)
## [Version 1.0.4](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.4) (2021-08-03)

@@ -49,3 +55,3 @@ ### Changes

## [Version 1.0.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.3) (2021-07-30)
## [Version 1.0.3](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.3) (2021-07-30)

@@ -56,3 +62,3 @@ ### Changes

## [Version 1.0.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.2) (2021-07-29)
## [Version 1.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.2) (2021-07-29)

@@ -63,3 +69,3 @@ ### Changes

## [Version 1.0.1](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.1) (2021-07-29)
## [Version 1.0.1](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.1) (2021-07-29)

@@ -70,3 +76,3 @@ ### Changes

## [Version 1.0.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v1.0.0) (2021-01-21)
## [Version 1.0.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v1.0.0) (2021-01-21)

@@ -77,3 +83,3 @@ ### Changes

## [Version 0.2.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.2.0) (2020-11-05)
## [Version 0.2.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.2.0) (2020-11-05)

@@ -84,3 +90,3 @@ ### Changes

## [Version 0.1.0](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.1.0) (2020-10-28)
## [Version 0.1.0](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.1.0) (2020-10-28)

@@ -92,3 +98,3 @@ ### Changes

## [Version 0.0.5](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.5) (2020-02-19)
## [Version 0.0.5](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.5) (2020-02-19)

@@ -99,3 +105,3 @@ ### Changes

## [Version 0.0.4](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.4) (2020-02-11)
## [Version 0.0.4](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.4) (2020-02-11)

@@ -106,3 +112,3 @@ ### Changes

## [Version 0.0.3](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.3) (2020-02-10)
## [Version 0.0.3](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.3) (2020-02-10)

@@ -114,3 +120,3 @@ ### Changes

## [Version 0.0.2](https://github.com/OpenWonderLabs/homebridge-switchbot/releases/tag/v0.0.2) (2019-11-20)
## [Version 0.0.2](https://github.com/OpenWonderLabs/node-switchbot/releases/tag/v0.0.2) (2019-11-20)

@@ -117,0 +123,0 @@ ### Changes

@@ -30,3 +30,3 @@ 'use strict';

} else {
noble = require('@homebridge/noble');
noble = require('@abandonware/noble');
}

@@ -33,0 +33,0 @@

{
"name": "node-switchbot",
"version": "1.1.0",
"version": "1.1.1",
"description": "The node-switchbot is a Node.js module which allows you to move your Switchbot (Bot)'s arm and Switchbot Curtain(Curtain), also monitor the temperature/humidity from SwitchBot Thermometer & Hygrometer (Meter).",

@@ -37,3 +37,3 @@ "main": "./lib/switchbot.js",

"dependencies": {
"@homebridge/noble": "^1.9.3"
"@abandonware/noble": "^1.9.2-15"
},

@@ -40,0 +40,0 @@ "devDependencies": {

@@ -63,3 +63,3 @@ <span align="center">

The node-switchbot supports only Linux-based OSes, such as Raspbian, Ubuntu, and so on. This module does not support Windows and macOS for now. (If [@homebridge/noble](https://github.com/homebridge/noble) is installed properly, this module might work well on such OSes.)
The node-switchbot supports only Linux-based OSes, such as Raspbian, Ubuntu, and so on. This module does not support Windows and macOS for now. (If [@abandonware/noble](https://github.com/abandonware/noble) is installed properly, this module might work well on such OSes.)

@@ -69,12 +69,12 @@ ## Dependencies

* [Node.js](https://nodejs.org/en/) 10 +
* [@homebridge/noble](https://github.com/homebridge/noble)
* [@abandonware/noble](https://github.com/abandonware/noble)
See the document of the [@homebridge/noble](https://github.com/homebridge/noble) for details on installing the [@homebridge/noble](https://github.com/homebridge/noble).
See the document of the [@abandonware/noble](https://github.com/abandonware/noble) for details on installing the [@abandonware/noble](https://github.com/abandonware/noble).
Note that the noble must be run as root on most of Linux environments. See the document of the [@homebridge/noble](https://github.com/homebridge/noble) for details.
Note that the noble must be run as root on most of Linux environments. See the document of the [@abandonware/noble](https://github.com/abandonware/noble) for details.
## Installation
Before installing the [@homebridge/noble](https://github.com/homebridge/noble), some linux libraries related Bluetooth as follows if the OS is Ubuntu/Debian/Raspbian.
Before installing the [@abandonware/noble](https://github.com/abandonware/noble), some linux libraries related Bluetooth as follows if the OS is Ubuntu/Debian/Raspbian.

@@ -85,9 +85,9 @@ ```

If you use other OS, follow the instructions described in the document of the [@homebridge/noble](https://github.com/homebridge/noble).
If you use other OS, follow the instructions described in the document of the [@abandonware/noble](https://github.com/abandonware/noble).
After installing the libraries above, install the [@homebridge/noble](https://github.com/homebridge/noble) and the node-switchbot (this module) as follows:
After installing the libraries above, install the [@abandonware/noble](https://github.com/abandonware/noble) and the node-switchbot (this module) as follows:
```
$ cd ~
$ npm install @homebridge/noble
$ npm install @abandonware/noble
$ npm install node-switchbot

@@ -250,5 +250,5 @@ ```

:--------|:-------|:---------|:-----------
`noble` | Noble | option | a Noble object of the [`@homebridge/noble`](https://github.com/homebridge/noble) module
`noble` | Noble | option | a Noble object of the [`@abandonware/noble`](https://github.com/abandonware/noble) module
The node-switchbot module uses the [`@homebridge/noble`](https://github.com/homebridge/noble) module in order to interact with BLE devices. If you want to interact other BLE devices using the `@homebridge/noble` module, you can create an `Noble` object by yourself, then pass it to this module. If you don't specify a `Noble` object to the `noble` property, this module automatically create a `Noble` object internally.
The node-switchbot module uses the [`@abandonware/noble`](https://github.com/abandonware/noble) module in order to interact with BLE devices. If you want to interact other BLE devices using the `@abandonware/noble` module, you can create an `Noble` object by yourself, then pass it to this module. If you don't specify a `Noble` object to the `noble` property, this module automatically create a `Noble` object internally.

@@ -259,3 +259,3 @@ The sample code below shows how to pass a `Nobel` object to the `Switchbot` constructor.

// Create a Noble object
const noble = require('@homebridge/noble');
const noble = require('@abandonware/noble');

@@ -387,3 +387,3 @@ // Create a Switchbot object

The `stopScan()` method stops to scan advertising packets coming from devices. This mothod returns nothing. Note that this method is *not* asynchronous but synchronous unlike the other methods. See the section "[`startScan()` method](#startscan-method)" for details.
The `stopScan()` method stops to scan advertising packets coming from devices. This method returns nothing. Note that this method is *not* asynchronous but synchronous unlike the other methods. See the section "[`startScan()` method](#startscan-method)" for details.

@@ -390,0 +390,0 @@ ### `onadvertisement` event handler

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc