supplemental-lighting
v0.0.1
Published
Calculates the amount of sunlight as a percent of max from latitude and longitude data to calculate sunrise/sundown and uses Dark Sky weather API to detect and mimic weather conditions.
Downloads
2
Readme
Supplemental Lighting
About
A simple Node.js library to calculate the current sunlight for use in supplemental lighting projects.
Usage
const supplementallighting = new SupplementalLighting(process.env.DARK_SKY, process.env.LATITUDE, process.env.LONGITUDE);
console.log(await supplementallighting.getCurrentLighting()); // returns sunlight amount on a scale from 0/100.