{"_id":"@agilatech/bmp183","_rev":"8-6291c3387df75ce20d41f29327ea5ca7","name":"@agilatech/bmp183","description":"Driver for the BMP183 Sensor","dist-tags":{"latest":"0.8.1"},"versions":{"0.8.0":{"name":"@agilatech/bmp183","version":"0.8.0","description":"Driver for the BMP183 Sensor","main":"./build/Release/bmp183","gypfile":true,"scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/bmp183.git"},"keywords":["Sensor","BMP183"],"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"license":"MIT","gitHead":"7888d69af7fe8b5f467a565fb8c3642672d8e055","bugs":{"url":"https://github.com/Agilatech/bmp183/issues"},"homepage":"https://github.com/Agilatech/bmp183#readme","_id":"@agilatech/bmp183@0.8.0","_shasum":"7e7d76110c4ed9e51a0ab0e7995ebd8cd0a1343e","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"agilatech","email":"scott@agilatech.com"},"dist":{"shasum":"7e7d76110c4ed9e51a0ab0e7995ebd8cd0a1343e","tarball":"https://registry.npmjs.org/@agilatech/bmp183/-/bmp183-0.8.0.tgz","integrity":"sha512-VEL6KcJ/UUCHOEFJiQpylCUGY9gS315eVsZsLx6c6fBsJ4Id5Te5Dw2Sj+vbQMr2wJoahUr3RT/O+1Er3BsQog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq6MrYY1rAJi+PlOwiG3Fz/3Aj4L0T0xnEpUprc1+0aAIgCR0pyuqldrTgzcXR280cl1k72e7CWcoDn42RVcA6aqo="}]},"maintainers":[{"name":"agilatech","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/bmp183-0.8.0.tgz_1481157548591_0.8917642270680517"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.8.1":{"name":"@agilatech/bmp183","version":"0.8.1","description":"Driver for the BMP183 Sensor","main":"./build/Release/bmp183","gypfile":true,"scripts":{"install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/bmp183.git"},"keywords":["Sensor","BMP183","Pressure","Barometric","Temperature"],"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"license":"MIT","gitHead":"00d9d12fe7eae54f6c585046dfb5d4e9f0d845f4","bugs":{"url":"https://github.com/Agilatech/bmp183/issues"},"homepage":"https://github.com/Agilatech/bmp183#readme","_id":"@agilatech/bmp183@0.8.1","_shasum":"8882ca5b508c39ebc24cdb9fdf9f14269ee258cd","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"agilatech","email":"scott@agilatech.com"},"dist":{"shasum":"8882ca5b508c39ebc24cdb9fdf9f14269ee258cd","tarball":"https://registry.npmjs.org/@agilatech/bmp183/-/bmp183-0.8.1.tgz","integrity":"sha512-z58gmstQJWj0ZgFvMkDdU1YYRgHX2LXzQuf0u0ErbfKYfklvALbWnRZzgjxGcIbcPFGHoKFkzMX9ZaDkQ5tPbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDva/xEjqGvZ6uqGb2t+01nQ60cYu5WtrCpdQK/knIrMgIhAKop73PjzLCn3Wi9t+l6QrRRkvb6vEXIt+6ADS283sry"}]},"maintainers":[{"name":"agilatech","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bmp183-0.8.1.tgz_1481213713628_0.9113052298780531"},"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"readme":"##Node addon for hardware BMP183 sensor\n\n#####This addon should work on any Linux platform, but has only been tested on BBB\n\n###Install\n\n```\nnpm install @agilatech/bmp183\n```\nOR\n```\ngit clone https://github.com/Agilatech/bmp183.git\nnode-gyp configure build\n```\n\n###Usage\n####Load the module\n```\nconst addon = require('@agilatech/bmp183');\n```\n\n####Create an instance using one of three available constructors\nMinimally specify the SPI device as an argument\n```\n// At a minimum, the constructor should contain one arg specifying the device.\n// create an instance on the /dev/spidev1.0 serial device file\nconst bmp183 = new addon.Bmp183('/dev/spidev1.0');\n// In practice, if omitted, a default device of /dev/spidev1.0 will be used\n```\nUnless you're at sea level, specify elevation in a second argument\n```\n// The second optional constructor argument is station elevation. \nconst bmp183 = new addon.Bmp183('/dev/spidev1.0', 1000);\n```\nOperational mode can be specified in a third argument\n```\n// Default mode is 3, but can be changed using a 3-arg constructor\nconst bmp183 = new addon.Bmp183('/dev/spidev1.0', 1000, 2);\n// 0 - Ultra Low Power Mode\n// 1 - Standard Mode\n// 2 - High Resolution Mode (default)\n// 3 - Ultra High Resolution Mode \n```\n####Get basic device info\n```\nconst name = bmp183.deviceName();  // returns string with name of device\nconst type = bmp183.deviceType();  // returns string with type of device (sensor, actuator, etc)\nconst version = bmp183.deviceVersion(); // returns this software version\nconst active = bmp183.deviceActive(); // true if active, false if inactive\nconst numVals =  bmp183.deviceNumValues(); // returns the number of paramters sensed\n```\n####Get parameter info and values\n```\n// pressure is at index 0\nconst paramName0 = bmp183.nameAtIndex(0);\nconst paramType0 = bmp183.typeAtIndex(0);\nconst paramVal0  = bmp183.valueAtIndexSync(0);\n```\n```\n// temperature is at index 1\nconst paramName1 = bmp183.nameAtIndex(1);\nconst paramType1 = bmp183.typeAtIndex(1);\nconst paramVal1  = bmp183.valueAtIndexSync(1);\n```\n####Asynchronous value collection is also available\n```\nbmp183.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\nThis driver is specific to the BMP183 pressure and temperature sensor manufactured by Bosch. It will output both \npressure in hPa (hectopascal, equal to millibar), and temperature in °C.  The measured pressure range is from \n300hPa to 1100hPa, while the measured temperature range is from -50°C to +55°C.\n\nAtmospheric pressure is directly related to elevation (altitude), so this software compensates for elevation and \nreports the result as if the sensor were at sea level. This removes the effect of station elevation on the reported \npressure. For this reason it is very important to specify the station elevation in the addon constructor.  Failure\nto specify elevation will default to 0, thus returning \"none\" or a wildly inaccurate pressure value for elevations\nabove sea level.\n\nIt is expected that this sensor will be used on the surface of the earth, subjected to the normal variations of\npressure caused by weather and air movements.  As such, any pressure results outside the extreme record variations\nencounted on the planet will be discarded as anomalies (1090 mbar < p < 850 mbar).  An anomalous reading is returned\nas \"none\".  Note that failure to supply a valid elevation may result in an anomalous reading, thereby returning\n\"none\" even when the sensor and driver are working properly.\n\n####Operational Mode\nThere are 4 different modes of operation, offering tradeoffs between power usage and accuracy. The driver defaults \nto the highest resolution, but this can be altered by specifying a different integer value as the 3rd constructor \nargument.  See the Bosch datasheet for full explanation.\n* 0 - Ultra Low Power Mode\n* 1 - Standard Mode\n* 2 - High Resolution Mode\n* 3 - Ultra High Resolution Mode\n\n###Dependencies\n* node-gyp is used to configure and build the driver\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:44:57.028Z","created":"2016-12-08T00:39:10.404Z","0.8.0":"2016-12-08T00:39:10.404Z","0.8.1":"2016-12-08T16:15:13.881Z"},"homepage":"https://github.com/Agilatech/bmp183#readme","keywords":["Sensor","BMP183","Pressure","Barometric","Temperature"],"repository":{"type":"git","url":"git+https://github.com/Agilatech/bmp183.git"},"author":{"name":"Scott Erholm","email":"scott@agilatech.com"},"bugs":{"url":"https://github.com/Agilatech/bmp183/issues"},"license":"MIT","readmeFilename":"README.md"}