Skip to content

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.

charles-young/supplemental-lighting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published