Commit Graph

751 Commits

Author SHA1 Message Date
Khaos Tian 27ffd6e944 Merge branch 'master' into plugin-2 2016-02-18 14:49:05 -08:00
Khaos Tian 0b28387cb1 Merge pull request #532 from torarnv/handle-shutdown-signals
Handle SIGINT and SIGTERM to enable clean shutdown of Homebridge
2016-02-18 14:47:41 -08:00
Khaos Tian 815ea7abea Track setup session termination 2016-02-17 17:45:47 -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
Khaos Tian 40266af8b2 Add the ability to remove services/characteristics 2016-02-17 13:18:25 -08:00
Nick Farina 57beabf0b4 Add comment 2016-02-17 10:43:54 -08:00
Khaos Tian d3c77a4cda Merge branch 'master' into plugin-2 2016-02-17 10:41:32 -08:00
Khaos Tian 287aa6d034 0.2.18 v0.2.18 2016-02-17 10:38:08 -08:00
Khaos Tian 1da98bb19f Add the insecure launching option to homebridge cli. 2016-02-17 10:37:11 -08:00
Nick Farina aea485c33e Version bump; publish v0.2.17 2016-02-16 13:00:22 -08:00
Khaos Tian 386cf34827 Update hap-nodejs to 0.2.3 so the reachability for existing accessories will be correct. 2016-02-15 19:23:38 -08:00
Khaos Tian 8e360491cf Update hap-nodejs to 0.2.3 2016-02-15 19:22:43 -08:00
Khaos Tian e546440575 Update hap-nodejs to 0.2.2 2016-02-13 22:44:22 -08:00
Khaos Tian 902fdded65 Address the problem that callback get invoked with wrong signature 😅 2016-02-13 22:21:54 -08:00
Khaos Tian 8de375a4b0 Fix the issue with transaction ID
Update hap-nodejs to fix #497-183825263
2016-02-13 21:57:11 -08:00
Khaos Tian d04c20ca2f Merge pull request #522 from leoneleone/patch-1
Update hap-nodejs to v0.2.0
2016-02-12 09:52:13 -08:00
leoneleone c53f890a8c Update hap-nodejs to v0.2.0 2016-02-12 14:58:35 +00:00
Khaos Tian c02e212b4c bump hap-nodejs version 2016-02-08 14:51:34 -08:00
Khaos Tian 7436be9b44 Add example to update reachability 2016-02-08 14:50:50 -08:00
Khaos Tian 2ad7932fbc Merge pull request #515 from snowdd1/patch-1
Update platformAccessory.js
2016-02-08 14:49:13 -08:00
Raoul 7dd8e12791 Update platformAccessory.js
Some more copy-and-paste errors in the same line.
Was wondering why my platform was failing, but never looked to that simple lines of code :-(
2016-02-08 23:06:32 +01:00
Raoul c93b0b0df1 Update platformAccessory.js
Small type, big result.
2016-02-08 22:18:54 +01:00
Khaos Tian b49fd2d6a5 Merge pull request #513 from snowdd1/patch-1
new getServiceByUUIDAndSubtype(UUID, subtype) function
2016-02-07 15:47:46 -08:00
Raoul 9c8812da70 new getServiceByUUIDAndSubtype(UUID, subtype) function
Some platforms may have accessories that contain more than one service of a given type, such as multiple lightbulbs.
2016-02-08 00:01:44 +01:00
Nick Farina 9e6bf028ba Fix license field for Node 2016-02-04 13:34:53 -08:00
Khaos Tian aebd152ff9 Reverse .gitignore 2016-01-30 21:55:37 -08:00
Khaos Tian 5b9c5192fe add SamplePlatform 2016-01-30 21:55:12 -08:00
Khaos Tian e1334c5196 Init Plugin 2.0 2016-01-30 18:36:55 -08:00
Nick Farina 1a356a1783 Add a fun gif illustrating Why Homebridge 2016-01-23 17:11:25 -08:00
Nick Farina da8d5fd267 Version bump to v0.2.16 2016-01-22 07:11:30 -08:00
Nick Farina 798275774a Merge pull request #482 from nfarina/update-hap-nodejs
Update hap-nodejs to 0.1.1
2016-01-22 07:10:52 -08:00
Khaos Tian 74e1cf257a Update hap-nodejs to 0.1.1
Addressed #478
2016-01-21 21:20:07 -08:00
Nick Farina f4aa57314b Merge pull request #467 from rudders/master
Updated README.md to explain Startup Errors.
2016-01-12 20:04:50 -08:00
Adrian Rudman 66505457c7 Updated README.md to explain Startup Errors.
This issue is frequently discussed so let's see if people read the documentation...
2016-01-13 14:30:43 +11:00
Nick Farina ae24e28ac4 Version bump to v0.2.15
Fix link to searching NPM for plugins—the old "correct" method of
searching for specific keywords doesn't work when the results span
multiple pages (see https://github.com/npm/newww/issues/1630).

This way requires more clicking but actually allows you to discover all
known plugins.
2016-01-07 12:37:24 -08:00
Nick Farina c8c84c08f2 Bump HAP-NodeJS to v0.0.7; Version bump to v0.2.14 2016-01-06 13:51:47 -08:00
Nick Farina 2213997acc Add note about editing config.json 2015-12-28 16:11:53 -08:00
Nick Farina 3616d61fed Version bump for npm 2015-12-28 09:33:47 -08:00
Nick Farina e52aff802b Merge pull request #442 from n8henrie/master
Add test for valid username
2015-12-28 09:33:08 -08:00
Nathan Henrie 15bf22805c Add test for valid username
Like a MAC address, a valid username can only contain 6 pairs of
hexadecimal characters, and for homebridge purposes must be
colon-separated. This adds a simple regex test for a proper username,
since I just spent nearly 24h trying to debug an issue that all came
down to not realizing that a MAC address could only have letters A-F
(see https://github.com/nfarina/homebridge/issues/385).
2015-12-27 10:29:21 -07:00
Nick Farina f5b790ff35 Just make the sudo explicit 2015-11-30 14:01:40 -08:00
Nick Farina 08f8ae53c5 Link to HomeKitTypes 2015-11-28 12:16:40 -08:00
Nick Farina 2f0c60984a Remove notice at top
many plugins have now been extracted!
2015-11-28 08:54:56 -08:00
Nick Farina 507835986b Merge pull request #403 from victorklijmeij/patch-1
correct errors
2015-11-21 11:33:09 -08:00
victorklijmeij 9567c41a58 correct errors
Json was found invalid on jsonlint.com
2015-11-21 20:22:16 +01:00
Nick Farina ec839b2dbc Tweaks to plugin load error detection 2015-11-11 15:16:29 -08:00
Nick Farina 2d73e70670 Merge pull request #387 from knalli/patch-1
Provide and output proper existing error message
2015-11-11 15:15:35 -08:00
Nick Farina 65b74253df Fix command-line examples 2015-11-09 11:29:22 -08:00
Nick Farina 78b8c265e1 Include repo and bugs in example plugin 2015-11-09 10:59:49 -08:00
Jan Philipp affe3fde63 Provide and output proper existing error message
If the found plugin / package does not fulfill some specs (i.e. does not contain the keyword `homebridge-plugin`), it will be rejected with an error. Without that change nobody will be notified WHY the plugin has been rejected/skipped.
2015-11-08 17:31:02 +01:00