Skip to content

Homebridge plugin which uses the raspberry-pi camera to emulate a ambientlight sensor

Notifications You must be signed in to change notification settings

skrollme/homebridge-picamera-lightsensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Homebridge plugin which uses the raspberry-pi camera to emulate a ambientlight sensor

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published