{"_id":"@agilatech/zetta-rmy85000-linux-driver","_rev":"7-03cc4cdb93eb3cb04b36877871265998","name":"@agilatech/zetta-rmy85000-linux-driver","description":"Zetta RM Young 85000 driver for Linux","dist-tags":{"latest":"0.8.1"},"versions":{"0.8.0":{"name":"@agilatech/zetta-rmy85000-linux-driver","version":"0.8.0","description":"Zetta RM Young 85000 driver for Linux","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","dependencies":{"zetta-device":"*","zetta-scout":"*","@agilatech/rmy85000":"*"},"directories":{"example":"example"},"keywords":["zetta","sensor","RM Young","anemometer","wind","wind speed","beaglebone","raspberry pi"],"gitHead":"642667bad1d4122b2e0cbea16d577fd9d2a3998d","_id":"@agilatech/zetta-rmy85000-linux-driver@0.8.0","_shasum":"6538f7450724fe86e8382d4d3b3924457c32439c","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"agilatech","email":"scott@agilatech.com"},"dist":{"shasum":"6538f7450724fe86e8382d4d3b3924457c32439c","tarball":"https://registry.npmjs.org/@agilatech/zetta-rmy85000-linux-driver/-/zetta-rmy85000-linux-driver-0.8.0.tgz","integrity":"sha512-fzDRH4ts3q2lYzmR2Rula7IuBq/P0x6VNlnkyVirHjtMifsbhpzqWynsjYSmH8xfWH1Br5ZKO26pD+0TQQg1QA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIACu7gZP/B78jgqf+jwAVSgRlsZ09OJtLw1SwWNnadxHAiBwkS2o1lde1sZguqFNF427/Sh/pFteevV3+3FQHMOxIw=="}]},"maintainers":[{"name":"agilatech","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/zetta-rmy85000-linux-driver-0.8.0.tgz_1471903793148_0.9391021786723286"}},"0.8.1":{"name":"@agilatech/zetta-rmy85000-linux-driver","version":"0.8.1","description":"Zetta RM Young 85000 driver for Linux","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"license":"MIT","dependencies":{"zetta-device":"*","zetta-scout":"*","@agilatech/rmy85000":"*"},"directories":{"example":"example"},"keywords":["zetta","sensor","RM Young","anemometer","wind","wind speed","beaglebone","raspberry pi"],"gitHead":"c6939f2bf90da2a1ca070318755967faf2565df2","_id":"@agilatech/zetta-rmy85000-linux-driver@0.8.1","_shasum":"484d33999172127a5e939b1bd38a34b0f454e508","_from":".","_npmVersion":"2.15.9","_nodeVersion":"6.2.2","_npmUser":{"name":"agilatech","email":"scott@agilatech.com"},"dist":{"shasum":"484d33999172127a5e939b1bd38a34b0f454e508","tarball":"https://registry.npmjs.org/@agilatech/zetta-rmy85000-linux-driver/-/zetta-rmy85000-linux-driver-0.8.1.tgz","integrity":"sha512-eSoj8QLJjoBcOuwLkvoacBGS44YCB1HJmaYPG2gmWOTaxFQ06x1Oqog6zH1mlle0jN8OQBhd1lby2KpdFB1htw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBGzWe9jMGsAkpBS0trjP9eFZPy6lMEJxwgkETtqhkq1AiEAqP44krVhl6iCmLjTzCJnuJ8jQyo9z/dlir7MVSj69FU="}]},"maintainers":[{"name":"agilatech","email":"scott@agilatech.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/zetta-rmy85000-linux-driver-0.8.1.tgz_1477599138408_0.6906252957414836"}}},"readme":"##Zetta RM Young 85000 Anemometer 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-rmy85000-linux-driver\n```\nOR\n```\n$> git clone https://github.com/Agilatech/zetta-rmy85000-linux-driver zetta-rmy85000-linux-driver\n```\n###Usage\n\n```\nvar zetta = require('zetta');\nvar rmy85000 = require('@agilatech/zetta-rmy85000-linux-driver');\n\nzetta()\n.use(rmy85000, [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-rmy85000-linux-driver');\nzetta().use(sensor).listen(1107);\n```\nInitializes the rmy85000 driver on serial device /dev/ttyS0 with a data monitoring period of 60 seconds \nand 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\n####Monitored Properties\nIn the *chron-on* state and *active* operation, the driver software for this device monitors FIXME values in isochronal \nfashion with a period defined by *chronPeriod*:\n1. **speed** - wind speed in m/s\n2. **direction** - wind direction from 0-360 degrees\n\n\n####Streaming Properties\nIf the hardware is *active*, the driver software continuously streams FIXME values with a frequency defined by \n*streamPeriod*. Note that a *streamPeriod* of 0 disables streaming.\n1. **speedStream**\n2. **directionStream**\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###Design\n\nThis device driver is designed for both streaming and periodic monitored data collection from the RM Young 85000 \nseries ultrasonic anemometer.  The hardware measures wind speed from 0-60 m/s with an accuracy of ±0.1 m/s. Wind \ndirection is measured from 0-360 degrees with an accuracy of ±3 degrees.\n\nWind speed and direction values are instantaneous, with no averaging or time weighting performed.  Any analysis \nof averages and gusts will need to be performed downstream of this driver.\n\nThe hardware interfaces via RS-232 or RS-485, so your hardware must support one of these protocols.  The serial \ndevice file can be specified in the constructor.\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:38.152Z","created":"2016-08-22T22:09:53.382Z","0.8.0":"2016-08-22T22:09:53.382Z","0.8.1":"2016-10-27T20:12:18.657Z"},"keywords":["zetta","sensor","RM Young","anemometer","wind","wind speed","beaglebone","raspberry pi"],"license":"MIT","readmeFilename":"README.md"}