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

BigAssFansAPI

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

BigAssFansAPI - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

Examples/pedroExample.js

8

BigAssApi.js

@@ -267,3 +267,3 @@ var dgram = require("dgram");

this.sensor = new BigAssProperty('room', this);
this.sensor = new BigAssProperty('sensor', this);
this.sensor.createGetField('isOccupied', ['SNSROCC', 'STATUS'], false, undefined, 'OCCUPIED', 'UNOCCUPIED');

@@ -274,5 +274,5 @@ this.sensor.createGetField('minTimeout', ['SNSROCC', 'TIMEOUT'], true, 'MIN'); // Seconds (ie 3600000 is 60 min)

this.sensor = new BigAssProperty('smartmode', this);
this.sensor.createGetField('smartmodeactual', ['SMARTMODE', 'ACTUAL'], true, undefined, 'OFF', 'COOLING', 'HEATING'); // Heating smartmode invokes LEARN;STATE;OFF and FAN;PWR;ON and FAN;SPD;ACTUAL;1 and WINTERMODE;STATE;ON and SMARTMODE;STATE;HEATING and SMARTMODE;ACTUAL;HEATING
this.sensor.createGetField('smartmodestate', ['SMARTMODE', 'STATE'], true, undefined, 'LEARN', 'COOLING', 'HEATING', 'FOLLOWSTAT'); // FOLLOWSTAT is the works with nest option, it is followed by SMARTMODE;ACTUAL;OFF command
this.smartmode = new BigAssProperty('smartmode', this);
this.smartmode.createGetField('smartmodeactual', ['SMARTMODE', 'ACTUAL'], true, undefined, 'OFF', 'COOLING', 'HEATING'); // Heating smartmode invokes LEARN;STATE;OFF and FAN;PWR;ON and FAN;SPD;ACTUAL;1 and WINTERMODE;STATE;ON and SMARTMODE;STATE;HEATING and SMARTMODE;ACTUAL;HEATING
this.smartmode.createGetField('smartmodestate', ['SMARTMODE', 'STATE'], true, undefined, 'LEARN', 'COOLING', 'HEATING', 'FOLLOWSTAT'); // FOLLOWSTAT is the works with nest option, it is followed by SMARTMODE;ACTUAL;OFF command

@@ -279,0 +279,0 @@ this.learn = new BigAssProperty('learn', this);

{
"name": "BigAssFansAPI",
"version": "1.1.0",
"version": "1.1.1",
"description": "An unofficial API for BigAssFans",

@@ -5,0 +5,0 @@ "main": "BigAssApi.js",

@@ -7,2 +7,8 @@ Unofficial Big Ass API

What this could be/is used for
------------------------------
- [Homekit control!](https://github.com/sean9keenan/homebridge-bigAssFans)
- [Controlling your fan with keyboard shortcuts](https://github.com/sean9keenan/BigAssFansAPI/blob/master/Examples/fastDimLights.js)
- Controlling it via any way you can imagine, just read on
Using the API!

@@ -141,3 +147,2 @@ ==============

- Stuff that I have in here shouldn't be changing that much - but if it does - sorry!
- Integration with [HomeKit](https://github.com/nfarina/homebridge)
- Checking that setters have only valid input parameters

@@ -147,2 +152,1 @@ - I hear unit tests are a good thing >.>

- Register update callback might be changed to only call you on value update - not on 'fan-says-there-was-an-update-update'
- Need to have an error callback you can register for - eg : error setting property on fan
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