Code Monkey home page Code Monkey logo

homebridge-lib's Introduction

homebridge-lib

npm npm JavaScript Style Guide

Library for Homebridge Plugins

Copyright © 2018-2019 Erik Baauw. All rights reserved.

While developing a number of Homebridge plugins, I find myself duplicating a lot of code. The idea behind this library is to ease developing and maintaining Homebridge plugins by separating this generic code, dealing with HomeKit and Homebridge, from the specific code, dealing with the actual devices being exposed to HomeKit.

Documentation

The documentation, how to develop a plugin using homebridge-lib, is provided in the code and through tutorials in the doc directory. To generate the documentation, install jsdoc and run jsdoc -c jsdoc.json. To view the documentation, open index.html in the out directory.

See homebridge-ws for an example plugin based on homebridge-lib.

Command-Line Tools

The homebridge-lib library comes with a number of command-line tools for troubleshooting Homebridge installations.

Tool Description
hap Logger for HomeKit accessory announcements.
json JSON formatter.
upnp Logger for UPnP device announcements.

Each command-line tool takes a -h or --help argument to provide a brief overview of its functionality and command-line arguments.

Installation

This library is not a Homebridge plugin and should not need to be installed manually. Instead, Homebridge plugins using this library should list it as a dependency in their package.json. This way, npm installs homebridge-lib automatically when installing the actual plugin.

To install the command-line tools standalone, without installing a Homebridge plugin, use:

$ sudo npm -g i homebridge-lib

Credits

The logic for handling Eve history was copied from Simone Tisa's fakegato-history repository, copyright © 2017 simont77.

homebridge-lib's People

Contributors

ebaauw avatar ctschach avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.