{"_id":"@abandonware/bh1750","_rev":"4-70208ab13749ad940141164b01ca8bc1","name":"@abandonware/bh1750","dist-tags":{"latest":"0.0.7-3"},"versions":{"0.0.7-0":{"name":"@abandonware/bh1750","description":"light sensor bh1750 with raspberry pi","author":{"name":"Miroslav Rúčka, Jos Hendriks"},"version":"0.0.7-0","main":"bh1750","scripts":{"test":"node example","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/miroRucka/bh1750.git"},"dependencies":{"@abandonware/i2c":"^0.2.4-0"},"keywords":["raspberry, raspberry pi, light, sensor, bh1750, ambient-light, iotjs-module"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"devDependencies":{"eslint":"^6.0.1"},"iotjs":{"version":">=1.0"},"gitHead":"0c4c71ce427c4c141728d26f6e8f3caa0fb3e623","bugs":{"url":"https://github.com/miroRucka/bh1750/issues"},"homepage":"https://github.com/miroRucka/bh1750#readme","_id":"@abandonware/bh1750@0.0.7-0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Vz/LgXd9IJ7YrBqj4dhRDWxBmt1UM8M8cQoSh0QwufX6vWr3amyujxO0Ol8wXUkp8Tx3mmGBsvYKW0UUdKqBvQ==","shasum":"34673ee4d39a4d0ef5483c92115b2c52fb0e6dde","tarball":"https://registry.npmjs.org/@abandonware/bh1750/-/bh1750-0.0.7-0.tgz","fileCount":8,"unpackedSize":15891,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdLG2yCRA9TVsSAnZWagAAds0P/3WSVoaXgfas5eqjGs+s\nSoXlKlHCoNd7dye3RGsWhVNAj52aoWBej1BXqT7wr6BmGI9pgRzbJmAod6wu\n73kbR3XX6ERxG0U7AKbRkharSS+HbZ8BWYT7r80SG477zAF61MH2N0OOAykV\nQGZ/w0q/7PJp5oBhp81BWcBCpBOJuhMibmlE1U0YirXl6jaMUPuMr3ZxvxXl\naBfRk6dq2jsIVHRYwDFPW1c+PfJstK4hmQYenidZ/C4i2YPFlu4bKK520SRx\nEZagcKAOuivJTv3lpR/2YkgclH6PjPLJY4vYpMHIvqz/JeBRtx/STy88kK+X\n8S9dT1eVYS1VPhF3AoHlQE0fiIJdE+z4Wx+sC15m33XYZ7Og85IvkNGBU73f\nPEp4ExB1TJE6180oNY3i4V8oGsBv3RXKnTDi/0iu4DdCMlLVGm/rif4pC06f\nSO43zaEGpj98S8XXzrwx6cvmRib4JlGyEBMYudJNyJAr9sXFcMfnK7qurhGo\nmZIyJmi96SrI3c5vkUkAa+aBowFaeH3A4mbN4FoeP0lwqDbgWaXeZi3SMkaf\nYvVx83YJBmajNglRgpV3nDZFzyrgBnkSrMoCZoP2Fu7yka0sl53gTjYOmw2G\nTMT0r1Oigfuy8FhgLidGpmMaIgeLN1IqiXBWnpOfJPx51Eb9Mi+SvL3mb0Dp\n45Pa\r\n=81jR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGQD1jjcFaFjYd2ccqZwtJEFVcfzCRwcQFh62AZJgb7gIgPw1fZRUS1sPnaKPIAm2m6cwsyIqdvAHCySAZgYJSt+s="}]},"maintainers":[{"name":"rzr","email":"rzr@users.sf.net"},{"name":"rzrfreefr","email":"www.rzr.online.fr@gmail.com"}],"_npmUser":{"name":"rzr","email":"rzr@users.sf.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bh1750_0.0.7-0_1563192753937_0.132530264235861"},"_hasShrinkwrap":false},"0.0.7-1":{"name":"@abandonware/bh1750","description":"light sensor bh1750 with raspberry pi","author":{"name":"Miroslav Rúčka, Jos Hendriks"},"version":"0.0.7-1","main":"bh1750","scripts":{"start":"node example","test":"node example","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/miroRucka/bh1750.git"},"dependencies":{"@abandonware/i2c":"^0.2.4-1"},"keywords":["raspberry, raspberry pi, light, sensor, bh1750, ambient-light, iotjs-module"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"devDependencies":{"eslint":"^6.8.0"},"iotjs":{"version":">=1.0"},"gitHead":"a5b91132ac5a9ba858129b93685e35335decd634","bugs":{"url":"https://github.com/miroRucka/bh1750/issues"},"homepage":"https://github.com/miroRucka/bh1750#readme","_id":"@abandonware/bh1750@0.0.7-1","_nodeVersion":"10.18.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-XjIoTXc/hMos/KVJKBwAB8CURCCtQe45ZXe++X+2YIWnCMk6184XKFVhjJ6l7dK+jycK95n+dcuUT/LYB2JymQ==","shasum":"5ee1af1a8378ae6d3f53d49de41887f79ab83797","tarball":"https://registry.npmjs.org/@abandonware/bh1750/-/bh1750-0.0.7-1.tgz","fileCount":9,"unpackedSize":16579,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHLKkCRA9TVsSAnZWagAATQwP/331VdvFPFYCQA6YxeyD\nrHHsefNkFI0ldt9npkRjTgcKWReruDjxzAHxTcqurU6u6bOtbrZIpuED14fa\n4EkT2OWrRXIChwJrY8VwmZadO+SlX5aoIvKyhdDujinN/QfVNvT86+wHAXt/\n2aS8Rqt3h9fC4J1HClps5mKZgTpi9Jj5L+4pulGJj/2mOzxbu2ZA6hvIBLcw\nUeanLWzK5sM4UhSwEB9NBXZofLNaUm7bhfQaZKR+lpY0rw3SGIxtgC4N46fD\nTf14ZpuEs2zs+g37vLai7Y6c8HPdkHTHrXzzfdwWvq6M2hYIAK5vOyJr5vPr\nnsJ434qsxYHmu0w3zlisQkZk6QSE4OTSe6ZrRvei8sIda+CWm4b91y2xBOju\ncZKv0XN0Y+TaxU31nUEXtrzsp6mBNgRQxGbszAurg3C7zprytnn1TieQIwvf\nvcquVhUmylEmHGA0Pk4kwpNM5PIUd1a4FTBBJ5UjBqeyqrlc+Gi06PtSZhnm\nE1a4bFMz5BHFgT7Di5WH8nc++yw1zvTHnk6oujBbO2AwBygy3r8ZxUtwz42s\njmSlRIdcCdS0TAqwHqCa6t2nQMisXvOKMVeTcY3ChlssUxapwcoM5YvRdycN\nVZlTiY1yX9CGbDc67g/atG+a85zUmCcXR6oZ+4j4sLp8fA5Hl++6Ge62zYEP\nbyjl\r\n=c9kX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID4d9+ve7+zEdPIU55c/K5sjzdFUbPljRd3aqope5dMSAiBpeojhPUTtxiCjicdx54vax0kPVnWmsi12j7dHfbV7OQ=="}]},"maintainers":[{"name":"rzr","email":"rzr@users.sf.net"},{"name":"rzrfreefr","email":"www.rzr.online.fr@gmail.com"}],"_npmUser":{"name":"rzr","email":"rzr@users.sf.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bh1750_0.0.7-1_1578939044531_0.16686578228102733"},"_hasShrinkwrap":false},"0.0.7-2":{"name":"@abandonware/bh1750","description":"light sensor bh1750 with raspberry pi","author":{"name":"Miroslav Rúčka, Jos Hendriks"},"version":"0.0.7-2","main":"bh1750","scripts":{"start":"node example","test":"node example","lint":"eslint ."},"repository":{"type":"git","url":"git+https://github.com/miroRucka/bh1750.git"},"dependencies":{"@abandonware/i2c":"^0.2.4-1"},"keywords":["raspberry, raspberry pi, light, sensor, bh1750, ambient-light, iotjs-module"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"devDependencies":{"eslint":"^6.8.0"},"iotjs":{"version":">=1.0"},"gitHead":"c78cf9e8770f6f2e00249e5a1d0aaa56222fbf5a","bugs":{"url":"https://github.com/miroRucka/bh1750/issues"},"homepage":"https://github.com/miroRucka/bh1750#readme","_id":"@abandonware/bh1750@0.0.7-2","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-iiIJ+OdhrELTwf+ntPUSah+86Y9B4l+6hYG6feQJUBjXFeaRi+K+oMcTSM2mTdtOs6qOCVqfp9cuYJAPT8NuNA==","shasum":"92ea05c7e6cda13f6d40ac4fe433507568eb6205","tarball":"https://registry.npmjs.org/@abandonware/bh1750/-/bh1750-0.0.7-2.tgz","fileCount":9,"unpackedSize":16564,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVUCCCRA9TVsSAnZWagAAJDUP/09Ba6ZgEbzRzP7/zEz8\ngbfPhQ2a18EJCad0gp6HCD/umAlQCD7ZPG6gTqZQNJU5kOZdPiFCgD18Mzcu\nxIvL0GfjTs6/DyZLyHvxA9TioJFmcVPhMNN7/Us+I9AashSyRBNCrKVPwB8Q\nI9elBbp/KZ19e9dCyJhcOu1+lVh+KGqMeZsWKEAMp6PV5Vg5SbZOBLDX6Mo1\nQo66IpMdXKFdskZae8mR8GRtLkYVFyqN2LJ55N3ZBvrynOuYF5nlHsLRSNdL\n2u7Kks9M36Eniyv8gr9nXZLgmXp1tMYbpHdCb2OWw3WTasL1LYKalHV3/YNp\nCmFrA/yUugpc3A6VZL+4g09Ao7EcjnGGxVBWUwH9PYrtnzWw2kCgt8P6dCdI\nMUl6AewUvWrfzULN+l6q553I+d7yfsXL0fHjC5ln+9bcJnnQHVETMQRI5j67\n+u6Izief8D1Wqj25oO/3SVB8PtYKSmcZnDRbxy7kKksmvLMljco9soowSLli\n/MTsdnFAqOidtlEyACqKlbaVvK7VhYTB63JOSJ/wd3wkKRGrIxo+1kjnoDv6\nCnCaWhdTjE9/WwcxOLBRLKQlxU9MVaFWHGl32dPszRUf5+/04Q4Vywf5zWSU\nY1rx+NZexrz1h2+fwHA/SPLH7GH3G4cGm/Uh3q0i6zSYrD7tKarDFX6BTaRW\netxB\r\n=m6On\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDr5uCNvqEJgjil9BTzsXQZSVDMFiB9U8HrqiydJIh5uAiA/1C3vfh7jx3Fu+Qf+L/5z1K8GCCSFjXmIpRC8Bac73w=="}]},"maintainers":[{"name":"rzr","email":"rzr@users.sf.net"},{"name":"rzrfreefr","email":"www.rzr.online.fr@gmail.com"}],"_npmUser":{"name":"rzr","email":"rzr@users.sf.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bh1750_0.0.7-2_1582645378384_0.3134479596817461"},"_hasShrinkwrap":false},"0.0.7-3":{"name":"@abandonware/bh1750","description":"light sensor bh1750 with raspberry pi","author":{"name":"Miroslav Rúčka, Jos Hendriks"},"version":"0.0.7-3","main":"bh1750","scripts":{"start":"node example","test":"eslint .","lint":"eslint ."},"repository":{"type":"git","url":"https://github.com/miroRucka/bh1750"},"dependencies":{"@abandonware/i2c":"^0.2.4-1"},"keywords":["raspberry, raspberry pi, light, sensor, bh1750, ambient-light, iotjs-module"],"licenses":[{"type":"MIT","url":"http://mths.be/mit"}],"devDependencies":{"eslint":"^6.8.0"},"iotjs":{"version":">=1.0"},"license":"MIT","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2014 MIroslav Rúčka\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n\n","_id":"@abandonware/bh1750@0.0.7-3","dist":{"shasum":"6afadf19ad529a2a40c33af534aa82be05da7106","integrity":"sha512-vl1MfKVSVG0kepz2BxChY1S+5wLRWV8iYdtBEBNE3LQSArs69CpXb4vtS7WBAEVkTl1MbdXbegQ8/ixdC285aw==","tarball":"https://registry.npmjs.org/@abandonware/bh1750/-/bh1750-0.0.7-3.tgz","fileCount":16,"unpackedSize":61382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeYQbICRA9TVsSAnZWagAAAqIP/iSMDexZ83kaFuxtU53R\noNYZmaIiMnsN5Pi7UBnMSLW0YXQAgo/udtlfp/IUmK8j6izi4KJKNuEROHqe\n+qU+9cz02/uKrwyqKtiq6+GBt1xCYFHmPqHhUL1VZdGPhtz/ouu0IVgvqOAs\nxTw+c0TgpdBfsqcyysN6EPNZZR11hjhHe9CAMot+svzXCWO3eWUJC8DERf1s\nieoonV8/+593bHHETDXg4PQorCQFqqfgvWLgvnMhtgyFUZgzZPS/aWXUeVD/\nlUOZLwMtaFIZONc1O3vaNf0bJbAn3cFdmTPnn80fcKvB7QG9x+3Ql7Id/7BK\nrK6lTVdFUBEb/5omqZeXWjdBP2kgUGO9TF22hoQfb3uKg5m84LewY+jeC/2x\n5xhVLeENCwElbjMPbpVlphoR3Ozbb5hvm+pdipP7R2axgSpawNgcTubbJlqt\nD3/lnzj+yej8PkU5XSUhPcR4bE4k/CBBDlsRLRf8NeNK0dZPO6/nk+mrn/2M\nOVG4BY5TTtYiBxXDe037K1lJp14mrnC33USNHy1xJU25Xx9V9yhp+IFLOaZa\nk+9mSeczWZne5wwcTvUuS3NIbtDQ0yYfkjGrlK7jreMSi51oFSn6HPT48abK\nQ9MxJiepuEETul67cqsRdAXrypYPEXwD0gxZ2vBnVV3UVs0eo+ou8RBA5vgX\nMoXi\r\n=qlox\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAC72BY+H/6NpRbXi1E2WKpLTSyr8hVyXeq/WIrPOed2AiBe+QAaZORaiHh2Wxf2TkSH4FQSapjaZ2gKCvwTif5WuQ=="}]},"maintainers":[{"name":"rzr","email":"rzr@users.sf.net"},{"name":"rzrfreefr","email":"www.rzr.online.fr@gmail.com"}],"_npmUser":{"name":"rzr","email":"rzr@users.sf.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bh1750_0.0.7-3_1583417031859_0.16493935887511268"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-15T12:12:32.989Z","0.0.7-0":"2019-07-15T12:12:34.069Z","modified":"2022-04-04T10:56:50.090Z","0.0.7-1":"2020-01-13T18:10:44.696Z","0.0.7-2":"2020-02-25T15:42:58.626Z","0.0.7-3":"2020-03-05T14:03:51.969Z"},"maintainers":[{"name":"rzr","email":"rzr@users.sf.net"},{"name":"rzrfreefr","email":"www.rzr.online.fr@gmail.com"}],"description":"light sensor bh1750 with raspberry pi","keywords":["raspberry, raspberry pi, light, sensor, bh1750, ambient-light, iotjs-module"],"repository":{"type":"git","url":"https://github.com/miroRucka/bh1750"},"author":{"name":"Miroslav Rúčka, Jos Hendriks"},"readme":"# bh1750\n\nlight sensor BH1750 controlled by raspberry pi based on i2c lib\n\n[![GitHub forks](https://img.shields.io/github/forks/miroRucka/bh1750.svg?style=social&label=Fork&maxAge=2592000)](https://GitHub.com/miroRucka/bh1750/network/)\n[![dependencies Status](https://david-dm.org/miroRucka/bh1750/status.svg)](https://david-dm.org/miroRucka/bh1750)\n\n[![NPM](https://nodei.co/npm/bh1750.png)](https://npmjs.org/package/bh1750)\n\n## Usage\n\n### Usage with Node.JS runtime\n\n```sh\nnpm install\nnpm test\n# light value is:  20 lx\n\n```\n\n### Usage with IoT.js runtime\n\nFor constrained environments:\n\n```sh\niotjs example/index.js \n# light value is:  20.833333333333336 lx\n```\n\n### Code\n\n   ```javascript\n   var BH1750 = require('bh1750');\n   var light = new BH1750({\n        //options\n   });\n\n   light.readLight(function(err, value){\n       if (err) {\n           console.log(\"light error: \" + err);\n           throw err;\n       } else {\n           console.log(\"light value is: \", value, \"lx\");\n       }\n   });\n ```\n\n### Options\n\n    {\n        address: 0x23,\n        device: '/dev/i2c-1',\n        command: 0x10,\n        length: 2\n    }\n\n#### Possible commands\n\n     // No active state\n     0x00\n\n     // Wating for measurment command\n     0x01\n\n     // Reset data register value - not accepted in POWER_DOWN mode\n     0x07\n\n     // Start measurement at 1lx resolution. Measurement time is approx 120ms.\n     0x10\n\n     // Start measurement at 0.5lx resolution. Measurement time is approx 120ms.\n     0x11\n\n     // Start measurement at 4lx resolution. Measurement time is approx 16ms.\n     0x13\n\n     // Start measurement at 1lx resolution. Measurement time is approx 120ms.\n     // Device is automatically set to Power Down after measurement.\n     0x20\n\n     // Start measurement at 0.5lx resolution. Measurement time is approx 120ms.\n     // Device is automatically set to Power Down after measurement.\n     0x21\n\n     // Start measurement at 1lx resolution. Measurement time is approx 120ms.\n     // Device is automatically set to Power Down after measurement.\n     0x23\n\n## License\n\n(The MIT License)\n\nCopyright (c) 2013 Christophe Hamerling &lt;christophe.hamerling@gmail.com&gt;\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n## Resources\n\n* https://www.npmjs.com/package/bh1750\n* https://www.rohm.com/documents/11308/12926/CNA09016_sg.pdf\n* http://www.mouser.com/ds/2/348/bh1750fvi-e-186247.pdf\n* https://github.com/rzr/generic-sensors-lite\n* https://github.com/rzr/webthing-iotjs/wiki/Sensor\n","readmeFilename":"README.md","license":"MIT"}