Commit Graph

76 Commits

Author SHA1 Message Date
Stephan Esch efda0fac11 Added serverVersion to API; bumped API version to 2.2 (#1064)
* Added serverVersion to API; bumped API version to 2.1.1

* Fixed version number to 2.2
2017-01-13 09:48:56 -08:00
Khaos Tian f17fe59590 Fix an warning in nodejs v7 2016-11-29 18:42:17 -08:00
Khaos Tian 69e3ed5ee4 Merge pull request #491 from straccio/master
Added pluginPath based on npm
2016-11-28 13:21:27 -08:00
Khaos Tian 3354842e81 Merge pull request #917 from crzcrz/master
Use chalk instead of hardcoded ANSI codes
2016-11-28 13:17:35 -08:00
straccio e5e2a400ec Merge remote-tracking branch 'nfarina/master'
# Conflicts:
#	lib/plugin.js
2016-11-28 13:36:00 +01:00
Khaos Tian e1867b2bc0 Improve error handling. 2016-11-27 15:24:27 -08:00
Max Metral ecda18029f Allow externally specified config 2016-11-21 14:58:39 -05:00
Stanislav Kljuhhin 8c6cb53dcb Use chalk instead of hardcoded ANSI codes
Improves the readability of the source code and prevents the raw ANSI codes from appearing in the log, if ran as a systemd service.
2016-11-13 16:29:10 +01:00
straccio 1513e5398f Merge remote-tracking branch 'nfarina/master' 2016-10-11 15:52:58 +02:00
rxseger 5adb5f3282 Fix camera name in collision error message 2016-10-09 23:36:53 +00:00
straccio a2baa93801 Merge remote-tracking branch 'nfarina/master' 2016-09-29 09:00:45 +02:00
Khaos Tian ea9df45d2d Add back the ability to designate the port homebridge is running. 2016-09-28 17:10:52 -07:00
straccio 332385d605 Merge remote-tracking branch 'nfarina/master' 2016-09-27 08:38:18 +02:00
Khaos Tian 66ea6e640d Minor Tweak 2016-09-26 14:15:12 -07:00
Khaos Tian ecd06d7239 Bump api version 2016-09-26 13:19:50 -07:00
Khaos Tian c89ff97ac5 init design 2016-09-26 13:01:29 -07:00
straccio 41c53f8f10 Merge remote-tracking branch 'nfarina/master' 2016-09-20 09:17:15 +02:00
Alessio Dionisi 4740bf1fc5 New bridge configs
"bridge": {
    "manufacturer": "Manufacturer here",
    "serialNumber": "Serial number here",
    "model": "Model here"
}
2016-09-13 13:54:37 +02:00
cflurin 5944365bc6 Warning config.json not found 2016-09-06 14:49:53 +02:00
straccio c8cb0731ff Merge remote-tracking branch 'nfarina/master' 2016-04-11 09:45:54 +02:00
Khaos Tian 0af8a43dc9 Expose platform accessory category to hap-nodejs
Fix an error in plugin config look up
2016-04-08 23:50:18 -07:00
straccio 39af2ebbef Merge remote-tracking branch 'nfarina/master'
# Conflicts:
#	lib/logger.js
2016-03-21 08:43:36 +01:00
Khaos Tian 620c8473b8 #572 2016-03-20 22:12:47 -07:00
straccio b94c3caa3b Changed color for logging timestamp to white. 2016-03-08 15:59:44 +01:00
straccio 73fdec5928 Revert to upstream/master, no need to skip cached accessories 2016-03-08 08:44:52 +01:00
straccio 911f088df9 A way to skip cached accessories from being loaded in HAP 2016-03-07 17:32:18 +01:00
straccio 6fade3c3cc Merge remote-tracking branch 'nfarina/master' 2016-03-07 17:28:41 +01:00
Danimal4326 df8508a38f Prepend date/time to logger messages 2016-03-03 12:24:54 -06:00
straccio 191c75c281 Merge remote-tracking branch 'upstream/master' 2016-03-02 08:58:03 +01:00
Khaos Tian 8cb22efb83 Add a example to use "identify" event 2016-03-01 00:25:05 -08:00
straccio 6ae2a19d37 missed ";" 2016-02-29 09:05:42 +01:00
straccio ffe4232c3b Added pluginPath based on npm 2016-02-29 09:05:42 +01:00
Khaos Tian f6df85695d Forward identity only if plugin cares about event 2016-02-28 18:19:46 -08:00
Khaos Tian 32e776203f Forward "identify" event 2016-02-28 18:17:46 -08:00
Khaos Tian 012005ddc7 Save cached accessories to persist storage when shutting down homebridge. 2016-02-18 14:50:55 -08:00
Khaos Tian 27ffd6e944 Merge branch 'master' into plugin-2 2016-02-18 14:49:05 -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 1da98bb19f Add the insecure launching option to homebridge cli. 2016-02-17 10:37:11 -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
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
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
Khaos Tian e1334c5196 Init Plugin 2.0 2016-01-30 18:36:55 -08:00
Khaos Tian 74e1cf257a Update hap-nodejs to 0.1.1
Addressed #478
2016-01-21 21:20:07 -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