felix-schwarz / HAP-NodeJS

Node.js implementation of HomeKit Accessory Server.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HAP-NodeJS

HAP-NodeJS is a Node.js implementation of HomeKit Accessory Server.

With this project, you should be able to create your own HomeKit Accessory on Raspberry Pi, Intel Edison or any other platform that can run Node.js :)

The implementation may not 100% follow the HAP MFi Specification since MFi program doesn't allow individual developer to join.

** Please use NodeJS 0.10.35/36 instead of 0.12.x There are several API changes in 0.12 which breaks the build. **

Remember to run npm rebuild before actually running the server.

Users can define their own accessories in: accessories/name_accessory.js files, where name is a short description of the accessory. All defined accessories get loaded on server start. The accessory is defined using an object literal notation.

You can use the following command to start the HAP Server:

node Core.js

Special thanks to Alex Skalozub, who reverse engineered the server side HAP. You can find his research at here. (Sadly, on Nov 4, Apple sent the DMCA request to Github to remove the research.)

There is a video demo running this project on Intel Edison.

If you are interested in HAP over BTLE, you might want to check this.

About

Node.js implementation of HomeKit Accessory Server.


Languages

Language:JavaScript 100.0%