Giter Club home page Giter Club logo

homebridge-picamera-lightsensor's Introduction

npm npm GitHub last commit

homebridge-picamera-lightsensor

This is a homebridge plugin which uses the raspberry-pi camera to emulate a ambientlight sensor

Configuration

"accessories": [
   {
   	"accessory": "PiCameraLightsensor",
   	"name": "LightSensor",
   	"poll_interval": 300
   }
]

Parameter

  • poll_interval: seconds between measurements (default: 300)
  • from_left_percent: left edge from where the calculation should start (default: 0)
  • to_right_percent: right edge where the calculation should end (default: 100)
  • from_top_percent: top edge from where the calculation should start (default: 0)
  • to_bottom_percent: bottom edge where the calculation should stop (default: 100)

The following configuration example uses the top/right quarter of the image for the brigthness-calculation

"accessories": [
  {
  	"accessory": "PiCameraLightsensor",
  	"name": "LightSensor",
  	"poll_interval": 300,
  	"from_left_percent": 50,
  	"to_right_percent": 100,
  	"from_top_percent": 0,
  	"to_bottom_percent": 50,
  }
]

History

0.2.0

  • remove "take photo" logging
  • ability to define the area of the image which should be used for brightness calculation

0.1.0

  • First working version

ToDos

  • remove logging
  • configurable measurement area (e.g. whole image, top/left, ...)
  • add optional correction-factor for lux-value

What else

Like this and want to express your feelings? Please buy me a beer ๐Ÿป ...

Donate

homebridge-picamera-lightsensor's People

Contributors

skrollme 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.