{"_id":"harmonyhubjs-discover","_rev":"10-fccb62fb958abfb0b07d23a1563a32ce","name":"harmonyhubjs-discover","description":"Discover available Logitech Harmony Hubs in the current network.","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"harmonyhubjs-discover","version":"1.0.0","description":"Discover available Logitech Harmony Hubs in the current network.","keywords":["logitech","harmony","hub","remote","api","discover","search"],"main":"index.js","repository":{"type":"git","url":"https://github.com/swissmanu/harmonyhubjs-discover"},"author":{"name":"Manuel Alabor","email":"msites@msites.net"},"license":"MIT","bugs":{"url":"https://github.com/swissmanu/harmonyhubjs-discover/issues"},"homepage":"https://github.com/swissmanu/harmonyhubjs-discover","dependencies":{"debug":"^2.1.0"},"gitHead":"e87151a73f67e29f50b982cb6512a891944d2443","_id":"harmonyhubjs-discover@1.0.0","scripts":{},"_shasum":"b2d613c46c45e93da3610244174ad6c18a04dcea","_from":".","_npmVersion":"2.1.4","_nodeVersion":"0.11.14","_npmUser":{"name":"swissmanu","email":"msites@msites.net"},"maintainers":[{"name":"swissmanu","email":"msites@msites.net"}],"dist":{"shasum":"b2d613c46c45e93da3610244174ad6c18a04dcea","tarball":"https://registry.npmjs.org/harmonyhubjs-discover/-/harmonyhubjs-discover-1.0.0.tgz","integrity":"sha512-Wc5N7/8zXGKkYr4ziZ5evb9EjURnpNPEB05iroHYx6uiiKB4FYDZbmiIuPptBjTsZQtuDjpYU4eUFqTrGe7kBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbb+H9dQRkMJmOahmIX7RBuV3+R1kLX/4Ldh4fDGLxcQIhALBkJSwaR/S1iZmC8XFTGwOp5j1lb1GDDk8mi43V1Elv"}]}},"1.0.1":{"name":"harmonyhubjs-discover","version":"1.0.1","description":"Discover available Logitech Harmony Hubs in the current network.","keywords":["logitech","harmony","hub","remote","api","discover","search"],"main":"index.js","repository":{"type":"git","url":"https://github.com/swissmanu/harmonyhubjs-discover"},"author":{"name":"Manuel Alabor","email":"msites@msites.net"},"license":"MIT","bugs":{"url":"https://github.com/swissmanu/harmonyhubjs-discover/issues"},"homepage":"https://github.com/swissmanu/harmonyhubjs-discover","dependencies":{"debug":"^2.1.0"},"gitHead":"d2b75c1e00387240724c068b0f9144920e675284","_id":"harmonyhubjs-discover@1.0.1","scripts":{},"_shasum":"1ecc29fb521bd55737339d00f1b83c2c71a6b27e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"swissmanu","email":"msites@msites.net"},"maintainers":[{"name":"swissmanu","email":"msites@msites.net"}],"dist":{"shasum":"1ecc29fb521bd55737339d00f1b83c2c71a6b27e","tarball":"https://registry.npmjs.org/harmonyhubjs-discover/-/harmonyhubjs-discover-1.0.1.tgz","integrity":"sha512-7G+Q3bi8upWa3Lsvcz56QI+Gt8xhzxLQ1KRoP1ANIIIS1VUYEseJIhSJdZxc8x+3oRhhrNtniJOnXw9TPj0vMQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0va/xAI7UVR0I4Xlw2h4PkHhncrNWnZ30s8592qNGCQIhALqShwDbqcqEQZ+Jn5TR2e20MmgGrJe44nlmIoWIi0Mf"}]}},"1.0.2":{"name":"harmonyhubjs-discover","version":"1.0.2","description":"Discover available Logitech Harmony Hubs in the current network.","keywords":["logitech","harmony","hub","remote","api","discover","search"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/swissmanu/harmonyhubjs-discover.git"},"author":{"name":"Manuel Alabor","email":"msites@msites.net"},"license":"MIT","bugs":{"url":"https://github.com/swissmanu/harmonyhubjs-discover/issues"},"homepage":"https://github.com/swissmanu/harmonyhubjs-discover","dependencies":{"debug":"^2.1.0"},"gitHead":"03b1e850b6812ac0eda014edf3239f4a249a61f8","_id":"harmonyhubjs-discover@1.0.2","scripts":{},"_shasum":"1764299e05481bb0a5e0c3712597c74003779c82","_from":".","_npmVersion":"3.4.0","_nodeVersion":"4.2.2","_npmUser":{"name":"swissmanu","email":"msites@msites.net"},"maintainers":[{"name":"swissmanu","email":"msites@msites.net"}],"dist":{"shasum":"1764299e05481bb0a5e0c3712597c74003779c82","tarball":"https://registry.npmjs.org/harmonyhubjs-discover/-/harmonyhubjs-discover-1.0.2.tgz","integrity":"sha512-4vEZXBhlAyPRjL/IBwx02b/AMFKHLPT8wEYjs733PoA/4QUhuPeb749cj769rNjf2CZRGld+hvvGDCl0DqXm3A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8ZPugnKEseFP8FQfsvFspy9QdPHHtZgKjVY9Lkd7R0wIgOYmvOHN/hEoTH89YamzWFhQzZU85T3gFYxCLht8Pkc4="}]}},"1.0.3":{"name":"harmonyhubjs-discover","description":"Discover available Logitech Harmony Hubs in the current network.","keywords":["logitech","harmony","hub","remote","api","discover","search"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/swissmanu/harmonyhubjs-discover.git"},"author":{"name":"Manuel Alabor","email":"manuel@alabor.me"},"license":"MIT","bugs":{"url":"https://github.com/swissmanu/harmonyhubjs-discover/issues"},"scripts":{"test":"standard","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"homepage":"https://github.com/swissmanu/harmonyhubjs-discover","dependencies":{"debug":"^2.1.0"},"devDependencies":{"cz-conventional-changelog":"^1.1.5","standard":"^5.4.1","semantic-release":"^4.3.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"version":"1.0.3","gitHead":"f07dcc204316ab330589b8327d971cbb198ccccf","_id":"harmonyhubjs-discover@1.0.3","_shasum":"9f63dcd39a2be8d91f06992a8e02b39ad95612c9","_from":".","_npmVersion":"2.15.12","_nodeVersion":"4.8.4","_npmUser":{"name":"swissmanu","email":"manuel@alabor.me"},"dist":{"shasum":"9f63dcd39a2be8d91f06992a8e02b39ad95612c9","tarball":"https://registry.npmjs.org/harmonyhubjs-discover/-/harmonyhubjs-discover-1.0.3.tgz","integrity":"sha512-TrT4HJyTAKMtJN3K7MSrGQ/HzDsUXwWRw1KyK7IuofViNal2QCtK1q3CMMzmcErdy6M7C+HVYUQwZf8TP4ADYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClKotYoR1jYqH9VJlIH9ATkiOagA32ErVGgIH8pOaUQgIgO8wnHVbtmyDxWpqgjL+M9OBXCA6VLGq5/x5DQ+txaRA="}]},"maintainers":[{"name":"swissmanu","email":"msites@msites.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/harmonyhubjs-discover-1.0.3.tgz_1502260201631_0.6020963198971003"}},"1.1.0":{"name":"harmonyhubjs-discover","description":"Discover available Logitech Harmony Hubs in the current network.","keywords":["logitech","harmony","hub","remote","api","discover","search"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/swissmanu/harmonyhubjs-discover.git"},"author":{"name":"Manuel Alabor","email":"manuel@alabor.me"},"license":"MIT","bugs":{"url":"https://github.com/swissmanu/harmonyhubjs-discover/issues"},"scripts":{"test":"standard","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"homepage":"https://github.com/swissmanu/harmonyhubjs-discover","dependencies":{"debug":"^2.1.0"},"devDependencies":{"cz-conventional-changelog":"^1.1.5","standard":"^5.4.1","semantic-release":"^4.3.5"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"version":"1.1.0","gitHead":"af61a48e3ff63f2d97e2324db89c81d11b14d68d","_id":"harmonyhubjs-discover@1.1.0","_shasum":"2291171874148a9ea668017df1dce92435caab18","_from":".","_npmVersion":"2.15.12","_nodeVersion":"4.8.7","_npmUser":{"name":"swissmanu","email":"manuel@alabor.me"},"dist":{"shasum":"2291171874148a9ea668017df1dce92435caab18","tarball":"https://registry.npmjs.org/harmonyhubjs-discover/-/harmonyhubjs-discover-1.1.0.tgz","integrity":"sha512-qOKTcAzSfOcIv7iy/ADdA/Q9Ep2cXxV/RC8vsoNsx2M9TVQTCI718n0/3FJs0SzrQtLYDGzIdmZnAR7jIdkOVw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBlk7mCWaq/t8rz3xspojb1eDOccIHjOHfnRRK8UE3YFAiEA3aspy/XnxBeSs3+tTt2ZW6FN+Y4aLXUyBEA5QY0xRf4="}]},"maintainers":[{"name":"swissmanu","email":"msites@msites.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/harmonyhubjs-discover-1.1.0.tgz_1513781127347_0.47696499060839415"}},"1.1.1":{"name":"harmonyhubjs-discover","description":"Discover available Logitech Harmony Hubs in the current network.","keywords":["logitech","harmony","hub","remote","api","discover","search"],"main":"index.js","repository":{"type":"git","url":"git+https://github.com/swissmanu/harmonyhubjs-discover.git"},"author":{"name":"Manuel Alabor","email":"manuel@alabor.me"},"license":"MIT","bugs":{"url":"https://github.com/swissmanu/harmonyhubjs-discover/issues"},"scripts":{"test":"standard","semantic-release":"semantic-release pre && npm publish && semantic-release post"},"homepage":"https://github.com/swissmanu/harmonyhubjs-discover","dependencies":{"debug":"^2.1.0"},"devDependencies":{"cz-conventional-changelog":"^1.1.5","standard":"^5.4.1","semantic-release":"^8.2.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"version":"1.1.1","gitHead":"f909f3e94bb802e6761f98ed4aae245cd4797d2f","_id":"harmonyhubjs-discover@1.1.1","_shasum":"72e3b9ab2ec228f25c698538056c6a41221b8ff3","_from":".","_npmVersion":"3.10.10","_nodeVersion":"8.9.3","_npmUser":{"name":"swissmanu","email":"manuel@alabor.me"},"dist":{"shasum":"72e3b9ab2ec228f25c698538056c6a41221b8ff3","tarball":"https://registry.npmjs.org/harmonyhubjs-discover/-/harmonyhubjs-discover-1.1.1.tgz","integrity":"sha512-prqSPL/pyrVPl2JDWTaMqzPkvu30VplAJCttcmJOHbWhQ7O2SRggdH0oUwsKwf7f3muZOz9Sq2QwMiVOR30mHg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIJealmkWAxnZZYPzuLZcuHFL+LjBFMhThjzcExQqgDAIhAJHhY+14UfR5Ht5KLs9D31GCZP78Z6gy86ehTIV96kNU"}]},"maintainers":[{"name":"swissmanu","email":"msites@msites.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/harmonyhubjs-discover-1.1.1.tgz_1513782056283_0.946581058902666"}}},"readme":"# harmonyhubjs-discover\n[![Build Status](https://travis-ci.org/swissmanu/harmonyhubjs-discover.svg)](https://travis-ci.org/swissmanu/harmonyhubjs-discover) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/) [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/) [![npm version](https://badge.fury.io/js/harmonyhubjs-discover.svg)](http://badge.fury.io/js/harmonyhubjs-discover) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n`harmonyhubjs-discover` is a Node.JS library which lookups available Logitech Harmony hubs in the local network.\n\n\n## Installation\n\n```bash\nnpm install harmonyhubjs-discover --save\n```\n\n## Usage\n\n```javascript\nconst HarmonyHubDiscover = require('harmonyhub-discover')\nconst discover = new HarmonyHubDiscover(61991)\n\ndiscover.on('online', function(hub) {\n\t// Triggered when a new hub was found\n\tconsole.log('discovered ' + hub.ip)\n})\n\ndiscover.on('offline', function(hub) {\n\t// Triggered when a hub disappeared\n\tconsole.log('lost ' + hub.ip)\n})\n\ndiscover.on('update', function(hubs) {\n\t// Combines the online & update events by returning an array with all known\n\t// hubs for ease of use.\n\tconst knownHubIps = hubs.reduce(function(prev, hub) {\n\t\treturn prev + (prev.length > 0 ? ', ' : '') + hub.ip\n\t}, '')\n\n\tconsole.log('known ips: ' + knownHubIps)\n})\n\n// Look for hubs:\ndiscover.start()\n\n// Stop looking for hubs again:\n// discover.stop()\n```\n\n### Further Examples\n\nThere are further examples available within the [examples/](examples/) directory.\n\n## Control your hub\n\nAfter looking up your Harmony hub, use [harmonyhubjs-client](https://github.com/swissmanu/harmonyhubjs-client) to control it.\n\n\n## Debug Traces\n\n`harmonyhubjs-discover` uses [debug](https://github.com/visionmedia/debug) for generating traces throughout its execution time. Activate them by setting the `DEBUG` environment variable:\n\n```bash\nDEBUG=harmonyhubjs:discover:* node myharmonyjsapp.js\n```\n\n## Contribution\n\nThe `master` branch contains the latest stable release of the application.\nDevelopment efforts are integrated with the `develop` branch first. Changes get then merged into `master` as soon as a new release should be published.\n\nWhen opening a new Pull Request make sure you point them to `develop`. Further ensure that your code follows [standard-js](http://standardjs.com/) style guidelines and you make use of proper commit messages. `harmonyhubjs-discover` loves [Commitizen](http://commitizen.github.io/cz-cli/), so take a look there and use `git cz` for the most simple workflow :-)\n\nThank you for your contribution!\n\n## License\n\nCopyright (c) 2014 Manuel Alabor\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":[{"name":"swissmanu","email":"msites@msites.net"}],"time":{"modified":"2022-06-18T19:23:09.099Z","created":"2014-12-21T09:37:07.854Z","1.0.0":"2014-12-21T09:37:07.854Z","1.0.1":"2015-08-18T06:47:57.988Z","1.0.2":"2015-11-25T07:00:49.463Z","1.0.3":"2017-08-09T06:30:02.594Z","1.1.0":"2017-12-20T14:45:28.364Z","1.1.1":"2017-12-20T15:00:57.282Z"},"homepage":"https://github.com/swissmanu/harmonyhubjs-discover","keywords":["logitech","harmony","hub","remote","api","discover","search"],"repository":{"type":"git","url":"git+https://github.com/swissmanu/harmonyhubjs-discover.git"},"author":{"name":"Manuel Alabor","email":"manuel@alabor.me"},"bugs":{"url":"https://github.com/swissmanu/harmonyhubjs-discover/issues"},"license":"MIT","readmeFilename":"README.md","users":{"murch":true}}