Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-daylight

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-daylight

Daylight plugin for homebridge: https://github.com/nfarina/homebridge

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

homebridge-daylight

Daylight plugin for Homebridge that publishes a HomeKit accessory that emits an approximation of the expected amount of daylight according to the sunrise and sunset schedule for the configured location.

Time PeriodCurrent Light Level
Before Sunrise0.0001lux
During Sunrise0.0001lux to 100000.000lux (gradual)
Between Sunrise & Sunset100000.000lux
During Sunset100000.000lux to 0.0001lux (gradual)
After Sunset0.0001lux

This is intended for use in triggering scenes using sunrise and sunset.

Installation

  1. Install Homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-daylight
  3. Use the Google Geocoder Tool to get your location coordinates.
  4. Update your Homebridge config.json using the sample below.

Configuration

{
  "accessory": "Daylight",
  "location": {
    "lat": 37.3316936,
    "lng": -122.0302191
  },
  "name": "Daylight"
}

Fields:

  • accessory must be "Daylight" (required).
  • location contains your location coordinates (required).
  • name is the name of the published accessory (optional).

Keywords

FAQs

Package last updated on 22 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc