Skip to content

Commit

Permalink
Fixed issue with enable/disable of Express server
Browse files Browse the repository at this point in the history
  • Loading branch information
kuestess authored Apr 22, 2018
1 parent 0f7cec7 commit 6c7fcd0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ The Express serve is now optional and can be disabled if desired.

## Install

Clone the repository, cd into the cloned directory and install using npm:
**Now with more npm!**

To install from npm:

`npm -g install homebridge-platform-insteonlocal`

Alternately, clone the repository, cd into the cloned directory and install using npm:

`npm -g install`

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ function InsteonLocalPlatform(log, config, api) {
console.log('Connected to Insteon Hub...')
hub.emit('connect')
eventListener()
if(use_express){
if(self.use_express){
app.listen(self.server_port)
}
})
Expand All @@ -195,7 +195,7 @@ function InsteonLocalPlatform(log, config, api) {
console.log('Connected to Insteon Hub...')
hub.emit('connect')
eventListener()
if(use_express){
if(self.use_express){
app.listen(self.server_port)
}
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-platform-insteonlocal",
"version": "0.3.0",
"version": "0.3.1",
"description": "Insteon platform plugin with local control for homebridge: https://github.com/nfarina/homebridge",
"license": "ISC",
"keywords": [
Expand Down

0 comments on commit 6c7fcd0

Please sign in to comment.