{"_id":"@awexx/govee","_rev":"1-e1b172b4d3dae6a9c236c7fd8939bbb7","name":"@awexx/govee","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@awexx/govee","version":"1.0.0","author":{"name":"Alex Frantz"},"license":"MIT","_id":"@awexx/govee@1.0.0","maintainers":[{"name":"awexx","email":"alex@alexav.gg"}],"homepage":"https://github.com/azpha/govee-js#readme","bugs":{"url":"https://github.com/azpha/govee-js/issues"},"dist":{"shasum":"9270f1da518cf585c5f873b9742c28963da73dbf","tarball":"https://registry.npmjs.org/@awexx/govee/-/govee-1.0.0.tgz","fileCount":12,"integrity":"sha512-oGl1QkisjGHWKabWXnQxFZ0cxp9ey9o2XksDP5MIIs3Ygjdg15uwYKOnHD94ry640Mgz6bD0Qg7qwHdZsr4jEQ==","signatures":[{"sig":"MEQCIGfO2LYH4dtE/hfERUf4Mq4d/Eqf8mgEG7iwvFd0CkgqAiBL9JmEmzZqOomwdE6KvgJznjODJVjPDQhcWf0/AD5Srw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15643},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","gitHead":"8c07bb126a638d24555e61491bf8bcae850763ef","scripts":{"build":"tsc"},"_npmUser":{"name":"awexx","email":"alex@alexav.gg"},"repository":{"url":"git+https://github.com/azpha/govee-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Client for controlling supported Govee devices using JavaScript","directories":{},"_nodeVersion":"22.9.0","_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.7.2","@types/node-fetch":"^2.6.12"},"_npmOperationalInternal":{"tmp":"tmp/govee_1.0.0_1735437886537_0.6804555965481509","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@awexx/govee","type":"module","keywords":["govee","smart light","control smart light"],"version":"1.0.1","description":"Client for controlling supported Govee devices using JavaScript","main":"dist/index.js","scripts":{"build":"tsc"},"repository":{"type":"git","url":"git+https://github.com/azpha/govee-js.git"},"author":{"name":"Alex Frantz"},"license":"MIT","bugs":{"url":"https://github.com/azpha/govee-js/issues"},"homepage":"https://github.com/azpha/govee-js#readme","devDependencies":{"@types/node-fetch":"^2.6.12","ts-node":"^10.9.2","typescript":"^5.7.2"},"_id":"@awexx/govee@1.0.1","gitHead":"f8f734039c065f8fcc5accb46c18715f36af0bbb","types":"./dist/index.d.ts","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"integrity":"sha512-utKRzaQjvMyRIAx+w6TpRWwWzlzYwTPDiaDT5ls7m9JihQcNiIEBv+x10Xld9PnGWEkJSuGLbkeh3WsEN5y6XQ==","shasum":"13e7e06d2486cfaabe02c3b6118f8d303b6c0019","tarball":"https://registry.npmjs.org/@awexx/govee/-/govee-1.0.1.tgz","fileCount":12,"unpackedSize":15774,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOKm9wn5kVs9VpFT1spqWz3uT8MUTF76mFtGKtbelFcwIgUHmBRQpsGF5e7cmVs9mQcpb3Qtz/+0Wmd+oDeVrt2Sk="}]},"_npmUser":{"name":"awexx","email":"alex@alexav.gg"},"directories":{},"maintainers":[{"name":"awexx","email":"alex@alexav.gg"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/govee_1.0.1_1735438023914_0.9688312956642511"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-29T02:04:46.403Z","modified":"2024-12-29T02:07:04.265Z","1.0.0":"2024-12-29T02:04:46.713Z","1.0.1":"2024-12-29T02:07:04.105Z"},"bugs":{"url":"https://github.com/azpha/govee-js/issues"},"author":{"name":"Alex Frantz"},"license":"MIT","homepage":"https://github.com/azpha/govee-js#readme","repository":{"type":"git","url":"git+https://github.com/azpha/govee-js.git"},"description":"Client for controlling supported Govee devices using JavaScript","maintainers":[{"name":"awexx","email":"alex@alexav.gg"}],"readme":"# Govee JS/TS Client\r\n\r\nNot affiliated with Govee. just a fun project\r\n\r\n## Install\r\n\r\n```\r\nnpm i @awexx/govee\r\n```\r\n\r\n## Setup\r\n\r\nYou'll need an API key from Govee in order to use this client. You can get one following [these steps](https://developer.govee.com/reference/apply-you-govee-api-key) from inside the Govee mobile app.\r\n\r\n## Usage\r\n\r\n```typescript\r\nimport Govee from \"@awexx/govee\";\r\n\r\n(async () => {\r\n  const govee = new Govee(\"aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\");\r\n  const device = \"aa:bb:cc:dd:ee:ff:gg:hh\";\r\n  const sku = \"H6003\";\r\n\r\n  await govee.light.off(device, sku); // turns off light\r\n  await govee.light.on(device, sku); // turns off light\r\n  await govee.light.color(device, sku, 8388736); // sets color to purple\r\n  await govee.light.brightness(device, sku, 30); // sets brightness to 30%\r\n})();\r\n```\r\n\r\nSome notes;\r\n\r\n- RGB needs to be the decimal value of that color. You can you something like [SpyColor](https://www.spycolor.com/) to find that.\r\n- This package only supports Govee lights for now.\r\n","readmeFilename":"readme.md","keywords":["govee","smart light","control smart light"]}