{"_id":"@agilatech/zetta-bmp183-linux-driver","_rev":"6-503b5756fceab810e822110931df85ae","name":"@agilatech/zetta-bmp183-linux-driver","description":"Zetta BMP183 driver for Linux","dist-tags":{"latest":"0.8.0"},"versions":{"0.8.0":{"name":"@agilatech/zetta-bmp183-linux-driver","version":"0.8.0","description":"Zetta BMP183 driver for Linux","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","dependencies":{"zetta-device":"*","zetta-scout":"*","@agilatech/bmp183":"*"},"directories":{"example":"example"},"keywords":["zetta","sensor","pressure","barometric","BMP183","temperature","beaglebone","raspberry pi"],"gitHead":"d1620ce5891645ef980c2f31f06548a97270e433","_id":"@agilatech/zetta-bmp183-linux-driver@0.8.0","_shasum":"95b5026f11bf9ef0e74eda3d443fdf31092a60b9","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"agilatech","email":"scott@agilatech.com"},"dist":{"shasum":"95b5026f11bf9ef0e74eda3d443fdf31092a60b9","tarball":"https://registry.npmjs.org/@agilatech/zetta-bmp183-linux-driver/-/zetta-bmp183-linux-driver-0.8.0.tgz","integrity":"sha512-R+7r/SGKSrG48NK/xcO/mcETGz6nEYzwkejOrbCMiPQAjMJSq/ISzoMS+O0XZqCgQdU9jX08eCDnD09skXvctg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1VrO+kjeG2FzXQPpWwUF/LmCOykNnwDpE2B3QMq1NdQIgHEbZwu8cgijfWEhV7k5zsLZzVP7hoB3NWrqhfiz2TgQ="}]},"maintainers":[{"name":"agilatech","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/zetta-bmp183-linux-driver-0.8.0.tgz_1481219839935_0.7097224351018667"}}},"readme":"##Zetta bmp183 sensor driver for Linux\n\nThis driver should work on any Linux platform, and has been thoroughly tested on BeagleBone Black\n\n###Install\n```\n$> npm install @agilatech/zetta-bmp183-linux-driver\n```\nOR\n```\n$> git clone https://github.com/Agilatech/zetta-bmp183-linux-driver zetta-bmp183-linux-driver\n```\n###Usage\n\n```\nvar zetta = require('zetta');\nvar bmp183 = require('@agilatech/zetta-bmp183-linux-driver');\n\nzetta()\n.use(bmp183, [options])  // where [options] define operational paramters -- omit to accept defaults\n.listen(<port number>)   // where <port number> is the port on which the zetta server should listen\n```\n\n####[options]\nThese options are defined in a file named 'options.json' which may be overridden by program definitions\n\n```\n\"file\":\"<serial file device>\"\n/dev/ttyS0, /dev/ttyO2, etc...  Defaults to /dev/ttyS0\n\n\"chronPeriod\":<period>\nPeriod in milliseconds for monitored isochronal data\n\n\"streamPeriod\":<period>\nPeriod in milliseconds for streaming data. A value of 0 disables streaming.\n```\n\n####&lt;port number&gt;\nAgilatech has definied the open port number 1107 as its standard default for IIOT (Industrial Internet \nOf Things) server application. In practice, most any port above 1024 may be used by other organizations.\n\n\n###Example\nUsing directly in the zetta server:\n```\nconst zetta = require('zetta');\nconst sensor = require('@agilatech/zetta-bmp183-linux-driver');\nzetta().use(sensor).listen(1337);\n```\nInitializes the bmp183 driver on serial device /dev/ttyS0 with a data monitoring period of 60 seconds and streaming data every second\n\nTo override the options defined in the options.json file, supply them in an object in the use statement like this:\n```\nzetta().use(sensor, { \"file\":\"/dev/ttyS2\", \"chronPeriod\":30000, \"streamPeriod\":15000 });\n```\nOverrides the defaults to initialize the serial device on **/dev/ttyS2** with a data monitoring period of **30 seconds** and streaming data every **1.5 seconds**\n\n\n###Properties\nAll drivers contain the following 5 core properties:\n1. **state** : the current state of the device, containing either the value *chron-on* or *chron-off* \nto indicate whether the device is monitoring data isochronally (a predefinied uniform time period of device data query).\n2. **active** : a boolean value indicating whether of not the underlying hardware is operational and active.\n3. **id** : the unique id for this device.  This device id is used to subscribe to this device streams.\n4. **name** : the given name for this device.\n5. **type** : the given type for this device, usually containing the category of either *Sensor* or *Actuator*.\n\n\n####Monitored Properties\nIn the *chron-on* state and *active* operation, the driver software for this device monitors pressure and temperature values in isochronal fashion with a period defined by *chronPeriod*:\n1. **pressure** - Barometric pressure in hPa\n2. **temperature** - Tempereature in °C range from -50°C to +55°C\n\n\n####Streaming Properties\nIf the hardware is *active*, the driver software continuously streams pressure and temperature values with a frequency defined by *streamPeriod*. Note that a *streamPeriod* of 0 disables streaming.\n1. **pressureStream**\n1. **temperatureStream**\n\n\n###State\n**chron-off** is the beginning state.  The driver also enters this state after a transition '*stop-isochronal*' command.  \nIn this state, all monitored data values are set to 0, and no sensor readings are updated.\n\n**chron-on** is the state after a transition '*start-isochronal*' command.  In this state, all monitored data values are \nupdated every time period as specified by '*chronPeriod*'.\n\n###Transitions\n1. **start-isochronal** : Sets the device state to *chron-on* and begins the periodic collection of sensor data. \nProperty values are monitored, with a period defined by the 'chronPeriod' option (defaults to 60 sec).\n2. **stop-isochronal** : Sets the device state to *chron-off* and stops data collection for the monitored values.\n\n\n###Design\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 elevation on the reported pressure.\nFor this reason it is very important to specify the station elevation in the addon constructor.\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\n### Hardware\n\n* Beaglebone Black\n* Beaglebone Green\n* Should also work on Raspberry Pi as well as other Linux SBC\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","maintainers":[],"time":{"modified":"2022-06-12T14:21:37.603Z","created":"2016-12-08T17:57:20.151Z","0.8.0":"2016-12-08T17:57:20.151Z"},"keywords":["zetta","sensor","pressure","barometric","BMP183","temperature","beaglebone","raspberry pi"],"license":"MIT","readmeFilename":"README.md"}