Skip to content

rylio/node-ambient-light-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ambient-Light-Sensor

Access the ambient light sensor on macOS in node.js.

Install

  npm install --save ambient-light-sensor

Example

const als = require('ambient-light-sensor');
als(function(err, data) {
   if(!err) {
      console.log(data.computedValue, data.rawValue);
   }
});

License

ambient-light-sensor is released under the MIT license. See LICENSE for details.

About

Access th Mac ambient light sensor from node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published