{"_id":"@agilatech/lynxari-snapshot-application","_rev":"2-d2873c503f40dc680ace1a80a0b63db3","name":"@agilatech/lynxari-snapshot-application","dist-tags":{"latest":"0.9.0"},"versions":{"0.8.0":{"name":"@agilatech/lynxari-snapshot-application","version":"0.8.0","description":"Lynxari Server App for downloading a webcam image from an external server","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-snapshot-application"},"keywords":["photo","webcam","image"],"dependencies":{"request":"*","solar-calc":"*"},"author":{"name":"scotty","email":"scott@agilatech.com","url":"http://agilatech.com"},"license":"SEE LICENSE IN LICENSE","gitHead":"e9300b7a17ecc9d352f1c061920cb817835f9118","_id":"@agilatech/lynxari-snapshot-application@0.8.0","_npmVersion":"6.0.0","_nodeVersion":"6.2.2","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"integrity":"sha512-8/Q5tQNFgDexql1/rPcMKaum11dWGG79Da5p4FHPLZFTRQBPFoFowh8c6lCKW6/MqMRtDoqEDdMZave4NPluvA==","shasum":"4971482b07822914f56467e95e186fb3d1e42317","tarball":"https://registry.npmjs.org/@agilatech/lynxari-snapshot-application/-/lynxari-snapshot-application-0.8.0.tgz","fileCount":7,"unpackedSize":10064,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbJ9eyCRA9TVsSAnZWagAAtc4P/2Lggie+a+hfzJX/XR49\nk8YfGgvnlYK0kUx3VNQxSWuBsJKJeBYerg4FQZp2Ied78iXYCMWrJ/pXKGX+\n8rYUq3xDS+h6d7DWx/+Mvf5Bw+vOteMoNy7MnvnZSBnf8gBLr/5x0oXPXsJ4\nP0JIxcH0oa/lgUd/NuUyVJX4Y5mLyQRYuSqRXgeXvmqjcMrCNc/AXNIDi7/d\n3QGVycwhZKqCuTaUTQIE9kDIlSlo6ihOVZXv6gJ1s4yNaiA1a9xTSUMm7BEZ\nOViKMUwqN6D8pmlUxK+tozgMe515gaRVbbAOdfGm2AB38aQ/OkcziYzG6fF9\n5721dUTaoa3K+enBTxEkEirIht19jyjCppTDUDWKeFOL3kyo4Yku2AnSt5/a\ndKpa/LqXX4MHoCS51D5MewKrcYQR8WmWSng5DIbOiH9gfDKut+o3BXRvnocQ\n+3nsew4vSc3+i5kiqtoCliPNboouLyx4yUc7fE7XT8VqZhIcQsn0I0b7joGm\n4/98YtDUfwikT8NVeJ74gpwd72mJwxFmfyMuIaeGueNeT3n0Fy8oD9SelhGa\nxXstAQO8gXbSdFPnOIQbZ/MNKkMva8JGGmi26oYvSDyVNibDpCf6+s/MSDoG\nqPoDIk5U336oyZOogh7kvrazdlkij31tETxItgsP+SES9BlrQXE61Ke+J9zX\nRlP/\r\n=mSWh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG87gltxXPwXKWhWO5BwuDtsendbpo2c54p20goKX1ZQAiAYUrweDNWGrPq9s8TLpmg1hY8lFr/uAbfqeZyuYx8fuQ=="}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lynxari-snapshot-application_0.8.0_1529337777394_0.9159188814192307"},"_hasShrinkwrap":false},"0.9.0":{"name":"@agilatech/lynxari-snapshot-application","version":"0.9.0","description":"Lynxari Server App for downloading a webcam image from an external server","main":"loader.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/Agilatech/lynxari-snapshot-application.git"},"keywords":["photo","webcam","image"],"dependencies":{"request":"*","solar-calc":"*"},"author":{"name":"scotty","email":"scott@agilatech.com","url":"http://agilatech.com"},"license":"SEE LICENSE IN LICENSE","gitHead":"af767d55e61914234479cc7496f62de35453c8f0","bugs":{"url":"https://github.com/Agilatech/lynxari-snapshot-application/issues"},"homepage":"https://github.com/Agilatech/lynxari-snapshot-application#readme","_id":"@agilatech/lynxari-snapshot-application@0.9.0","_npmVersion":"6.4.1","_nodeVersion":"10.8.0","_npmUser":{"name":"scotty","email":"scott@agilatech.com"},"dist":{"integrity":"sha512-OgTLVfPJHQcDFBI4NDEPh8QtyOZ5RiVfZwJrxItb5Jy27VnQt6luvEV2RIDSguDhLgCkoCCqEjLOzIN/k7yDig==","shasum":"946c542e749ba29f50e38966c59bbd7ee94d34a8","tarball":"https://registry.npmjs.org/@agilatech/lynxari-snapshot-application/-/lynxari-snapshot-application-0.9.0.tgz","fileCount":6,"unpackedSize":10248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbqqSYCRA9TVsSAnZWagAAjFkP/irZL8Wssms7XzS9g+3/\nT0zMX5nQyt9JWdtB/X7sESZa8hfixIDJ/flaJGWo18yiOPt8fTt42eCypF9x\nWWgmJOT8NXJbegO/DuqUkrpWmMHWyY9Hjy3ployhl6xWsRc6HUgwex/APc1N\n+MpsEiK/om0HLSxqleFffXaofSc0EvryuUf7jvtHsBi1TRR4YdiMlbqtZhHh\nwU8FONYt9CArSzb4XmF4ZKFr5IE98KJK+le9Wxrn9LQE4SpfaXljXU8fF+VV\nfBv5eL4OuLKFIWMkZhRMPW9xlHbAgJ+7qx8ehp8maM6tlxmrCo8LOK5S7/i6\noh/QKMNNeYUJ0zHudk1lSqmsL+2q4NbP60o6t+FBcNWV5ttkNQyHlCF14qgT\nLoVwycz80q7aKyC1ZHMok05vjDzN3SHkKUy1k/6Wq363gDBbPyGceONQdUMw\nHlmnHxQLAKgTxCNJvuWmWu1A+HjegjqdFzgepQmT4eOE80Udo3hD1GPwU8c8\nxdkQer3uZvkwtMbe77Ssy+o4PkBfoPCTtwcspl7iugK35ZueiFQrnrgNgCcq\n2zZAhM2AReuGKAFrIKcpJawsZUwQ2ThVcu4N8oj/cdW7wslc87/kX0W2Nb+u\nXwA2tXzD4589dWy9YubdyRpASF90DhhuUEMcBZd+mFuRrSRgmwfI+8iNf431\nQQJK\r\n=Suwu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxsJI7gTwzuokoIXXSKTTpt0dRv0WZjBn9m12VthBcIAiEAn6aqnwsz6eah0sblvqDR4GFkwAzdwPP51LQ0OaIPBCs="}]},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lynxari-snapshot-application_0.9.0_1537909911620_0.04190038799510254"},"_hasShrinkwrap":false}},"time":{"created":"2018-06-18T16:02:57.189Z","0.8.0":"2018-06-18T16:02:57.487Z","modified":"2022-04-04T11:57:15.399Z","0.9.0":"2018-09-25T21:11:51.836Z"},"maintainers":[{"name":"scotty","email":"scott@agilatech.com"}],"description":"Lynxari Server App for downloading a webcam image from an external server","keywords":["photo","webcam","image"],"repository":{"type":"git","url":"git+https://github.com/Agilatech/lynxari-snapshot-application.git"},"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 Snapshot Application\n\n### Install\n```\n$> npm install @agilatech/lynxari-snapshot-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 capture a still image from a Web cam. It is intended for outdoor image capture, so it will only grab the image during daylight. Daylight can be detected either via external light sensor, or by using Lat and Lon to track sunrise and sunset.\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-snapshot-application/config.json_\n\n\n### Configuration\nThe _config.json_ file defines an array of sources from which images will be captured. Each source contains the following:\n\n1. **name** : The name of the camera. This is only used for logging purposes.\n2. **url** : The full URL to the camera's still image.\n3. **timeout** : The number of milliseconds to wait for the camera to respond to the image request. _optional_ Defaults to 3000 if not supplied.\n3. **destination** : A full path to the file where the image will be stored on the local file system.\n4. **period** : The number of minutes between image captures.\n5. **light** : An object defining the the minimum light necessary to capture the image. Further explanation...\n\n  **light**\n  1. **lat** : The latitude of the camera. Only used if ambient light sensor is NOT used.\n  2. **lon** : The longitude of the camera. Only used if ambient light sensor is NOT used.\n  3. **server** : The name of the server peer containing an ambient light sensor. Defaults to local server if not given.\n  4. **sensor** : The name of the light sensor device from which light levels are taken.\n  5. **property** : The ambient light data property on the device.\n  6. **lowlight** : The numerical value of the light property which is considered the lowlight cutoff.\n\n  Note that _either_ lat and lon _or_ light sensor should be defined. If all parameters of the light sensor are given it will be used, but any single one is missing then the sunrise/sunset for the location will be used. If neither the light sensor or the earth position are properly defined, then the snapshot will be disabled for that camera source.\n\nThere is no limit to the number of source objects which may appear in the **sources** array. The config.json file must be valid JSON.\n\nA sample config file:\n```\n{\n  \"sources\":[\n    {\n      \"name\":\"North Cam\",\n      \"url\":\"http://username:password@192.168.1.102/snapshot.jpg\",\n      \"destination\":\"/home/agt/webcam/latest.jpg\",\n      \"period\":\"5\",\n      \"light\":{\n        \"lat\":42.949009,\n        \"lon\":-110.140349,\n        \"server\":\"agt1\",\n        \"sensor\":\"SI1145\",\n        \"property\":\"visible\",\n        \"lowlight\":5 \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-snapshot-application#readme","bugs":{"url":"https://github.com/Agilatech/lynxari-snapshot-application/issues"}}