11 Commits

Author SHA1 Message Date
Khaos Tian
012005ddc7 Save cached accessories to persist storage when shutting down homebridge. 2016-02-18 14:50:55 -08:00
Tor Arne Vestbø
cf80e4f2da Handle SIGINT and SIGTERM to enable clean shutdown of Homebridge
For now we terminate the process, but in the future we may tell the
server to stop, which may possibly include some teardown logic.

Handling these signals also make it easier to put Homebridge inside
a docker container, as docker uses SIGTERM to tell a container process
to stop, and passes SIGINT when attached to the container and receiving
a Ctrl+C.
2016-02-18 00:36:56 +01:00
Nick Farina
57beabf0b4 Add comment 2016-02-17 10:43:54 -08:00
Khaos Tian
1da98bb19f Add the insecure launching option to homebridge cli. 2016-02-17 10:37:11 -08:00
Nick Farina
7bfc5ee84d Expose User object to Plugin API
Closes #379
Changes #378
2015-11-04 15:59:38 -08:00
Nick Farina
f2ad339a13 CLI setting for custom homebridge "home" path
Fixes #378
2015-11-04 09:47:48 -08:00
Nick Farina
e3178e5fa4 Fix -D flag
Fixes #376
2015-11-04 04:31:52 -08:00
Nick Farina
2470f26451 Better handling of custom plugin paths 2015-11-03 21:14:25 -08:00
Nick Farina
52d3a9a96e First pass at README update. 2015-11-02 15:30:29 -08:00
Nick Farina
27b39cbfa0 New Plugin API
- Homebridge calls single exported initializer function and passes an
API object
  - No more require() for HAP classes (doesn't play well with plugin
structure)
2015-10-18 22:20:06 -07:00
Nick Farina
a3c0df1c7c Plugin support
- Homebridge is now designed to be `npm install`d globally and
executed via "homebridge" script
  - Remove all specific accessories/platforms except for an example
  - New internal structure and "cli"
2015-10-18 16:34:21 -07:00