{"_id":"@agilatech/lynxari-propagate-application","_rev":"2-742c51fac9fa5bd8094f50e2c359ada7","name":"@agilatech/lynxari-propagate-application","dist-tags":{"latest":"0.9.0"},"versions":{"0.8.0":{"name":"@agilatech/lynxari-propagate-application","version":"0.8.0","description":"Lynxari Server App for propagation from one device property to another device transition","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-propagate-application"},"keywords":["transition","propagation","property"],"author":{"name":"scotty","email":"scott@agilatech.com","url":"http://agilatech.com"},"license":"SEE LICENSE IN LICENSE","gitHead":"52ac6a7750b268db7b0c872bde7dca3eee1dc627","_id":"@agilatech/lynxari-propagate-application@0.8.0","_npmVersion":"6.0.0","_nodeVersion":"6.2.2","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"integrity":"sha512-6P3o7rt0seuVigd7KAJo3fncVCzlceojU9xVHY9EKmisFZ3fF+MpIQjEP4mnV4rIc6dM/jvoDwdK2ZQ7SLaupg==","shasum":"1b66a89fdbff4fde6d3b8d0bcf5bb740d2aedd13","tarball":"https://registry.npmjs.org/@agilatech/lynxari-propagate-application/-/lynxari-propagate-application-0.8.0.tgz","fileCount":8,"unpackedSize":10718,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJ9eoCRA9TVsSAnZWagAAdwcQAKMRdrqGeD64KRdV7YiQ\nsir3Wbv75WDI9KkCVVmdLTyO0koXIE1G0E9pi06/QsIIyWrcBWMvLSaGcP6N\nAM1T+PAdg05COSoCvpQ/KP20fHA569nsdFwhRJ3LnTK01MWrMxRjyMRJuS2E\nmnuNfyCIbi1vT3/esTmgSftAmnL5VOEpllgqoHx9lUmHSpaQgSZgOA81llKt\nOp5pDTrYPYGiIpDG5RjgothDv4TSraXFS+ZgLxKSL1nEM+Twerkel2o2SRSV\nFA3HDr5mwOTicaPVuqDBqkHGLZndhxQJxZfDELWeUsJ6FJWuxkSZfLX3mOV8\nSsVn0NHMCgvVTM2FxDFQayF4KH4tQqvQS5zgRoyD6NUTyMHHf0ygnloGrwap\nMKsfzshv1p1OMTmX36Hu0nONhRjzlhqmObtc+3W3SRJbyps0cQd6NNWHccgt\nbD7shjbsJHoYmtGtDW0zmcesBU3nf35PlVpoA+0BM8iGFWfuiVcESv49Rd21\nXPVyzqrULq3kXWnG6Hnl1VZLsIlhpaFP3Bny+POHaBY3rO7JQsVF2pywsVLg\n2WhpwXRyPO+5wlCnzOw2UTZo8PS98nqsmhqO1RvDbEjRTak5DFPzp2eBi1I2\nzW4mMgwJG3NC6mOr+pTir9uvABhvkIfTamn0qY8SeMmrJVbt/a03HF26JQWm\nJlYd\r\n=udj+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRzJ7pSOb6cdXucqLrONfsqQQscYbMJUk6A/zmg6wKEQIhAMJcOXB4jI693hgYmPv/dJ+EEtrE1pDb7K48DIA/KM6J"}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lynxari-propagate-application_0.8.0_1529337767519_0.9202370309323193"},"_hasShrinkwrap":false},"0.9.0":{"name":"@agilatech/lynxari-propagate-application","version":"0.9.0","description":"Lynxari Server App for propagation from one device property to another device transition","main":"loader.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/lynxari-propagate-application.git"},"keywords":["transition","propagation","property"],"author":{"name":"scotty","email":"scott@agilatech.com","url":"http://agilatech.com"},"license":"MIT","gitHead":"79f051cae2e7d7af0c33167cc11a964206bfd1c9","bugs":{"url":"https://github.com/Agilatech/lynxari-propagate-application/issues"},"homepage":"https://github.com/Agilatech/lynxari-propagate-application#readme","_id":"@agilatech/lynxari-propagate-application@0.9.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"integrity":"sha512-2jUUaMEvMO8Ahp5oiN1uj2eK+FaJXJgV3mXLiySUmkCTLPUmFXqavnaD9/IqNSDbK2zYBxhLVcVqa5faQU4Gmg==","shasum":"590b51a71c9e213be28c4da131609923284f3aa5","tarball":"https://registry.npmjs.org/@agilatech/lynxari-propagate-application/-/lynxari-propagate-application-0.9.0.tgz","fileCount":8,"unpackedSize":10700,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeucCrCRA9TVsSAnZWagAABecP/A1KrOw9GRqCH5Rs/7Ye\nsLhmja76RnsCM6KOJFheqE9LbbzwUBrU32+khknFXyp+anI0zPn/jHjo40dG\neJuV8yapb0mNh7dLW1mnQdMNYaqvIPCKs1w4oGJXUMafsmQ3jPJVuEMRYBf/\nK6vsw0E5HOeFaJPAchXSOZW9DEYkRS4oYA5v1I4kOFh87QVUjXdrfEz3cvfy\nmomxAKWriPstLONIzxlI8iGLAsquR5H5XBttN+4x5W8Eth+7WqfZlS2uAU9E\n0hVMTOFfHW/+Wu85rb3eIPCv2P4kv6uKVBUlALKURXMSuITFHzTUdH7QyhxW\nfm2+KJhgF7DwV+w0nLe1BrJNUR0sw6kCR/gZSInFPZPnCytAuVHFULfCxQ1w\nmTEAs856Fyx77jeoGvCK1ElFlTOKjUX8P4t2VhtfQMO9qe3v/NXng0+NaFI4\nbG3BjZ8gGDEyL1p549BcSd2eIEV1RrFH7Go+Rm6E94jq8ysjM1+ArAsDEVVs\nxlUHSv8a9gJjse+E5aHqO8SHNP4RGVieTs7H8KHkeV8XN1d1S+p6KQLed7Qx\nhOdZFB8aX4P8zjh8TyyABj7k94LT9n1vZFKJCysSnB34GpWL6kg2a5/38Tiz\n4AgTFGXMxMogY4PFfmPGz6174Pna4jNHnOzI237B5bdjtmVl1DLsL/vBpNbk\nAHun\r\n=846u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDY36khxjltqyW/gIvmtoDLAVGExssjeW0Ffmuwz0NxPAiEAxrxh2KpT6c3NlCg4JZw2zDnpp6mOL0ldKqdv/BA0L/g="}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lynxari-propagate-application_0.9.0_1589231787264_0.6804147941071872"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-18T16:02:47.327Z","0.8.0":"2018-06-18T16:02:47.562Z","modified":"2022-04-04T11:57:14.278Z","0.9.0":"2020-05-11T21:16:27.386Z"},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"description":"Lynxari Server App for propagation from one device property to another device transition","keywords":["transition","propagation","property"],"repository":{"type":"git","url":"git+https://github.com/Agilatech/lynxari-propagate-application.git"},"author":{"name":"scotty","email":"scott@agilatech.com","url":"http://agilatech.com"},"license":"MIT","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 propagate the output from one device to a call on another. A simple example would be using the output of a ambient light sensor to turn on a floodlight device. The application can handle more complex transactions, and can be used to chain events along many devices.\n\nDevices can reside on different servers as long as the servers are linked as peers.\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 connections. Each connection element in the array defines a from-to propagation between two devices. The connection object is further composed of two more objects, the **fromDevice** and **toDevice**. The fromDevice object defines server, device, and property from where the data originates, while the toDevice defines the server, device, and transition which will be called.\n\n**fromDevice** :\n1. **server** : The name of the server on which to query the device. If ommited, defaults to the local server.\n2. **name** : The name of the device which owns the data property.\n3. **property** : The data property whose arrival will trigger the call.\n\n**toDevice** :\n1. **server** : The name of the server on which the receiving device is connected. If ommited, defaults to the local server.\n2. **name** : The name of the device which on which the transition will be called.\n3. **transitions** : An array of transitions to be called each and every time the propagation is triggered.\n\n  **transitions** :\n  1. **transition** : The name of the transition (call) to made on the device.\n  2. **arguments** : An array of arguments to be passed in the call. If none, provide an empty array.\n  3. **acceptsMessage** : **true** | **false** Boolean value to indicate whether the transition call wishes to receive the message from the fromDevice. \n\nA sample config file:\n```\n{\n    \"connections\": [\n        {\n            \"fromDevice\": {\n                \"server\": \"shop1\",\n                \"name\": \"NorthShopSwitch\",\n                \"property\": \"level\"\n            },\n            \"toDevice\": {\n                \"server\": \"shop1\",\n                \"name\": \"NorthShopLight\",\n                \"transitions\": [\n                    {\n                        \"transition\": \"toggle-output\",\n                        \"arguments\": [],\n                        \"acceptsMessage\": false\n                    }\n                ]\n            }\n        },\n        {\n            \"fromDevice\": {\n                \"name\": \"CanalWaterLevel\",\n                \"property\": \"highwater\"\n            },\n            \"toDevice\": {\n                \"name\": \"Floodgate1\",\n                \"transitions\": [\n                    {\n                        \"transition\": \"open-valve\",\n                        \"arguments\": [],\n                        \"acceptsMessage\": true\n                    }\n                ]\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","homepage":"https://github.com/Agilatech/lynxari-propagate-application#readme","bugs":{"url":"https://github.com/Agilatech/lynxari-propagate-application/issues"}}