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

homebridge-misfit-bolt

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-misfit-bolt - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

lib/accessory.js

@@ -38,3 +38,3 @@ "use strict";

const getter = (callback) => {
this.log(`Get Bolt##{this.id} #{property}`);
this.log(`Get Bolt#${this.id} ${property}`);
get(this.url(property)).end(responseHandler(callback));

@@ -44,3 +44,3 @@ };

const setter = (value, callback) => {
this.log(`Set Bolt##{this.id} #{property}`);
this.log(`Set Bolt#${this.id} ${property} with ${value}`);
var body = {};

@@ -47,0 +47,0 @@ body[property] = value;

{
"name": "homebridge-misfit-bolt",
"version": "0.1.1",
"version": "0.1.2",
"description": "Misfit Bolt plugin for homebridge",

@@ -5,0 +5,0 @@ "keywords": [

# homebridge-misfit-bolt
Misfit Bolt plugin for [Homebridge](https://github.com/nfarina/homebridge).
Let you control your Misfit Bolt via HomeKit / Siri.
Let you control your Misfit Bolt via HomeKit / Siri. Requires [misfit-bolt-http](https://github.com/flochtililoch/misfit-bolt-http) module running as a separate program.

@@ -12,15 +12,4 @@ # Installation

# Updating
1. npm update -g homebridge-misfit-bolt
# Configuration
## Generate configuration
After installing the plugin, you can run the following command if you want to generate your configuration automatically. This script helps finding surrounding Bolts, and outputs the required JSON configuration.
```bash
/usr/local/lib/node_modules/homebridge-misfit-bolt/generate-config
```
## Configuration sample

@@ -33,8 +22,6 @@

"name": "MisfitBolt",
"loadTimeout": 30000,
"accessories": [{
"id": "1fd6828fedbd431aa38f48683b1ed92a",
"id": "20338f8afaac",
"name": "Bolt",
"timeout": 500,
"disconnectTimeout": 5000
"baseUrl": "http://localhost:3000/20338f8afaac"
}]

@@ -45,8 +32,6 @@ }

## Accessories
## Accessories Required properties
### Required properties
### `id`
#### `id`
Identifier of your Misfit Bolt.

@@ -76,28 +61,15 @@

#### `name`
### `name`
Name of your Bolt, as you want it to appear in your Homekit supported app.
Name of your Bolt, as you want it to appear in your HomeKit supported app.
### Optional properties
### `baseUrl`
#### `loadTimeout` (in milliseconds, optional, defaults to no timeout)
URL of the Bolt as exposed via `misfit-bolt-http` module. See [misfit-bolt-http](https://github.com/flochtililoch/misfit-bolt-http) for setup and configuration details.
Time after which homebridge will stop attempting to connect to configured bolts. Helpful when all configured bolts aren't plugged in.
#### `timeout` (in milliseconds, optional, default to `1000`)
Time after which homebridge will abort any pending interaction with the bulb, such as connecting or setting values.
#### `disconnectTimeout` (in milliseconds, optional, default to `10000`)
Time after which homebridge will disconnect from the bulb.
Useful if you want to keep using the original Misfit Bolt app in parallel of using homebridge. Next time a command is sent via homebridge, a reconnection will be attempted.
# TODO
- Move implementation that keep track of state, and allows manipulation of Hue / Brightness / Saturation to [`misfit-bolt`](https://github.com/flochtililoch/misfit-bolt) module.
- Unit tests.
- Tests
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