{"_id":"hugo","_rev":"9-370fe4f18db3fa81acf467a3285efa9b","name":"hugo","description":"Yet another node.js interface for philips hue","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"author":{"name":"Bernhard K. Weisshuhn","email":"bkw@codingforce.com"},"name":"hugo","description":"Yet another node.js interface for philips hue","version":"0.0.1","repository":{"type":"git","url":"git://github.com/bkw/hugo.git"},"keywords":["philips","hue","lighting","home automation","automation"],"main":"./index","dependencies":{"request":"~2.16.6","async":"~0.2.6","color":"~0.4.2","lodash":"~1.0.1","debug":"~0.7.2"},"readme":"hugo\n====\n\nYet another node.js module for philips hue.\n\n\nExample\n-------\n\n    var bridge = require('hugo').Bridge('someuser', '192.168.x.x');\n\n    bridge.on('ready', function () {\n        var bulb = bridge.getBulb(1);\n        bulb.setColor('red', 5, function (err, res) {\n            if (err) {\n                throw new Error(err);\n            }\n            console.log(res);\n        });\n    });\n\nIf you leave out the user name, a username will read from environment variable\n`HUE_USER`.\n\nIf you leave out the ip address, the address will be read from the environment\nvariable `HUE_HOST`. If no such variable exists, the bridge will be discovered\nover upnp.\nThis is very hackish and experimental and obviously slower than specifying it.\n\nDebugging\n---------\nTo see what is going on behind the scenes, you can enable debugging by\nsetting the environment variable `DEBUG` to any of the following:\n\n* hugo.bridge\n* hugo.lightstate\n* hugo.color\n* hugo.discovery\n\nMultiple values can be separated by commas. Alternatively you can also specify `hugo.*` or even `*\n\nExample:\n\n    % DEBUG=hugo.color node demos/series.js red blue white\n    % DEBUG=hugo.lightstate,hugo.bridge node demos/flash.js\n    % DEBUG='hugo.*' node demos/fadeout.js 3\n\n","readmeFilename":"README.md","_id":"hugo@0.0.1","dist":{"shasum":"7c7910ed45cc4f1b0a8f5c2464664579a37ad46a","tarball":"https://registry.npmjs.org/hugo/-/hugo-0.0.1.tgz","integrity":"sha512-SrZlnFk+a3woqU4bp/d+zbXpnirApRDnstw5EiPN0baz2TuHu+ICLx39vyyFCBKm6II1IkM8qVfmLUkGIQ6moA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRCf3ZBKQH/drDDyC5OQKfHhGMOTHjQbc4Upj85ApszQIgVcgZnl/y/JpYms/NaJ2U0/r9VtyvEa9Cx8z+UrOvGSU="}]},"_from":"https://github.com/bkw/hugo/archive/hugo-0.0.1.tar.gz","_resolved":"https://github.com/bkw/hugo/archive/hugo-0.0.1.tar.gz","scripts":{},"_npmVersion":"1.2.14","_npmUser":{"name":"bkw","email":"bkw@codingforce.com"},"maintainers":[{"name":"bkw","email":"bkw@codingforce.com"}]},"0.0.2":{"author":{"name":"Bernhard K. Weisshuhn","email":"bkw@codingforce.com"},"name":"hugo","description":"Yet another node.js interface for philips hue","version":"0.0.2","repository":{"type":"git","url":"git://github.com/bkw/hugo.git"},"keywords":["philips","hue","lighting","home automation","automation"],"scripts":{"create-user":"node ./bin/create-user.js"},"main":"./index","dependencies":{"request":"~2.16.6","async":"~0.2.6","color":"~0.4.2","lodash":"~1.0.1","debug":"~0.7.2"},"readme":"hugo\n====\nYet another node.js module for philips hue.\n\n\nExample\n-------\n    var bridge = require('hugo').Bridge('someuser', '192.168.x.x');\n\n    bridge.on('ready', function () {\n        var bulb = bridge.getBulb(1);\n        bulb.setColor('red', 5, function (err, res) {\n            if (err) {\n                throw new Error(err);\n            }\n            console.log(res);\n        });\n    });\n\nIf you leave out the user name, a username will read from environment variable\n`HUE_USER`.\n\nIf you leave out the ip address, the address will be read from the environment\nvariable `HUE_HOST`. If no such variable exists, the bridge will be discovered\nover upnp.\nThis is very hackish and experimental and obviously slower than specifying it.\n\nGetting Started\n---------------\nYou need a valid user to connect to your bridge. If you do not know one,\nhugo can create one for you:\n\n    npm run-script create-user\n\nIf you installed hugo as a module via npm, you'll have to specify hugo\nas the source for the script:\n\n    npm run-script hugo create-user\n\nThe script will prompt you to press the link-button on the bridge.\nOn Success it will echo the newly created username like this:\n\n    HUE_USER=2fabf3b4156019ef3c57c9dc1cda2757\n\nYou can export this variable in your shell profile or set it when\ninvoking programs using hugo. Like this:\n\n    HUE_USER=2fabf3b4156019ef3c57c9dc1cda2757 node myHugoApp.js\n\n\nDebugging\n---------\nTo see what is going on behind the scenes, you can enable debugging by\nsetting the environment variable `DEBUG` to any of the following:\n\n* hugo.bridge\n* hugo.lightstate\n* hugo.color\n* hugo.discovery\n\nMultiple values can be separated by commas. Alternatively you can also specify `hugo.*` or even `*\n\nExample:\n\n    % DEBUG=hugo.color node demos/series.js red blue white\n    % DEBUG=hugo.lightstate,hugo.bridge node demos/flash.js\n    % DEBUG='hugo.*' node demos/fadeout.js 3\n\n","readmeFilename":"README.md","_id":"hugo@0.0.2","dist":{"shasum":"010a347c07f5233ac81f3609f2b4c63f642cc14a","tarball":"https://registry.npmjs.org/hugo/-/hugo-0.0.2.tgz","integrity":"sha512-8n+t3rO3tVsdUmgsfKuoqAUH0tTf/ZGQ2SEMygNo60h2W/8r1ye82FdufWHBNh6ZtO8J5JOYOOR3uh2tcG3kAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIArkgZcZZAIgDZCzV5uoLCapj/ITlA5FuiucTCd1DwE3AiEA0CkDMf7bk0IDUsE4G/mLlZjWhrTThnGmuX5Qbik8S3w="}]},"_from":"https://github.com/bkw/hugo/archive/hugo-0.0.2.tar.gz","_resolved":"https://github.com/bkw/hugo/archive/hugo-0.0.2.tar.gz","_npmVersion":"1.2.14","_npmUser":{"name":"bkw","email":"bkw@codingforce.com"},"maintainers":[{"name":"bkw","email":"bkw@codingforce.com"}]},"0.0.3":{"author":{"name":"Bernhard K. Weisshuhn","email":"bkw@codingforce.com"},"name":"hugo","description":"Yet another node.js interface for philips hue","version":"0.0.3","repository":{"type":"git","url":"git://github.com/bkw/hugo.git"},"keywords":["philips","hue","lighting","home automation","automation"],"scripts":{"create-user":"node ./bin/create-user.js"},"main":"./index","dependencies":{"request":"~2.27.0","async":"~0.2.9","color":"~0.4.4","lodash":"~2.2.1","debug":"~0.7.2"},"readme":"hugo\n====\nYet another node.js module for philips hue.\n\n\nExample\n-------\n    var bridge = require('hugo').Bridge('someuser', '192.168.x.x');\n\n    bridge.on('ready', function () {\n        var bulb = bridge.getBulb(1);\n        bulb.setColor('red', 5, function (err, res) {\n            if (err) {\n                throw new Error(err);\n            }\n            console.log(res);\n        });\n    });\n\nIf you leave out the user name, a username will read from environment variable\n`HUE_USER`.\n\nIf you leave out the ip address, the address will be read from the environment\nvariable `HUE_HOST`. If no such variable exists, the bridge will be discovered\nover upnp.\nThis is very hackish and experimental and obviously slower than specifying it.\n\nGetting Started\n---------------\nYou need a valid user to connect to your bridge. If you do not know one,\nhugo can create one for you:\n\n    npm run-script create-user\n\nIf you installed hugo as a module via npm, you'll have to specify hugo\nas the source for the script:\n\n    npm run-script hugo create-user\n\nThe script will prompt you to press the link-button on the bridge.\nOn Success it will echo the newly created username like this:\n\n    HUE_USER=2fabf3b4156019ef3c57c9dc1cda2757\n\nYou can export this variable in your shell profile or set it when\ninvoking programs using hugo. Like this:\n\n    HUE_USER=2fabf3b4156019ef3c57c9dc1cda2757 node myHugoApp.js\n\n\nDebugging\n---------\nTo see what is going on behind the scenes, you can enable debugging by\nsetting the environment variable `DEBUG` to any of the following:\n\n* hugo.bridge\n* hugo.lightstate\n* hugo.color\n* hugo.discovery\n\nMultiple values can be separated by commas. Alternatively you can also specify `hugo.*` or even `*\n\nExample:\n\n    % DEBUG=hugo.color node demos/series.js red blue white\n    % DEBUG=hugo.lightstate,hugo.bridge node demos/flash.js\n    % DEBUG='hugo.*' node demos/fadeout.js 3\n\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/bkw/hugo/issues"},"homepage":"https://github.com/bkw/hugo","_id":"hugo@0.0.3","dist":{"shasum":"c1592a588b23ef48c7e2cbafd92ce5cd5dc2dd4f","tarball":"https://registry.npmjs.org/hugo/-/hugo-0.0.3.tgz","integrity":"sha512-CWJ5p8w0v6M3Z8FUbLOYUtlCZNcC3PYUQuu6rpu1yj61IIIt6qgc4weAMiu0jsoJQAUlFiXgMH4fCo4geEdvbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA35G/RW/WS+7cMYLwp5nhFProuEDMXjs8/QPejbk+PXAiEA7IR7m2YPSJ3qXPmgN7/lc/PTfgFZG/htBS4v/OckVZ4="}]},"_from":"https://github.com/bkw/hugo/archive/hugo-0.0.3.tar.gz","_resolved":"https://github.com/bkw/hugo/archive/hugo-0.0.3.tar.gz","_npmVersion":"1.3.11","_npmUser":{"name":"bkw","email":"bkw@codingforce.com"},"maintainers":[{"name":"bkw","email":"bkw@codingforce.com"}]}},"readme":"hugo\n====\n\nYet another node.js module for philips hue.\n\n\nExample\n-------\n\n    var bridge = require('hugo').Bridge('someuser', '192.168.x.x');\n\n    bridge.on('ready', function () {\n        var bulb = bridge.getBulb(1);\n        bulb.setColor('red', 5, function (err, res) {\n            if (err) {\n                throw new Error(err);\n            }\n            console.log(res);\n        });\n    });\n\nIf you leave out the user name, a username will read from environment variable\n`HUE_USER`.\n\nIf you leave out the ip address, the address will be read from the environment\nvariable `HUE_HOST`. If no such variable exists, the bridge will be discovered\nover upnp.\nThis is very hackish and experimental and obviously slower than specifying it.\n\nDebugging\n---------\nTo see what is going on behind the scenes, you can enable debugging by\nsetting the environment variable `DEBUG` to any of the following:\n\n* hugo.bridge\n* hugo.lightstate\n* hugo.color\n* hugo.discovery\n\nMultiple values can be separated by commas. Alternatively you can also specify `hugo.*` or even `*\n\nExample:\n\n    % DEBUG=hugo.color node demos/series.js red blue white\n    % DEBUG=hugo.lightstate,hugo.bridge node demos/flash.js\n    % DEBUG='hugo.*' node demos/fadeout.js 3\n\n","maintainers":[{"name":"bkw","email":"bkw@codingforce.com"}],"time":{"modified":"2022-06-18T23:07:33.032Z","created":"2013-03-22T11:05:54.176Z","0.0.1":"2013-03-22T11:06:06.020Z","0.0.2":"2013-03-22T14:06:11.701Z","0.0.3":"2013-10-05T09:28:52.397Z"},"author":{"name":"Bernhard K. Weisshuhn","email":"bkw@codingforce.com"},"repository":{"type":"git","url":"git://github.com/bkw/hugo.git"}}