{"_id":"@agilatech/lynxari-fileout-application","_rev":"1-14364f76a2bc89b637bf75ccc7a75c9d","name":"@agilatech/lynxari-fileout-application","dist-tags":{"latest":"0.6.0"},"versions":{"0.6.0":{"name":"@agilatech/lynxari-fileout-application","version":"0.6.0","description":"Lynxari Server App for writing sensor data out to file","main":"loader.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"ssh://scott@209.200.216.6:22125/volume1/git_repos/lynxari-fileout-application"},"keywords":["file"],"author":{"name":"scotty","email":"scott@agilatech.com","url":"http://agilatech.com"},"license":"SEE LICENSE IN LICENSE","gitHead":"1b1e29a43e3f2f01f9f77fbfde0905950d6552d5","_id":"@agilatech/lynxari-fileout-application@0.6.0","_npmVersion":"6.0.0","_nodeVersion":"6.2.2","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"integrity":"sha512-/RwC2bXoJ/byb0Uc+pTZ5cg3afzQFsRb9WKVarure36rETlYdfM6gYuAze+YiIy+9P4apqPRWbdfuzKMmtgTpw==","shasum":"c776fad903e8497f1a7ccbf29647a32fbea30335","tarball":"https://registry.npmjs.org/@agilatech/lynxari-fileout-application/-/lynxari-fileout-application-0.6.0.tgz","fileCount":7,"unpackedSize":7939,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJ9eNCRA9TVsSAnZWagAAefgP/1ywAygrcTWhEtqjOH5W\ng3yUp/Y+zbJDc2balEP+rnCL+4UUcYnyz05bk05fPCoT1WjNwamU4L+xBTrI\ndkf0F3CnVIykcm7eKwf7OjdwYbiu3HhAXggPGh0UkwLWajOr7olFo3laIyv+\nHL+pMmFZjC+Jr/krT+zjUUYeuak36dyb1CBcYToypyA0JNJCC51Z4SkuYwkh\nmmVkC04RjGm3OF1FWKZvaSpPXK43BpAcy4bIUqinwP+asvLzGsJ3ljL+O1RI\nFf0OW6mGX3NiZpBZd2fZ5qLTjPz46Je56viBuRT+kS8LFlefnnzRz7bPBqFc\nhwkIFsyGU/94B3espS8g4JjsAzv+vN+nZ65F3CPt/ZjgbScH853jTRbY641u\nVeDnIUKW4I9zstCcaUBnGZ+6SIJvhaX39jDfqBSaAnSbDrMswglVo7SS5qIs\nk1tejKM1VfKSmxjFKXe4hXwwkCXs3Ah0TQ3GcqpCykBcs3ttrT28OdQYiA38\njsdP26RMJNqLED0OqhoaI3rHdv/427hm+tnMGAaGr0fevOEU7bKv02qull3X\nGhmc9sjxdZlddrZF0B5xfENGLUUjfhdJv0/1vuLgTvigiwh1giBj0MeJZfys\nfsqmyPG/IWyItGKRwVHC7O3IRjvMXu/iTZmGB1njYlKZ0d7FUz+VikCkGoDY\nDCZP\r\n=r9CW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCza8qhJOyIsvQAE++Q8bEvrKvpFS/0jX0+ZmMbZlneWgIgZH2TMuFvbo10TXrKwxrOE7eNMyhE6NmbIjzdsJMS/hw="}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lynxari-fileout-application_0.6.0_1529337740455_0.3966045824650448"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-18T16:02:20.355Z","0.6.0":"2018-06-18T16:02:20.504Z","modified":"2022-04-04T11:57:12.971Z"},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"description":"Lynxari Server App for writing sensor data out to file","keywords":["file"],"repository":{"type":"git","url":"ssh://scott@209.200.216.6:22125/volume1/git_repos/lynxari-fileout-application"},"author":{"name":"scotty","email":"scott@agilatech.com","url":"http://agilatech.com"},"license":"SEE LICENSE IN LICENSE","readme":"![Lynxari IoT Platform](https://agilatech.com/images/lynxari/lynxari200x60.png) **IoT Platform**\n## Lynxari Fileout Application\n\n### Install\n```\n$> npm install @agilatech/lynxari-fileout-application\n```\nInstall in the same directory in which lynxari is installed. Create a config.json file to suit.\n\n\n### Purpose\nThe purpose of this application is to write device data outputs to a file. It queries the system for device data properties and streams, and writes the results to file.\n\n\n### Usage\nThis application runs on the [Agilatech®](https://agilatech.com) Lynxari IoT platform.  As such, it is not applicable for other environments.\n\nTo use it with Lynxari, simply insert its object definition as an element in the apps array in the _applist.json_ file. On startup, the Lynxari server reads _applist.json_ and starts all applications found there.\n\nA _config.json_ configuration file must be present in the module's main directory. For this module, that will be within the Lynxari home directory in _node\\_modules/@agilatech/lynxari-fileout-application/config.json_\n\n\n### Configuration\nThe _config.json_ file defines an array of devices for which values will be saved. Each device definition is an object with the following elements:\n\n1. **name** : The name of the device -- this is used to query the platform for a connected device of the name. The query will fail if the name is not found. Also, a directory of this name will be created under the path for the data files.\n2. **path** : The directory path under which the device directory does or will reside. If not absolute, then it is relative to the Lynxari home directory.\n3. **values** : An array of values to store. These values are the names of the monitored values or value streams on the device.\n4. **files** : An array of files in which to store the values. This array should correspond to the values array, in that it should contain the same number of elements, and the indicies for values aligns with those of the files (i.e. the 2nd value element will be sotred in the 2nd file element).\n\nThere is no limit to the number of device objects which may appear in the **devices** array. The config.json file must be valid JSON.\n\nA sample config file:\n```\n{\n  \"devices\": [\n    {\n      \"name\": \"RMY85000\",\n      \"path\": \"/dev/lynxari/stationData\",\n      \"values\": [\n        \"speed\",\n        \"direction\",\n        \"gust_speed_stream\",\n        \"gust_direction_stream\"\n      ],\n      \"files\": [\n        \"speed\",\n        \"direction\",\n        \"gust_speed\",\n        \"gust_direction\"\n      ]\n    },\n    {\n      \"name\": \"TSL2561\",\n      \"path\": \"/dev/lynxari/stationData\",\n      \"values\": [\n        \"lux_stream\"\n      ],\n      \"files\": [\n        \"lux\"\n      ]\n    }\n  ]\n}\n```\n\n### Copyright\nCopyright © 2018 [Agilatech®](https://agilatech.com). 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","readmeFilename":"README.md"}