BigAssFansAPI
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -114,2 +114,3 @@ var dgram = require("dgram"); | ||
optionalCallback(null); | ||
optionalCallback = null; | ||
} | ||
@@ -130,2 +131,3 @@ this.unregisterUpdateCallback(name, updateTableId); | ||
optionalCallback(new Error("Failed to set property")); | ||
optionalCallback = null; | ||
} | ||
@@ -173,3 +175,3 @@ } | ||
this.setProperty = function(name, value, callback) { | ||
var thisSetFunction = self.setFunctions[name] | ||
var thisSetFunction = this.setFunctions[name] | ||
if (thisSetFunction) { | ||
@@ -176,0 +178,0 @@ thisSetFunction(value, callback) |
{ | ||
"name": "BigAssFansAPI", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "An unofficial API for BigAssFans", | ||
@@ -5,0 +5,0 @@ "main": "BigAssApi.js", |
@@ -7,8 +7,2 @@ Unofficial Big Ass API | ||
Boring stuff out of the way | ||
--------------------------- | ||
I am in no way am associated with Big Ass Fans. Also this can break at any time if they change their API. I'm also in no way am responsible for you damaging your fan by using this API. | ||
(However - I would be surprised if you did) | ||
Using the API! | ||
@@ -47,6 +41,12 @@ ============== | ||
### Installation | ||
``` | ||
npm install BigAssFansAPI | ||
``` | ||
### Example Code | ||
```javascript | ||
var bigAssApi = require("./BigAssApi"); | ||
var bigAssApi = require("BigAssFansAPI"); | ||
@@ -72,2 +72,5 @@ var myMaster = new bigAssApi.FanMaster(1); // Expect only one fan in my setup | ||
#### More examples | ||
To see more examples, [navigate to the examples directory](./Examples)! | ||
### More about Properties | ||
@@ -124,6 +127,2 @@ - Property get retrieves the last known value | ||
Examples | ||
-------- | ||
To see more examples, [navigate to the examples directory](./Examples)! | ||
How was this made | ||
@@ -135,2 +134,8 @@ ----------------- | ||
Boring stuff | ||
------------ | ||
I am in no way am associated with Big Ass Fans. Also this can break at any time if they change their API. I'm also in no way am responsible for you damaging your fan by using this API. | ||
(However - I would be surprised if you did) | ||
Where this API is going | ||
@@ -137,0 +142,0 @@ ----------------------- |
28406
410
146