{"_id":"@agilatech/tsl2561","_rev":"9-42aaa9e2c3279c30c6de30d16acd9287","name":"@agilatech/tsl2561","description":"Driver for the TSL2561 Sensor","dist-tags":{"latest":"0.8.2"},"versions":{"0.8.0":{"name":"@agilatech/tsl2561","version":"0.8.0","description":"Driver for the TSL2561 Sensor","main":"./build/Release/tsl2561","gypfile":true,"scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/tsl2561.git"},"keywords":["Sensor","TSL2561","light"],"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"license":"MIT","gitHead":"9c213ce1636c58391a47093c752b30de5dff6c1f","bugs":{"url":"https://github.com/Agilatech/tsl2561/issues"},"homepage":"https://github.com/Agilatech/tsl2561#readme","_id":"@agilatech/tsl2561@0.8.0","_shasum":"243f8c040adedb2f1c926ae8f850d376128380d3","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"agilatech","email":"scott@agilatech.com"},"dist":{"shasum":"243f8c040adedb2f1c926ae8f850d376128380d3","tarball":"https://registry.npmjs.org/@agilatech/tsl2561/-/tsl2561-0.8.0.tgz","integrity":"sha512-lyGN+sDr1N9cpxlF8CTTt/z+R7rUQXQO1GeTwIZLALAZNkSHnxLldogxRitkfZ9FRdTNr8hh83ee8RS0Hqbn2Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEut2JmXKQFCl/8fEM/SVG1AV9pWoEjt19hV+gKp913eAiEAlTIz92DlejFwlaEjsegc+AzA1JND8SxjNL6FqaSnWWs="}]},"maintainers":[{"name":"agilatech","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/tsl2561-0.8.0.tgz_1482538903930_0.9195249394979328"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.8.1":{"name":"@agilatech/tsl2561","version":"0.8.1","description":"Driver for the TSL2561 Sensor","main":"./build/Release/tsl2561","gypfile":true,"scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/tsl2561.git"},"keywords":["Sensor","TSL2561","light"],"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"license":"MIT","gitHead":"dbe2d897d2b7942072ad8b252c923825272bea6d","bugs":{"url":"https://github.com/Agilatech/tsl2561/issues"},"homepage":"https://github.com/Agilatech/tsl2561#readme","_id":"@agilatech/tsl2561@0.8.1","_shasum":"a5ab10d2bd946dace05262474b8a5b6adfe850d2","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"shasum":"a5ab10d2bd946dace05262474b8a5b6adfe850d2","tarball":"https://registry.npmjs.org/@agilatech/tsl2561/-/tsl2561-0.8.1.tgz","integrity":"sha512-/gaNO6vGZ1d/zPP/nA6I30J1Tnx6Q59uWutLQmfqcsAUOcr2WrTjEVTpUry+V7Ag6iakU7HOB+lI89Bd0FNe2A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICalBn2sJavfer/xCfqALqsTS84+XI6GryiCa41KjsVLAiEAt6ePt3KQ98ixjij/gCjq5gNXMtyomcCFBqNHUFppVBg="}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tsl2561-0.8.1.tgz_1488834511865_0.45249260822311044"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.8.2":{"name":"@agilatech/tsl2561","version":"0.8.2","description":"Driver for the TSL2561 Sensor","main":"./build/Release/tsl2561","gypfile":true,"scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/tsl2561.git"},"keywords":["Sensor","TSL2561","light"],"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"license":"MIT","gitHead":"28cb7efe9974228220ec7310419e09a3ff7b9b81","bugs":{"url":"https://github.com/Agilatech/tsl2561/issues"},"homepage":"https://github.com/Agilatech/tsl2561#readme","_id":"@agilatech/tsl2561@0.8.2","_shasum":"23ea6f8a3245866d634dd14bb58f41b41de866fa","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"shasum":"23ea6f8a3245866d634dd14bb58f41b41de866fa","tarball":"https://registry.npmjs.org/@agilatech/tsl2561/-/tsl2561-0.8.2.tgz","integrity":"sha512-9hon9ypAB/2X+UhfNCKL9fgQmdH8vMnsfMqYJDVgdC9wB09Rbj4UZRwt+1zMVhtUyVRH2ArUBV3/ZhWQGVVfXQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBNxk7sySddvkA+Au3M9x76SAVAIHSiyRnP17jzQOE7wAiBkJE4mLRGSjh8jsMh/fTzuoF42LGkmYUkao0ZtTEztOQ=="}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tsl2561-0.8.2.tgz_1502316793390_0.1336240814998746"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"##Node addon for hardware TSL2561 sensor\n\n#####This addon should work on any Linux platform, and has been thoroughly tested on BBB\n\n###Install\n\n```\nnpm install @agilatech/tsl2561\n```\nOR\n```\ngit clone https://github.com/Agilatech/tsl2561.git\nnode-gyp configure build\n```\n\n###Usage\n#####Load the module and create an instance\n```\nconst addon = require('@agilatech/tsl2561');\n\n// create an instance on the /dev/i2c-1 I2C file at address 0x39\nconst tsl2561 = new addon.Tsl2561('/dev/i2c-1', 0x39);\n```\n#####Get basic device info\n```\nconst name = tsl2561.deviceName();  // returns string with name of device\nconst type = tsl2561.deviceType();  // returns string with type of device\nconst version = tsl2561.deviceVersion(); // returns this software version\nconst active = tsl2561.deviceActive(); // true if active, false if inactive\nconst numVals =  tsl2561.deviceNumValues(); // returns the number of paramters sensed\n```\n####Get parameter info and values\n```\nconst paramName0 = tsl2561.nameAtIndex(0);\nconst paramType0 = tsl2561.typeAtIndex(0);\nconst paramVal0  = tsl2561.valueAtIndexSync(0);\n```\n####Asynchronous value collection is also available\n```\ntsl2561.valueAtIndex(0, function(err, val) {\n    if (err) {\n        console.log(err);\n    }\n    else {\n        console.log(`Asynchronous call return: ${val}`);\n    }\n});\n```\n\n###Operation Notes\nThe TSL2561 outputs luminosity as the human eye would perceive it. The units are in LUX. The lux is the SI unit of illuminance and luminous emittance, measuring luminous flux per unit area. It is equal to one lumen per square metre. In photometry, this is used as a measure of the intensity, as perceived by the human eye, of light that hits or passes through a surface. It is analogous to the radiometric unit watts per square metre, but with the power at each wavelength weighted according to the luminosity function, a standardized model of human visual brightness perception.\n\n###Dependencies\n* node-gyp is needed to compile the addon\n\n\n###Copyright\nCopyright © 2016 Agilatech. All Rights Reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n","maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"time":{"modified":"2023-10-25T22:45:54.309Z","created":"2016-12-24T00:21:44.193Z","0.8.0":"2016-12-24T00:21:44.193Z","0.8.1":"2017-03-06T21:08:32.476Z","0.8.2":"2017-08-09T22:13:14.634Z"},"homepage":"https://github.com/Agilatech/tsl2561#readme","keywords":["Sensor","TSL2561","light"],"repository":{"type":"git","url":"git+https://github.com/Agilatech/tsl2561.git"},"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"bugs":{"url":"https://github.com/Agilatech/tsl2561/issues"},"license":"MIT","readmeFilename":"README.md"}