Comments (2)
The reason for the error is your are missing the new
statement when you create your gateway from the Insteon
class. Also, you only need to call connect once and make sure not to overwrite your var gw
. Try the following code:
var Insteon = require('home-controller').Insteon;
var gw = new Insteon();
gw.connect('192.168.10.10', function(){
console.log('Connected!');
});
Let me know if you have any more issues. Thanks - Brandon
from home-controller.
That worked, thanks! You might want to update your README with the first example as it doesn't include the new. Thanks for the awesome project!
from home-controller.
Related Issues (20)
- Correct status object not returned by directCommand() HOT 6
- powerlinc-modem connect uand usage HOT 2
- Question HOT 2
- HubPro PLM Connection HOT 7
- Lighting Event Emitter question HOT 9
- Linked device events HOT 8
- Listening for pairing button on a controllable outlet
- Dual-Outlet Control? HOT 14
- 'Insufficient data to continue' with 2242 Hub HOT 7
- Wonderful implementation ... of course could be better
- Listening for events
- Add "beep" function HOT 1
- PLM NAKs not respected HOT 4
- Confused about link() HOT 3
- Factory Reset / Delete All Links command HOT 8
- Cannot link devices with ID that begins with a zero HOT 2
- Publish 0.9 To NPM HOT 3
- Light level response inconsistent HOT 4
- Scene dim/brighten commands are switched HOT 3
- How can i set a scenes schedule (onTime/offTime)? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from home-controller.