{"_id":"homebridge-ambient-hue","_rev":"40-18d7f41a23f37c4364d22fb241a38ea5","name":"homebridge-ambient-hue","dist-tags":{"beta":"1.0.0-beta.8","latest":"0.0.6"},"versions":{"0.0.1":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.1","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.1","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-qRt6QdFvx/XHWTugJirvrt3ti55wc6YLTPxTOzvGXZA25bzKEhiZGSeVK28NwoJ+ir/mJpnukexPf21OqzF1mQ==","shasum":"741ac5be872f6c995e636cf3b2603aa705d3adb2","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.1.tgz","fileCount":394,"unpackedSize":8493665,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgdxxzCRA9TVsSAnZWagAA/PYP/iVMb4muQe5Y66oWETUy\nYz8RIdlVmJVBAUv/kAREww9Z608hhHSYzRMYMWpOAliLtXRjNeGMLRVbZGbm\nMl2NHsgKmUdhAsolElSns4mJNuvRaKPTRmBo04NUHIBja15GaE945DypGX7A\nZRoi40hjohticl3q3xfP83rlRUKZSRHOkOXLt71yzVSDm6j81mvv9/KyYaZb\nBUr1LSazZqTaVgMHAgWaGKwxAF/oPN0qE520ZDtCDotfW1Mc9bX7AKXwRiic\nGFCVyXfNTD8kMQ4seoGb5HUcb9AYsNB9LwsRjit698w1bdemDTyNEExb8VoK\nRV+2H0pgjDiEotVx5D1cL+T3SLPpubIhjtkbpngXvStaQiNpgL+UAr4pHh4M\n9d6XSNkxPdQQ95BzIOVNxVYOGYgAeIVvsIFBAh47QYzkmO6JEoxyVc1zckze\nzliMCeWskxtg9/N56pDxZ/1Iq7w2oUmJsfVBbMsG0ssFzrhc9gIaTx5lwSY7\n+Qa0Z7FZjz4ntVCt001URkDx2klfJwD5G2zAVFVXKAIbcQxZIenpW2MSukON\nVJC1nKL0/p3IcVGbScjpL7i2TUWWk5F9yQKHn9zuUwz7bGsBWf/oot1oi9Tv\npS9q3JNROpYko5TwIlaQz6T32Pas9aXnpcX7XSWypKwpPxTeaROS7CBHehtC\nRHgj\r\n=bNTZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDM4TiLDUTHnj4MVjBJjeYupPtqrHkPWE00gSse033FzgIgUZu2UK+LRBM1dLt48VvT+nKkhrcvILEmjPLN0GGnBjc="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.1_1618418803315_0.6760264794165656"},"_hasShrinkwrap":false},"0.0.2-beta.0":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.2-beta.0","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"\n<p align=\"center\">\n\n<img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n\n</p>\n\n\n# Homebridge Platform Plugin Template\n\nThis is a template Homebridge platform plugin and can be used as a base to help you get started developing your own plugin.\n\nThis template should be used in conjunction with the [developer documentation](https://developers.homebridge.io/). A full list of all supported service types, and their characteristics is available on this site.\n\n## Clone As Template\n\nClick the link below to create a new GitHub Repository using this template, or click the *Use This Template* button above.\n\n<span align=\"center\">\n\n### [Create New Repository From Template](https://github.com/homebridge/homebridge-plugin-template/generate)\n\n</span>\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\n```\n\n## Update package.json\n\nOpen the [`package.json`](./package.json) and change the following attributes:\n\n* `name` - this should be prefixed with `homebridge-` or `@username/homebridge-` and contain no spaces or special characters apart from a dashes\n* `displayName` - this is the \"nice\" name displayed in the Homebridge UI\n* `repository.url` - Link to your GitHub repo\n* `bugs.url` - Link to your GitHub repo issues page\n\nWhen you are ready to publish the plugin you should set `private` to false, or remove the attribute entirely.\n\n## Update Plugin Defaults\n\nOpen the [`src/settings.ts`](./src/settings.ts) file and change the default values:\n\n* `PLATFORM_NAME` - Set this to be the name of your platform. This is the name of the platform that users will use to register the plugin in the Homebridge `config.json`.\n* `PLUGIN_NAME` - Set this to be the same name you set in the [`package.json`](./package.json) file. \n\nOpen the [`config.schema.json`](./config.schema.json) file and change the following attribute:\n\n* `pluginAlias` - set this to match the `PLATFORM_NAME` you defined in the previous step.\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Customise Plugin\n\nYou can now start customising the plugin template to suit your requirements.\n\n* [`src/platform.ts`](./src/platform.ts) - this is where your device setup and discovery should go.\n* [`src/platformAccessory.ts`](./src/platformAccessory.ts) - this is where your accessory control logic should go, you can rename or create multiple instances of this file for each accessory type you need to implement as part of your platform plugin. You can refer to the [developer documentation](https://developers.homebridge.io/) to see what characteristics you need to implement for each service type.\n* [`config.schema.json`](./config.schema.json) - update the config schema to match the config you expect from the user. See the [Plugin Config Schema Documentation](https://developers.homebridge.io/#/config-schema).\n\n## Versioning Your Plugin\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.2-beta.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-G+tJe3Qd9g03QR4VOkJ91F6VlhggfKM7BOqLU9eI0dCFt9izuVhHVS9BbqBmDpUCv159z0HW1SRFbYehRXzm9g==","shasum":"a1171ce36c684fe690423af351aedc0793f1776e","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.2-beta.0.tgz","fileCount":394,"unpackedSize":8493677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeW/YCRA9TVsSAnZWagAAoikQAJYYdVGvdzImj7c5tDyf\nFYN9CPUZJujBskk73OfdJ9gusVpUaasbdClYYHEi/kbGMc74qPYkZXu12PPx\nQSviiCKBymC3Y2s+VBb2hNvt5fqrrxOZ95d+o87635gfxotwwXJIFkYew/8N\n5cgBNNm+1qobJv0tZHp46H2S0nDxlUAzy2S6uW+gDisWElkezW4YssQS+ITd\nfnsW/Cr7X4BA0HNlHBhwf100VO2VvGRRTpmKjGARQS8lZ6eiRwBr1MHtRs/A\noUTYvI9pD/NpCLeTVsRz/4zeq0/K7d4xuDW0w79P2ty8oiXDLDe0npdErJZH\nr8qZjTjc3KT9WAghIVFub5mEZCc/igGdbb6041/j7bfWJVD+ZOqVBQEKS8kP\nv+QNYVYJTULgDHBrquaQCfvaizk/PT6eMDd7AdztG0BW8tjuobEzYx5AI5uc\n1SVX4vKB9GMqX24xRdSeJEpcdBLNNN0AQjDVGiAAo5owMRtkDNgNQ/Q/OY6u\nrHwDPw9K7zbUQk3BAUCcX/Yj7qu/+gKy88hazAzslxd0ZfCOdnSlnGK788Zm\nJz9R1NBk6ExAHF3mg8VdKuw20ZJUyKL/9CPEmYvjYMYq75fb+uCqc9R8Tg09\nolBedK2Qjsasr2IuShUS1thlxCsAsQpV71Gl2aprQ0X+c9/QB+sF8XMXKxVj\n9Qv3\r\n=d37z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDc1fJovUYyJw48Ew/kKwxKLPrfnlm77NtgstqcEtK4kAiAbZ0E8Lbe9Yn5U1NwWv62X0NP1uo0cnrRgyV97ow1G5A=="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.2-beta.0_1618571223733_0.8556500875878343"},"_hasShrinkwrap":false},"0.0.2-beta.1":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.2-beta.1","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.2-beta.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-OrFEyM+Xn6CgD8zKIQF8ST/LsrxuMOq66uf3bBa7lI6zdGPDYgAc6+bpEmXrlxuwz/rRyI7bX/7zCmSU9nFf5g==","shasum":"49bd14e8636fcb2521a447359f2f0a60fcc5641e","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.2-beta.1.tgz","fileCount":395,"unpackedSize":8494227,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeXeqCRA9TVsSAnZWagAApi0QAJYxoyFLPa3Y/bKeFjeH\nWngl564d7kGIVaJHcmqEUqauSvpsCv7ZMFL9ph/PHbFDq7csKvGCNNziOcRb\n/4GT54rdyE6YTojxj7j6I2cifnaNmGMUneZqQKMawFvTguf7qJaRt11DN1Yb\nB7wd8h4wbKZDqoQj3HzHtrM8YKM71o51jVPDJGIRNsmpmjxcy+H+BDeXnBbG\nhR6dDMs0RSWoRI78Gwegg4nDyiE/2tMZHSkPPpfP6XtLiMVyVKqt+y9NMpal\nO4bTk8AGLmaRpaaZRTUxHDfiIIiOU9yMLnyuO1XefRo8D39pu18A/mZ6HGeH\nb8bB/bU72sfERof+9/x/zRw2iB1NCAMIOo0v0WMojJMkHW4tDkO+WN/g+b6q\nU2zx2AeKTeXmcW3Pi7xF8BpmcSjixH3bIteXPtDuSfquaPTMimIBNafiOLXZ\nYEw5k8PK3pAp8P8EVxYEuI5kYdEEQnla/imUfLHV9xlCmgg9HxATWyoCSxry\ntquTWrktlayO9diExnBbKTaZ0iwNkIDiaOaEj1veDiaRnz5q2PZJzrFqXUJD\ni33bCphbr5D7XZboAYALi3vtNc1zqhU59+QRhkooDiBBFKG6HFAqcPafg25Q\nG0LBD2X04DPJdor+OwMhWelKFxofjMP3Slj1QIdBvJCKTeGoDBNp3YWIAkAh\n9/XX\r\n=GcVr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt/R0LIDDLkx2AIzncPPZF2oU70QDbSdfM/k8vYxfCZgIhAOIL0Ad++iVBT5UIc3Ktut3QnDikcfiNbesoyzvcpOQc"}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.2-beta.1_1618573225621_0.41583366364994734"},"_hasShrinkwrap":false},"0.0.2-beta.2":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.2-beta.2","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"\n<p align=\"center\">\n\n<img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n\n</p>\n\n\n# Homebridge Platform Plugin Template\n\nThis is a template Homebridge platform plugin and can be used as a base to help you get started developing your own plugin.\n\nThis template should be used in conjunction with the [developer documentation](https://developers.homebridge.io/). A full list of all supported service types, and their characteristics is available on this site.\n\n## Clone As Template\n\nClick the link below to create a new GitHub Repository using this template, or click the *Use This Template* button above.\n\n<span align=\"center\">\n\n### [Create New Repository From Template](https://github.com/homebridge/homebridge-plugin-template/generate)\n\n</span>\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\n```\n\n## Update package.json\n\nOpen the [`package.json`](./package.json) and change the following attributes:\n\n* `name` - this should be prefixed with `homebridge-` or `@username/homebridge-` and contain no spaces or special characters apart from a dashes\n* `displayName` - this is the \"nice\" name displayed in the Homebridge UI\n* `repository.url` - Link to your GitHub repo\n* `bugs.url` - Link to your GitHub repo issues page\n\nWhen you are ready to publish the plugin you should set `private` to false, or remove the attribute entirely.\n\n## Update Plugin Defaults\n\nOpen the [`src/settings.ts`](./src/settings.ts) file and change the default values:\n\n* `PLATFORM_NAME` - Set this to be the name of your platform. This is the name of the platform that users will use to register the plugin in the Homebridge `config.json`.\n* `PLUGIN_NAME` - Set this to be the same name you set in the [`package.json`](./package.json) file. \n\nOpen the [`config.schema.json`](./config.schema.json) file and change the following attribute:\n\n* `pluginAlias` - set this to match the `PLATFORM_NAME` you defined in the previous step.\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Customise Plugin\n\nYou can now start customising the plugin template to suit your requirements.\n\n* [`src/platform.ts`](./src/platform.ts) - this is where your device setup and discovery should go.\n* [`src/platformAccessory.ts`](./src/platformAccessory.ts) - this is where your accessory control logic should go, you can rename or create multiple instances of this file for each accessory type you need to implement as part of your platform plugin. You can refer to the [developer documentation](https://developers.homebridge.io/) to see what characteristics you need to implement for each service type.\n* [`config.schema.json`](./config.schema.json) - update the config schema to match the config you expect from the user. See the [Plugin Config Schema Documentation](https://developers.homebridge.io/#/config-schema).\n\n## Versioning Your Plugin\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.2-beta.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-tX50O2Nbfh9An9sjtJfQe6U1iGWHelKkHlum5SQYrlRCrSiOoYjI3R/taW/Vme5I1guwYMP42SwuqswbazEmTw==","shasum":"c8a240abb8c010998d5f4842d90a377d08a69fb9","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.2-beta.2.tgz","fileCount":395,"unpackedSize":8505197,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeX89CRA9TVsSAnZWagAA7B8P/3JIHNaydbFaUJ2xXkcG\nswtcPPB5bbdTLJ5lE9cUQ+bMLWERaNJ0NuTKd0voQxzuFc2g3lWGl6zTsXsY\nijCx3h/dTff5V0SV3S14rj+Bl021Ou+quihfTDRctTA9H9Xk8KWnZxKWKSZN\nSuNYfobp8GLZQQPPQsHT0GE/GY6fHq4+/mzKUqtkh9Ezaw+0JCL1CnwxOH9J\nfek4gn2DSYVwFGqVw3nyT4iSwaOeNv+sD0ijQHZiMn2R6ovzmxZEjA0xkrMA\n/+tFqcAzXFjklxDNZuw2nZDroG+00VWW0CmQaNeM+oy71aAB2mEkndQb2BXh\nXTFgWyyd361Ht7eF8xG1CDgJBx+gATRJs9CWUG+1Sdm2OCBk9FkqpejuieJs\n1HmHivHJW4exB8RIleZg3GFyzOI+EzthwYuoFAO+KFxpetyijtY/4QZw7N98\n6EcD06y56C10Nlt6elUz23C4HrxFZg8Kfolc7gGcGzmLUh6SnSTnMRIIsRVj\n/a2124GuMmM4DY7eLPgTl/ueL20mtVMFHeH8TV0qNvA3+LjXIlGvEuF8PgwX\nsv4bQa/XqAj4QrARkdSTZMun2MSe1NVN4IVN7pci5EiLDI0gUijCXCexJKX0\nf8VBUkdAlCv12Nq68M2TGL5rbYgNPNOtIPgIf4Kp3O1e5fxIRG1pxAcGye16\nyRml\r\n=STgy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCFUP3MmrKcmBzB922YdvyibgjJIp7bGxH5xytqOsToygIgWFKDRqchhLPvoe8h3mO87XqiiUvlLxfWTaLCrPZ6dVE="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.2-beta.2_1618575165083_0.7098527846588534"},"_hasShrinkwrap":false},"0.0.2-beta.3":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.2-beta.3","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"\n<p align=\"center\">\n\n<img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n\n</p>\n\n\n# Homebridge Platform Plugin Template\n\nThis is a template Homebridge platform plugin and can be used as a base to help you get started developing your own plugin.\n\nThis template should be used in conjunction with the [developer documentation](https://developers.homebridge.io/). A full list of all supported service types, and their characteristics is available on this site.\n\n## Clone As Template\n\nClick the link below to create a new GitHub Repository using this template, or click the *Use This Template* button above.\n\n<span align=\"center\">\n\n### [Create New Repository From Template](https://github.com/homebridge/homebridge-plugin-template/generate)\n\n</span>\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\n```\n\n## Update package.json\n\nOpen the [`package.json`](./package.json) and change the following attributes:\n\n* `name` - this should be prefixed with `homebridge-` or `@username/homebridge-` and contain no spaces or special characters apart from a dashes\n* `displayName` - this is the \"nice\" name displayed in the Homebridge UI\n* `repository.url` - Link to your GitHub repo\n* `bugs.url` - Link to your GitHub repo issues page\n\nWhen you are ready to publish the plugin you should set `private` to false, or remove the attribute entirely.\n\n## Update Plugin Defaults\n\nOpen the [`src/settings.ts`](./src/settings.ts) file and change the default values:\n\n* `PLATFORM_NAME` - Set this to be the name of your platform. This is the name of the platform that users will use to register the plugin in the Homebridge `config.json`.\n* `PLUGIN_NAME` - Set this to be the same name you set in the [`package.json`](./package.json) file. \n\nOpen the [`config.schema.json`](./config.schema.json) file and change the following attribute:\n\n* `pluginAlias` - set this to match the `PLATFORM_NAME` you defined in the previous step.\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Customise Plugin\n\nYou can now start customising the plugin template to suit your requirements.\n\n* [`src/platform.ts`](./src/platform.ts) - this is where your device setup and discovery should go.\n* [`src/platformAccessory.ts`](./src/platformAccessory.ts) - this is where your accessory control logic should go, you can rename or create multiple instances of this file for each accessory type you need to implement as part of your platform plugin. You can refer to the [developer documentation](https://developers.homebridge.io/) to see what characteristics you need to implement for each service type.\n* [`config.schema.json`](./config.schema.json) - update the config schema to match the config you expect from the user. See the [Plugin Config Schema Documentation](https://developers.homebridge.io/#/config-schema).\n\n## Versioning Your Plugin\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.2-beta.3","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-ySJiS2kVuxclzdJo2S0jQuqdMfhUx9Xk4fcWh0CqbaScijiHvMcD4OCCY5dy2jq4I0hjl0xtGoWF1/LgRuvxwg==","shasum":"5853aa50dc49123e2fb720c6150458ab61be251d","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.2-beta.3.tgz","fileCount":395,"unpackedSize":8505372,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeYHlCRA9TVsSAnZWagAAzAUQAJHvC9Tep3v1nko7ST1N\n9mWfgR0UXspCM7s8/CWvFUQ6jGs04l7G91+XKYFKKdHmIUmNrtDqBHyd//H4\npMc+3ocmB02XdCiHCAfCNoRplShrwk+ra0pPuwqikg1tMWNulH0zGmRAHJ7h\naCz4f72t4gPVa7Toyk8nBMnSrW5PibMBkFWNXRhC4tXDYuIBQwqd2bhTS+h3\nfobRR9lgG+pPaJV5e/jlZkObSoslEVdSYHBtLFAoOUECClqJrMAXsC2Z+DyP\nitRptk/KizWBGi2RFAEiuWr4RPDx57iRarvnWNoMWwXphMdD+oam5zJirt6r\nDiLLyPFh3RiK1D5zrzydIHnGB8If0v0KLkqEDhL7qF/UGsa+qDtA5nia1O1P\nmLjfnJZmved35cMiCkVZj9G/YBOxFlTxRxRSD/4m7ldJLcfEgTj3DZKV1m+k\ny+DeiX84WdUQTTzLGvng8SULi+Z9bzUhA/vZFQlXKImVtKyTt0A2No9l5rhT\nEmD4fQF+rsDXJ91qpQ70KqFo2O0FBKlOaDshwyx5LBSicG1lB6Qrlnc4j4BE\nfbCYMzVxqyKcyTPLF5AEV7YmisD+Irtfm4WtfWv/qAnGIai8dX8b98BMqCVy\nnSd504CtAMn32rv2R8ESw+qbe3T2Yc4crq1pAyP+UXg0J4+dMVdR3/WfmCRu\n+0IW\r\n=aaCp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH9oU/v3IZndStx7EkVWHRTwjwYa8AqSAI4t58HypVxvAiEAnAFhIX30phF51t5bOzlUCfrHnQY7uX5Vmq8ZXNa6HV0="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.2-beta.3_1618575845218_0.4267601351618977"},"_hasShrinkwrap":false},"0.0.2":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.2","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-xunpjwKw+wwKr5+PCkzqh9dczMceclVbn7/qmVokhhpIcFYoovwr2OTJHow0rT3/YaehWrMwRYLPC7Q3QUfF1Q==","shasum":"3486e1a41caf4eab7b025269ed080693c92f6789","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.2.tgz","fileCount":395,"unpackedSize":8505268,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgeYRECRA9TVsSAnZWagAAMjIP/iVrJNTAChLAGmxmRrNn\nwymW80YT3KWKmERumENGnP0z3fXzeQnj9gTPwSLPc6/aql51IM+tPTSVGBgB\nGU67MWfgsWRb5ELHuDe9Jd4uOStluOr4RIR2mkQcqQSRsywcCkpKKlgPGvDg\ncX/Bw1ERcnQBjXd8Vv7RXH2+nK2chpeCh/ga/ivBIX2IYB783ZEsdzlnF1/S\nYK4U6BQOHKjwVa5NFFmCwQIwKfnP0BNKHsnNg/sr0S9rKL5xuocYgYETg0Qq\nvblI5KXMACzF/0n3M51la7jNIOariMUvlwIAmbTpEkXAktKsvZhWQ7Mh6W7i\nglZeWDWadnnr5xDIMJDB5c76Vkoe0+XeCx8BC7LyFKnRzmk6j4o8sGwFuFRo\nf8rx9TO9IIgPdSY05WFb+KZitUkwQVeuq1pdJnCwqyQA4ChTdRl+2HG/yH7w\nFXESXZ93jBxS63fR4xyiohe5TPlp9BD2mOPOmmgoXXFZwL/6/UAsHi0yxorF\nZrXyl4SxszZ/vLPqiXwd0+R66xyC/2cNIwTuWb6iAf3Y/PcVEe7Y/X2Hx+Ra\ninlyTnctzCtTsfsBwwdQWH7jP+j3incMOzVQQ7IwC2Po9QeySTU76mYEcFCu\nu/5cbHL1L0hkinZv5aEvV+rr9rxcwocH0hUdTzFw4A1rVygrhXXB02oyVVza\ndyVL\r\n=g488\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDtNM40jYhzhkEoHHPGw7KAyyqTW3U0w8tPVL117FJodAiBNhByrWdN4r7wHH/E6txQMqHeLEfu/qKUi7ezy4VBZHQ=="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.2_1618576451622_0.7364262515440916"},"_hasShrinkwrap":false},"0.0.3-beta.0":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.3-beta.0","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory.\n`user`     |             | The username for your Hue bridge. Mandantory.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n","readmeFilename":"README.md","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.3-beta.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-r48CxVNDE3ubz2ZHVhcyw9EJZ+B+dwa9DrHI+roWkh0rVK/nbytu+z9BiEYkg2Hb5x793I3Xyd8W8z+sjfUUag==","shasum":"8598b275e6ff4fd803c3e8625ee75a7bb8a84271","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.3-beta.0.tgz","fileCount":406,"unpackedSize":11352091,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgesNuCRA9TVsSAnZWagAAdK0P/3Yu2pcnYYcXEBwGxX4O\neur4u3CSw9kh/nPEqmUb6sMFVMZmmBtHf4R2XBwaFbZ8+ssmoa6sDVKexl8r\nFPzGZhQIdELsNaZ0OdPand3DFZa9BYbb7gDUoXAqxH+jQDWkj8NR68V/STHT\nILeRURQLAtQ1AM/TJ2EotOYzuUL+7VEUM/gQbto6XItf838y+VjKpenhjpKN\nyI1JtrBnPYwAeWemOVUriOLFnG5cpGMd2b5GEImt1MK6sz7bPI2qV4DYMcxp\nP6Ws53as8RPVRdcV3h9QH8N03mE1CT/luKDeYTWYHB2Uolse7BiEyvtG8ILz\n615f7eCNs43OvcTStQhILdCRUAWWjJpMSKe5H0H90/XWuVgUlvX9S4fkL8pt\n2mCzzOl4bAFx+++6O4Vcx6L0pRkMs8uKEZ5y2YTmqQpdf8ecmLwb3nOlAzMB\n77bTIkKXbsZUOQ6aDQTCnwjQ6F9RNivsOPXQY11fdbwHFtOvlBcoLPyBGja6\nXOca2xxff01OVqAzO/jn9DAsmIAghtPFrAreNLudPc+xvOG74y6ItD9QOtWO\ntT/ilqmb+KmdRHv3oKYzPFYeK8x1s/ZDQINHx+c1vSR3eSJN7/AM9sRiKHwU\noYsqf8b89lLugXMJMSFPm8Z7buZI1LqGluYRPEeMRQJFmOqXTLUx7EKyPHaM\nw72M\r\n=x5MT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGHyEfE6Kuvr9mzmCt3rOZ2zlITTlLsOO+KbZG3kzur0AiEAmHhXhfU3OLqUVuGPj7GFTXh5O2NithtdDGy7gNwgAPI="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.3-beta.0_1618658158163_0.490493526373851"},"_hasShrinkwrap":false},"0.0.3-beta.2":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.3-beta.2","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"2c0384c912902939afa7aae9445b8c795c158b34","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.3-beta.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-WVeiyCxO9zUDfy4D+J+gxINsHkV80UNEybAG+FK09HWouR7MK1BbxDa0FVTQT2XC7ux/e9UbSOmWobMeSGH+2g==","shasum":"8f848fabcc74bcf73bddcfad923e892b2ae69e51","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.3-beta.2.tgz","fileCount":419,"unpackedSize":12242738,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgjTnzCRA9TVsSAnZWagAAiOEP+wZkndesl7ngQUCLRlHA\naSLVseg6UBPewQ4PhvJBg34jhXRHFmQPYzjBbmYvI5Ze7F/hatO9NEci/Gsr\nzIvDBln6Sdk5Cebs3KyVPO6rvwcJXnuTBW80NekbynS1Sg+ak4v8YDucLmaS\nKLVx+4BXmVwJb43NSPZX2rHCNxkHPqzClAlwG/l5caf+hszHnuivGSTQ0wz2\nU4lSVqcCP7eBqV0HLHjuBYR5j53o7+03VKkE/j7A72vPXsIT2G0Eh4YI37Cf\neOaEC+AlkEmE+5JSZU6SYbpdXqlHeOHjv7dpY1eJE/ccINMUArmnjNa9tTn5\nvdr19CSxkFMS7t/oFkc/U1WyeCKjILOXyUfCVHv/BLQNUi2/brQWFlDcEhcD\no2dSNp1j1vou/ZSKPj0dB2tLqCkjrLCdO6s0l7rOB/hdd7ef3nTE5Tze3/cr\nn1POtcW/d+wzzmeeYz74HkFG9PK4sIdUu2lXyRs1opRGREHDRC0vMPJ5fOk6\nA9SaLIt/izHKtS8voLqHORJeK6MFZLYfrJr7101e4obrW1qsJ0B1bjsiL+37\nZ76BO3eK2Hjba5pKxuW+jEXlk7C9Bk0+Z/BTUYYWYkWxtz0QiAhpbfOnU0g4\nvCTgo5hdchQexPeUYzgn91u3UZPS746TA42t7fXgFmKkZux86v3K8UiKtfm1\nBx7V\r\n=aTpn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCR1rV1d/m8QJ5TQfF9RoFS/LpupXVLi/rkyCujuuHLgIgTE+1cMZhMmk/BQEDy1vmgcjT8h9z6AcZB26r791n5P0="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.3-beta.2_1619868146404_0.4648911271029277"},"_hasShrinkwrap":false},"0.0.3":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.3","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"ed3ec7e41546810bfaaf2cdd0afb7af8abd37bc1","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.3","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-mNmg5e8npgLUkDy2VBQxVoF8ATdcbywHtv9Ht0EnU0VSMgfYzcdWVdDlu591cGBbEX13Bb6bGiARRIa4i1Xu5w==","shasum":"299f9300dbad5ebbc4a7c346592b05272a872fea","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.3.tgz","fileCount":419,"unpackedSize":12242731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgmrbXCRA9TVsSAnZWagAAqBYQAJzmGqPdHoIWJOZqz9zs\n5JyNWPDm1JXxMSkgEP+V7dnZdUfBCJiAmkZVnxkh84n93EW50KhRZGa1E5IA\nL0Hm9jD1d++HrvEi5hC7aduySQV16K5iyJ304+xCo9AupKvF1V8Qs/jklsFh\nOohhtN1oLGOMzAczfMQPubnI1BCgSx7LFXFlt+cE0MGaYFljCS7y0WL4vpxI\n2a8EayjOVWm21suDTqvbvL7NzMnKvfX5w8f6x5EYb1X4GMXW8wH3fjIZilwE\n7/lkRQP2GYBprLjDRst4YFd8SrgOs9l5xTWaVALdScBBn1Otn1m/5jvpV2+8\nQiHBxTfYv9+diVHnoEb4KUNeiL9+hUOtbVKbL032+AaIF85QANeCGg+zcC7g\n7ZS/9G4cI15EF1TgIzCa33TYa1Xdnnd0O5L59Xh/kg9vgJekqnDCv2Vn2MLD\nV6snD6LS+Bsac8iqEjCo/kYMWocLRSzFfUCe/xQTz64VeahhWU+Svu/4dh5u\ndJGZSYjQNTDwCKacKtMkzrYHKRcMxtBw/AEY7F6yKyPUNgwVUBtse7xGFONV\nM+Mh0PSP58xM6VWOr95KKTJTggdiANuNwxPFImEK0TnARFRPzEiDh50OwY/G\nAHjkyIZNdQeFvSnsuJF2SgcyJ4N2g+PDWm/vAATB7QR364s78H9ZIS1diKUj\ndXYF\r\n=sk79\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxo952u79YCBo6CrW/wu10a9SGV/4mhV3Aul8hDk6aRwIgZei3rS+itcQUQVrmAonv/PLq745hVaehllwU+pNtee4="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.3_1620752087343_0.6584230730416094"},"_hasShrinkwrap":false},"0.0.4-beta.0":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.0","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"53ea3937c967b091e789267479bbd3df704727ee","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-kwtiI6yAZhGj8q/o1JR06629JhNql8b06kaBKSXI0B2ehvsvH8Ay9JUIMQk2vtm5Al+Ek5SNkCfmoADbLE9Mvw==","shasum":"836d921cedfc6c76245ce8ee4e58118a156385de","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.0.tgz","fileCount":419,"unpackedSize":12242905,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgvJeDCRA9TVsSAnZWagAAcz8QAKISM1Owvfv5/ZefrLex\ntQ+9ix85PZ6AN2Xl27/6Mpwj2eAWx7lilHK0qteHTOPtHlKjg26Nfqpk4v6e\nRheGuUFj/xIA+S3oesYgMSgU4LxWN27vFeRN9PumIlLlv3o8HhlgFkwE2KR7\nZVskjfeizo3m5CMKfjErzsHCzI/hX2ZxZdGREy0pnr2XZvp1bBXqAJczKBxJ\nGTWgVb4jKa4PXhMGjzkTVMMBHylxHe1gaG6Ox7p/Myr3lw0ISc2MNB2Y2vHS\nKDudN/Drr/PLZGGXmuqs/akcC+/HSfHGQlkOCfZ6G1qKTQ25Wc2BgMV3PstW\nQ99UW28n/J3gnEPbMbq96wb3kHQoknVhMqKQ36ucbOGL2gfp31FKFKkVQM+p\nn2WStY7t45CuyZ4azOFE3jIuh9XH0vtnTq/5B/oD4r9MxLcEnOnG/dUZ5paL\nyghvvDvOJc2tUa1FFI0ouMOgVZN+eu8jFV6cd0vUm/5xeRc2shX1qk6Ozrf5\nzNW9rG1v8MaL9L1qXThhl664Jmm3XeXjyXfb93QqCklBGs427dbq2MRIrcIe\nMJ/t79XMLn2MNos83tapxp4ox507Nsd8cVRQ2cohEUPALAA3/W21PAtUJUsC\nHsQpKuV4tI2xY+RBrRMq4qb9K4R3mJdlr8nb3YAIa/YUfbACqa3W2VxQ+zVS\n+lN6\r\n=0FqI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCz0u+O3RLGkTaejgIdFaRJ6/yqngGU00jDWACj7hTmcQIgWhux+uCXcVNlyc93PfOPuAVfa3iRgKwaqjPbNeWPJm4="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.0_1622972291023_0.7765759265191372"},"_hasShrinkwrap":false},"0.0.4-beta.1":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.1","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"53ea3937c967b091e789267479bbd3df704727ee","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.1","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-XfpyJslJBcGfRyUCX/HBQXAEDGnUteusp96LjDDfGsXHV2kiCa5u3xlrnusbAlfSd+8SiuJjzLfnHBjylWRIlg==","shasum":"6b621bd9a1e98466e1d4f121ffc1bf88b1f42294","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.1.tgz","fileCount":419,"unpackedSize":12243929,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgwlacCRA9TVsSAnZWagAAtTQP/R7sLYtow5tWBZYNBGJl\nkMqPD0GpG1i6kd9K7shw9EXsXKm8azy5cZtetAZX4l5IHdLN8HG8MCCFIQ5B\nuP65A4tWAbsRyD93DxJ+UemKo5HYhCKdNZARrzsrKXUCjPoNMgsiN5GM39kC\njK0tYSfXLfCgwTtZjxa1HquxvUPhCP7xVtFJ0wYjD6085GQBIqfGUAMieJsg\nfT6QpSfzd8Gw+mbH107e1jLuqrmTXGuLiHTUXrtEtuXeI833S8OA+8Cze8YB\nsBCrALwmkHpt4jrK/u4hQUIQQD06oEtCkcfjO9tO+sugNW0p6ricJsEuvfdr\nhr0O2TtLNVWh/ciLMOpRj7/OdPvS9GnpIfh60fqcuhqlZkfUDuhty1CYkGbu\nudKTfDEKm0YLo3XQNuBWrhV8bm4g1VTF9nfeEQlnLGA0+FzlsHWQKJtqdgE3\n6UEExzQ/wIQoABEVjvRgBwqkcQWdp+8G/W9algldajX4iuX9/N2PRdN42Vcn\nWqZHJ4IvMbfpKEmXaRfcGUG7bT7OAJFv4eqNMW+NuqxlNRxhsxoHaFfSbEUW\n3/NpUt23TE8nSVUemIXaAffGq7ThwQ32RprXlY0t8bPHjNw/k+ZhIaSAHxqN\ncCXk2pAnZ3PBmPnhzgH1P9uWCl6ra+0wPaqZR3xZnS6+kHU6Se6pXSM0PbCh\n5ql8\r\n=Citm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCPUqmM8t3WIxuu5y/qm1rEeaWG/sTZegKp60lcgYNOuAIgBtHf6A4FoBK8XxSiDAUTEbsbhhCWHAAlIfeIYpkAa2w="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.1_1623348891899_0.7859331480838336"},"_hasShrinkwrap":false},"0.0.4-beta.2":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.2","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"53ea3937c967b091e789267479bbd3df704727ee","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.2","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-Uq8vEzRj3ZqgxGdu+QstSylOEG7+D0lvpZhYTpozHHrCGItBTp1rRwxgGHVo+fJ8iOQqnVrWEIbTG79qc74XrQ==","shasum":"0770b613f2615b3132f6056bea5af35bc26ad4f6","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.2.tgz","fileCount":419,"unpackedSize":12243834,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxOxmCRA9TVsSAnZWagAAuJQP/1JD5rv5Wh0khb5pqiDa\n6MC6a0COtvy1WW0qwAEIRTBCXL5Cn9pdlfmaut9iqrydin45ywaaspO7Y5CB\niLSzsPvMEabDyMh4BK6VNXGDBJJOVXWaqUtR5PoysXfkIHT6Duc3flD2jSkq\nbIB+Dl/1baHE6xhowjC6RqQan9jS9jP59ga6gDb3Lp2kqlhVY7XYD8o7bCOk\np9+3LG5LgKBJ0odRfkT9nR4UhpCBV9Ju4TRewuU/qAtueqdtJ18lLqRwwe1j\n7nH2BW+SiZVa1YAm9njOiWrq11wQ2T1Ds0frW8OxTotokfBTQHUkiMxjy05+\nPuWAjoHPtjewt77Hcu6DgjwhxPgfIjgXx5KHjILtF4qRjHPGsKQjvx2g8yHA\njIkXCYAbwaVVevKdPu7jrZ5ZCGcdvx/flXFH3lKbDGHTzEM+oOK1vCWdG1OT\nl55UURH+OxmlQ2Goc3XFDb/zxcuBQmNaxNYwmPErZR/2uSqErjTgUd5+cF7X\n9QZPcGJw8vQe22ezdEGkYUW4ecJJLwcvq/TDdyFtLm9aVwmoso4fT6hvNu3K\nQrUU6rpthYKBE0guBtdtFt+MM9RusybhC04hC+gcWvSWtK+/pcUg0gN7YTud\n94tScUMjIEls++D6VjeZZZN7aMh/6mrHU3G947HfD3bt2tRiM9zxz185EYP3\neJFd\r\n=hMOI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBsgOVAV/tZMlzS2EDvZRfBwV2vXo8Vw4Ck13uFg/qV1AiB6ldYvAvqMKu4dcx/AwoZixy7oO9E9Mk7ST+fAK5ZJOQ=="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.2_1623518310550_0.9901814750746405"},"_hasShrinkwrap":false},"0.0.4-beta.3":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.3","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"53ea3937c967b091e789267479bbd3df704727ee","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.3","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-gamPuVbKtw19coArz519rHKypRKvqTsXbhpaFfuLr5LVz3fhvIFqeaFwAd/am8Fl1IcNqHEfu6RqQvIywXHY+A==","shasum":"7376bcafbc40dc850618ad5a23ee21b4f0efb886","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.3.tgz","fileCount":419,"unpackedSize":12245016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxPbDCRA9TVsSAnZWagAAoEsQAJ3iIvg/avc/eNaXeK9j\nD0BbOnm3+beHy65Owxb9R8S7X+OZHYerIWf9IWuqXmVNbSXyV+VbALyyhhKR\niERVRoqaggeoPHcn3nNYaO8KLAWe3gs1oLHI+WU+tpk8FpgQLBVhF2E+89O8\nkxU5RVstQwYrhFwPjkUBRYXPl3cQOL2AhOeyXfXzphyvFiM2/EykLeOFXpYR\noCWgytNOS7V0lsxfhYLrkcPF8Jzr4rC1zp4LeIb1+8Z9lvTE0NWPXre3YGDR\n3dR7LJ2mcGHcfLAyyIPgjDgTE0UQs8vOnt1OhmDmc1ANeFiYi2mtriQVxaVe\nfNrUM5BN3c/ePcA1jVfKA4G4N8D2MjRf5SWz2x7y/WQGAoV3+h/bb8pwy4DS\n2GwWY2U9tS60dm0nw/Yqnwv8eRE7IJ4cWeuEWFd1ZFJBF3tPN7WDVX4jJHFR\nPlFH8zALarx4dSueadyrd18OoM6JGmrGpuhAB7Dp4ALZy1TmgRvYK+y/4Q/N\nobNvF6IlowUq7ak2qFCAHS2N8T4BijsaN34yU8FWGbwZTd4NgT5FMdcoaW9d\nFumtS69nDj+GP8wN619tpNHiJShqAKrL6W5v4qNuHaMJE2SbFhSmznnhGuaG\nTbXHAAN3RApdjaY8A9WlHjeIuuMQy41CPPQSsWe83Rk/+9eTlWFdxpllk87q\nrHGW\r\n=NzQ4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCK002MUl+ZQCIQsD35ynIhu/xvu49QgGSLnCsL0AOJTwIgI1i/ZT2vw/63+eNgTrPDtfOh3GVyQ1+9VJNzL6Z4/90="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.3_1623520962857_0.6052916518440457"},"_hasShrinkwrap":false},"0.0.4-beta.4":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.4","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"53ea3937c967b091e789267479bbd3df704727ee","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.4","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-rSUrfay7iZ77hkWMz2VSAY+1+rHRhNePaK49JAm8nD1n5u84PBXEdSfVvTcBwB4hKxZEhEgcenHLgT1iumyXJA==","shasum":"de541c5e747b1d9a8b7f762a7340a21ae9be354f","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.4.tgz","fileCount":419,"unpackedSize":12245016,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxPi9CRA9TVsSAnZWagAAz3wP/1kUmU1tMq8kUpFA+Sgl\nW9u0TQykGM0NG28Svhf/uk5sTQaofgJEMs2CZsxevHbugwPj76k7UG94ogTr\nKR/XDW6CMVyfPjGsjqabuwBVVYtyqDXOL+/n0E6ZKvpX53B/SkxgKqbCXB5K\nd6voLmChMKs3rdwQSji7Lfxw78ST4S43t/41P1yozq1f7GpVl2q/u4TpT4q8\n1mwjFzuDV1cDY6dah9U7XDb2uqPgCwmc9hMfdTjPuZeCbNpZBFecexmlQH/7\nwfRzANuts403lZViiP95UsPuXJLT46yxX/FckbUWcel54JpO9vWCeM+H2zdk\ncePGUZ1uRx/eKYueIDth62SqV8+7ssfzgy0klrLtCeokTffbJpjyDcSTLWqt\nBbWG7hRJqRz8/MieyVY3V7/4KWzpLAuJW4ROiQwsz1Bi37NC6A0dFiGpvTYt\noB9qhaOp4bufsJMYg4dCwrLF5IL1f1nVFV0NVAHJuYoBjGd+vd/0EpfixM0C\nGjm+cFYz1acsMOOaedXw2fo6qwSInsXQ1kxa1Ngkfpaqlsr8zXYen5UJIvNf\n/1YrsybB28Nwutq8bU3bGwEgJuc0vHEXev5rewP4ydrxhDDVvVkAfYpU0SnG\nHcW4fnWkUauXEMEe+U2zMLLfzo5HO/A3SQjkXfrdZhsz+YnQEwjaZM/72uWI\n7F1L\r\n=Rn7f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsHsGRh8hs9hPF6zOkZ1kvDvWbtJAkjvwPXZxMXmIZUAiEA6/PVlTCm7Vz/1dtm+CM/BB6rTjhTx3khy65IL+RwjmU="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.4_1623521468913_0.15621914069454346"},"_hasShrinkwrap":false},"0.0.4-beta.5":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.5","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"55ce3d774de7955703d5a101de27771257958b7a","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.5","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-vsGOUTrW6whP0X+q9XkM9Zbz3IttQtaKO/UUYWeVqklZUBn8lO2aM3alA2B9Q6RB1Ek5kDYZnRFl+s8MFk0a9g==","shasum":"2d98e12232814eb273521e640784d57a379b4a78","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.5.tgz","fileCount":419,"unpackedSize":12245562,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgxyUkCRA9TVsSAnZWagAAnpgQAJa4wlzvmraGvhDJEJTY\nJC+AN/KzTVVMfLzsZPn7oFszlyzWPYhM+nprCZJadKuDSUOKtKYiGBK6605y\nkS4Jnyui50q7gcaaXxmxYoF9XMwrocpkY/KsytJy9BFDrCvLLeaIjdI3Yeeu\nknL9xBrNtiXUS1wwgCdsfh+1Kv5HP1vx53v+TUtVVjtyLc/JYN8JmdrkzOdl\nOjhC9sb9GCfobr0BfOoEqhD/CHuYz/gdnu8Opn0c/rQ8v/JUjRaksi890/U2\nP4E4QHUQsixYNhWVAqesB4+/F59zcbZisAFFLECTWxjrg6dMzcE0/rCfcDE5\naINsrpyWej9OwhJ2ZliJ2DpS0FA6aPxYtjf+0i2BxNtG64d++uQ0E1K9bK/K\nVJB7h1q18Z2C7cDxCxYgtq6x3KcKjZ4ir5+0qsi8/L8tQM365f56T3Pc/y3Y\nCUCFuOWRhyY7YMTOj9zLYjHMd3j2mDAqDZxR/urECuCKum0/hPd5oeJTeb7r\nKKo8brv5LDX4vxgnSBlpczlxv0iXj6Y1CKv1nssEZhCXktW1yxPMbKrAkATf\n/27iKh4zOZzIzhRSIj2K2Q13UB+t79h5E6ssQAuGFrsbZyEdOdOCfyP3mGcv\ndMyCjnzoaC3yLSPuZoww+NjiwegU1DLh0Aj+ATqt1gb4P6cCqZ28A2mWvz7b\nRs6i\r\n=HzgF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO3/BRvgXyIv9uAQTm8cFC+KGnj/5RCoAzgRuzHTsiJgIgE/oahM89ZS1iS9Jbq34Z4yVoXBiBtLRuUSmcyOJQkSk="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.5_1623663907691_0.9611608433381935"},"_hasShrinkwrap":false},"0.0.4-beta.6":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.6","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"c3a428f8109b217bbf0835910b2bcc5a75b6e6df","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.6","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-I+A1a5murAm897/cIb3q82WpjjVVCz4vpV05ZWkMvAHy9iFRN0JmbNhSXIR3gq/LCY2ERHqYqUiYpHJ2V0H9jw==","shasum":"23ed8a98ce6c5f4ce143e77d8f9d834b22a8d319","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.6.tgz","fileCount":419,"unpackedSize":12248188,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgzyayCRA9TVsSAnZWagAAJf8P/2F4m6l8XVtwiA1GVM7N\nKoEDZgwGEcOUGH1mMBuyLqZWzKY84LoiWJZAm3MqBeYpTuBoJxni95302/VV\n28FNsOGFAVPfheL4QRjnOddsLfypPmglrX2h1FNYjiO+xCr+sNc8I7JAd2cY\nRsG5qqwaK5hc8FNXdKE06tk4fDxdSrFB2RDgQubRA9PDXm6EM/tpjqUg90YA\nG/Jq4ChLgu0pScTVXzBCiYWVq3oULhpz1WVqlraGwv9LYJalePsNlNytTkPR\nGwtJDDr3wjAXlp/JX11geUxlvgSdFbpr7EFCE/2/Eb28CvaBNlgtcN/wKtFH\nI8g+d45sr+3ceDtn+v4euvrTOoq9LuYTTY4p9z2X4uGvyjfblR7JVdtiadA/\nwQYPpeqNCNyII6t+7eAkf4Iim8+0RtQxYKKqiCEnstGbswEuJDfWNOXsi8Nk\ncpW8G1qFMsvx4ObTwWlEmzdvul1uETviLAkhXWH+mkR2C+D0GhLfMkN8i6mE\n49EaC1diR+g8GuaR5QWRCVCXZJ9+O0IK+ATamDOR1VJXLToKZhdCEoIXVluM\ns0giowfHMrplvj2KWx5saAsoNlJFM5jEKSzBB1VitSC5Kxu6jdX3ATttbqcn\n3pfOCGySryQ7p7wGVBFOIyeO7smDfY+cv0p8vJiVfYUkTRojECnB7JrTVqrY\ngKDk\r\n=I/+G\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdfQhFoql7aUUY58PzodF5q1+ZNyYyuKiUaEydE7L90AIhAIk6VEtLLug4VbGFckLSDBurHrVc05AbRGNi/v6BgTKz"}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.6_1624188593858_0.18309522948406887"},"_hasShrinkwrap":false},"0.0.4-beta.7":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.7","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"ceeaf4bbe6fe2d6c7f4c063143f06c6530b4276a","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.7","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-EfyzOAfJWmyPxBPdFI8woBboaXJKBVHPfk4BpcYhBJ0HZWCGjM/CyUO3zFvXnZAvlShSyty2V5njDs92SgU0VQ==","shasum":"c334aebf28ebe80deeab9b71e66a91b5127ce4ac","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.7.tgz","fileCount":419,"unpackedSize":12248626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgz5ZCCRA9TVsSAnZWagAAf64QAJX9SNb2owf/OP3pV2eF\nvgCvYumAPwGXEZ88mqx+Kkqlb6/Wda2nxsaWkXSAZ3/t3io7hlilH1wFc/kt\nDO1b/hXdkPToTYJoyauEPPPy8qPdN33fP029+3qln7FGftdJLXqn7krfUVpX\nzgooMB9QoUno1SYrPs3574y02ryFOqZtDyXJBZ0camIIsbw5WTBbcd0raWm8\nYhTz4r8cpzVbPtSNJCoYzPl50AjlI/OEWX0LGMGwW2Q7GL2IsFxuyZhujuRu\n75VmbAX9evNAOaP7Qruh4qAgzJrEfiQ53mMBWvVVRDq3kMfdHIu3nRLCDQ9F\ngn3MV8rL/N+LYn4aUzrhWngwXTsDAmGeAfiLKCf0aDcXSvJbdDYQXwd/OVe8\nra5AoB3MzoZoBrKhSkoPbFEOgb/G6Hl5WfFScYZY7hFHVrzyLGc/DeOfjM6Y\nyFSLNE58O35XNTdt9C2UsNNjL13mSl2DYDaZM8tUGoPTmE54DTGM8STo7GLo\neeGwZ69bHoqvFY3e0wFQkkRbBi2pn62XehUZ1ylsJNESNiHWwEZ8Pw8t+zP4\nyu2Fai1ci5luwFPD/DfBjKxCLwewrs9o798JA4beUj//YdUZNg7glgzVF0Hk\nBA3WSUKtPvld9SINKzOZ3zSZshxCe941VKuj2DDcSjS/9F/CUUWgQrx0zs3m\nEdVb\r\n=ogLD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEuxAW52vIszbqiSkx+gd+wMT+NLs1WcZQvdkcScycx4AiBxemgtZwvaoMWVpKi3WHviRMYdZFFHujvQaZtFfsLh4g=="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.7_1624217154240_0.41028150156759224"},"_hasShrinkwrap":false},"0.0.4-beta.8":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.8","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"ceeaf4bbe6fe2d6c7f4c063143f06c6530b4276a","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.8","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-vCtyWGQTvoNerpTzR/uDgqW50qOyyR+bVvoRnJBiwH1Q5fHSmOGKQnlh7tO6HV1zdQSeI/QPrp9XUqr2vaSYxg==","shasum":"a424a2d9af689aeaea2caa3143c77d3f3256c80d","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.8.tgz","fileCount":419,"unpackedSize":12248626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgz5d6CRA9TVsSAnZWagAAoLkP/28uaHK8BOtMyoui6PaW\nmFlVACbZDNjdw+Y5I1DJLgx7+He7r5yC3xrmEYjnGZa1/UKiZboYLy/8Tztc\nzJeEItLV4L5m/kB3N5fxPJnGKGZ7llnSgfHpbFX8NFmENegOgyI5ieFpVPTJ\nDupdyO6xhAmG1evzmtSlA7lE4lIc6fUcv2AIoVixL246KKIvJvfUD2bturIG\nQUC7vF+LYcI1snzIMWUeNwOsmzyNZiXTxBDzCmBAmOKyY0+uiwTPe2h6Y9LF\nu1UNa2CAAqtf/06AjjgTgZ9+Wc7pm2ApCt+Y4pRhuzTQIOgMbj71DzrSy7K5\n6CoMXyEq+JNk9YYvDi8xJAmarHNg8KtM1yqNEF7x0312R+leuM2SGtkovzQs\nSVTmnhUJW2iexHwsqoxmi6C67feffs9MgASPoeCDU5triD5hiL1kgM/fcehP\nLRcgmImo20FypZI46bBNa+hsJK7XUkcNSiY9R66cBPznYf1pqepFPafIFBOO\nnxFFY4gyu1aUvL8IvDnX479ZD53ggwbqa2OwKyZTCpLHNIiK2+lHQROJ0JqZ\nj7UwVo2fIzHNiS3FC6IOC2M6csabNVMEUgJzMDUoB8GUxSZCK1UQHbsteyNE\nEP4JzbpZTUFgrKMgTwHCfwGoMYKdUbVsrBpJ52+awd/0tF0Eg8WGBZmNdZ0U\nkS92\r\n=0Bkc\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDNWWSFhxnaiEzVroatG8CvLJN36ICAaiWABcv6sg/5OwIgKqdvXMoQDQ9DqpDPrKlqDmk9Its5QMn6JJ6RXhAdD4E="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.8_1624217465627_0.5034828650381644"},"_hasShrinkwrap":false},"0.0.4-beta.9":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4-beta.9","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\n\nambientHUE dynamically adjusts your Philips Hue smart lighting \n(and any third party zigbee lights on your Hue bridge) based on your preferences \nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your \nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n* Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n* Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n* Configure the plugin in Homebridge's `config.json`.\n\nKey        | Default     | Description \n---------- | ----------- | -----------\n`platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.\n`bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.\n`user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`.\n`host`     | `\"0.0.0.0\"` | Hostname for the web interface.\n`port`     | `3000`      | Port for the web interface.\n`prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.\n`suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n * On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n * Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n * Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and \ninstall it as a Google Chrome App on your desktop.\n\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature \nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour, you can enable \nthe \"Smart Off\" feature.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous \nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the \nlight is put back to the previous state or until the next day.\n\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n* [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish *beta* versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the  *beta* version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n\n\n","readmeFilename":"README.md","gitHead":"9c486ca3a2abff2cd5daafd66ef73ef0b172be7f","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4-beta.9","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-FaEIwj2xB47Qkj2LkrQXHUVV5yrOPxetl7nI19gGAcw5uMdUYhWUYKFJ/ksDS+C02HN3r8ODWAl7eJ+wlh4Ftg==","shasum":"cff68f801070b1429da0e27347babf9a99486ccc","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4-beta.9.tgz","fileCount":419,"unpackedSize":12250803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg30IHCRA9TVsSAnZWagAAXhsP/RSIuyD9xVJzkbuPyuwo\nAQryBH/fVmwPu8ATwFKxtJnpWtjvQ1Z1rs0safNpaLBvR4TUqX9nypCCtvqc\nWfClvwEwrLWPhqebNraKrLYlqZSDbLBhw64mUJ6iOrQD1SxEvqjGpHk7YNqC\nBu8oeMamgMpv0r0laK6QVlptWQ0VW8smqiVnmlnRBxxdH92I5isWXaJMPHcT\nsn1fGdVhiDI0A+NYYgea0RpgK3Q8zeAJYLLhnyFIj8Y4YqGrCZNd6XE2pvif\n58addKGsOZgiqLDxtxC2Lc+giaEYUjI2Vluhkp4VDqvD480JdvYJF9huLGQN\ni92ZWbAwKwLVmlKLDJMTtBWX0+LlcM858jpFLajWsGz7bgiX/LH0zkA2WnOL\nuiaXVnzOQO4Sm2pGd/jwczV/Fv/MrZbA8LVteBcn5Vz0swzwsklxMjkUkrS8\nYwKBo7HfJDxGm+JxYYoLfyI5/eWZR88plpBM1PweNHHwlONqUdZYsodErlrG\nqsqieQohnizNBIG/GWpegjFtVP0retgfp/v6F3QhQ5rv1rpa1MWx40qTHIWy\n3cy6xojYr8VKEiMOsWO67uRe/i0pnRRs2fHSZTzQAQKKaQaLIo7U/OZijYjR\nO3ou+Y2pEYv5koaMi18uWxv0LTJRqcif2n0qL6QswLJD4womoiX1LqMAARKq\nhAxp\r\n=ox/1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCS4emvEyBeHaRt1SmygVaGkIoxQ5CWtQ/AzHlK+bhrWwIgfIg7Hrclfi8FKfkrBd9rWhzU3EeyFVijoj/5WQLerTg="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4-beta.9_1625244167072_0.8865137089759942"},"_hasShrinkwrap":false},"0.0.4":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.4","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=10.17.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/common":"^7.6.13","@nestjs/config":"^0.6.3","@nestjs/core":"^7.6.13","@nestjs/mapped-types":"*","@nestjs/platform-express":"^7.6.13","@nestjs/platform-fastify":"^7.6.15","@nestjs/platform-socket.io":"^7.6.15","@nestjs/schedule":"^0.4.3","@nestjs/swagger":"^4.8.0","@nestjs/terminus":"^7.1.1","@nestjs/typeorm":"^7.1.5","@nestjs/websockets":"^7.6.15","axios":"^0.21.1","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^6.6.6","socket.io-client":"2.4.0","sqlite3":"^5.0.2","typeorm":"^0.2.31","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^7.5.6","@nestjs/schematics":"^7.2.7","@nestjs/testing":"^7.6.13","@types/cron":"^1.7.2","@types/express":"^4.17.11","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^14.14.31","@types/socket.io":"^2.1.13","@types/socket.io-client":"^1.4.36","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"02e32a6e7258b4436d5ae2c750865e444e56b59f","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.4","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-+C6yO24rDPsH7CkaCRwH0lm5kmAYK0yiem6r9fypel3T7kNBdITJus7smVsJgss2FJhu0CvD4ulFkOeTSu1Hcw==","shasum":"6ab28cacfb73673f1d03a4698be2560e878397dd","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.4.tgz","fileCount":420,"unpackedSize":12252233,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg4amyCRA9TVsSAnZWagAAH5IQAJPDleFuREdRDQlyTRhT\nZrbBxhY6h9vsFqKOH/hwAz6jiU4/TlQjmKVYhRQFAhtyKUzw/Qa6CzBfl+7m\nNbJwrXMIwo1DkbcfMsV0whXMMr002xxgivPPzmjY1rD8sODYpotlQ2RC3NLM\nf21a2Dnm4lRNlkvtkb+shkvPvNonacDFZ0BL96NgEa2gRUmEK6ZRRmLPD7h2\nvbqjJ9ueUUQ28WalDZfDQrP/mEPCSbUYzKlA6sMpTocS4lTwBFPp+QjI6wSh\nRJJfh5hWgU8o5CGMjNQPF34J4gWUTBV7AKMsiSg3JOtoRzDh/VBBxvDcnrjQ\nI3H8UpCwPIZC/n0O0Dy//spVYRRmL6gpNkntJv1QDuCeHptmpGYkBpeI+xkf\nsbWNwfahcVyUz67+ZNIS6ixg+GZX6wlwozSu2Z3I9dO//KpqpwOIbFAoXyku\nHcFcibSHI8uDHSA39Et33C4OUwf3As4HYC0mKMJF9cEUmVHFmj37I3B1l+eg\n6EnQJTwNrzWjWIuMhkLXqiN8mry8b9dYzrwAbCaUhHAWzFlgUGIv3X/Up6Hm\nqEtcmh6ZjD/YwDTwusR2aZyjGWht4n8sV9DQJuV1/U47s4lPHXCCKhAfPPRl\nQsouPU4EpZxP2uRfMzVQPWUxlH8SRjRpYJnzPQGpqMb4CE4cfyRiNicLfXtB\n9PKr\r\n=6YO/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGV1a6nc9jymTig2QIIYc0jjAac/DjDZIIUkLWQKsq+ZAiAFEuS6goSyYnCym6gC1g1iI7tJO5sTAOhOVlayxbzTqQ=="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.4_1625401777549_0.03471406550210676"},"_hasShrinkwrap":false},"0.0.5":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.5","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/axios":"0.0.5","@nestjs/common":"^8.2.6","@nestjs/config":"^1.1.7","@nestjs/core":"^8.2.6","@nestjs/mapped-types":"*","@nestjs/platform-express":"^8.2.6","@nestjs/platform-fastify":"^8.2.6","@nestjs/platform-socket.io":"^8.2.6","@nestjs/schedule":"^1.0.2","@nestjs/swagger":"^5.2.0","@nestjs/terminus":"^8.0.4","@nestjs/typeorm":"^8.0.3","@nestjs/websockets":"^8.2.6","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^7.5.4","socket.io-client":"^4.4.1","sqlite3":"^5.0.2","typeorm":"^0.2.41","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^8.2.0","@nestjs/schematics":"^8.0.6","@nestjs/testing":"^8.2.6","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^16.6.1","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"259102410970cf70d8f6e4c71c9db57e5a29c9be","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.5","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-/11GNI2upd8YUa9w64UR8N1dkS7uon/hetlY/CmJirWaraTubxwEdf0grUwYZInu2qtoMFJrZIArLeDkgQbw3Q==","shasum":"462bb191c18760de4dcb4d011a3ffc719825c126","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.5.tgz","fileCount":353,"unpackedSize":5770870,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiB6F6CRA9TVsSAnZWagAAsi8QAJLjee0DIGgo7N0H3smt\nnS/BesauvDQNYeNuSSZ0XvnSZaGWbGUn0u3hNM0O5CSBFzNnPqQoMsHRKQSv\n0o6vY0BbgoC69dXM5T13a7yDf9wbVJjtoj2BcMpXdDCCnc9Ln+NkrnxHuYgC\nRyvYgc4JnhDOVzumESj7t/qOodsk7xsER7tX+NGBoftgsGUN/IdZhUw3CAuE\n87DzTZpnGqVO9PmC5ppEEksgYQZM6lR0BU4KgNHnQ3IpGqdYyIAMlrx+URFm\n3QDXXuAXjg2RrU25VAy2I0ff+e4YuYm1gsWOG4DeE6HrUUmfa3LIs/rqrk7L\nJIBf8WGG8ln+kpmxlcBHs86SlsdXSVh9MYUoP6PXAtiuFsomIaxqeH+zKORV\n1YEKREQuJGt+nAnlQ4AikwdigkCTEZ2FAc3JxRl4dRhJ1w8KFcMJUJwPaSwr\nvw6LqIFywSjcp+nj2iLpramAX7tSJvZBHrUPHbxF/H8TXpzyNl3QJNwD7LXV\naSDX2vpKccoMbW/UeLKPP2mODccPbCzpTfBhK3eF/d5t1t3bHKRQ6vgKjiYg\navxTRLiDv/B9FPzmL08vUbV/WiLEES2mZM1zXqUndDtqKB8v4Ifu9GHvXy5r\naBCQGz+gbzEGKLHIyAi11Z4sLwpsWNtq/0YCj+F9ddWKlDljhaeY8IHPwgW+\nJpmu\r\n=lkEI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGeQIArnryRHYa9vd/qZ+EaWX3rUG6tAarUDypGc67lTAiAqrEMV8K7AUvjh3wcNmzmo7pOEc2jDcr6/VYB+WmgFRg=="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.5_1644667258385_0.5930012015078963"},"_hasShrinkwrap":false},"0.0.6-beta.0":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.6-beta.0","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/axios":"0.0.5","@nestjs/common":"^8.2.6","@nestjs/config":"^1.1.7","@nestjs/core":"^8.2.6","@nestjs/mapped-types":"*","@nestjs/platform-express":"^8.2.6","@nestjs/platform-fastify":"^8.2.6","@nestjs/platform-socket.io":"^8.2.6","@nestjs/schedule":"^1.0.2","@nestjs/swagger":"^5.2.0","@nestjs/terminus":"^8.0.4","@nestjs/typeorm":"^8.0.3","@nestjs/websockets":"^8.2.6","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^7.5.4","socket.io-client":"^4.4.1","sqlite3":"^5.0.2","typeorm":"^0.2.41","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^8.2.0","@nestjs/schematics":"^8.0.6","@nestjs/testing":"^8.2.6","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^16.6.1","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key        | Default     | Description                                                                                                                                           |\n| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`     | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`     | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog` | `False`     | Output more detailed logs.                                                                                                                            |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"acb7421bab551965fef443d16d6a016abd90507f","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.6-beta.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-DrQL/51ydTYNwAH1wUZOa0vukcbBsIX3Kkoga2o4+faeB6Ei7ygjiHki9CB9uY89mohGE6jn852xJQCZdoOlxA==","shasum":"a6798240f315a13d3a682fab99775204fb59eee2","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.6-beta.0.tgz","fileCount":353,"unpackedSize":5772153,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC+MdCRA9TVsSAnZWagAAD8IQAJbrjTZscZ7aQMOkyQhX\nOc+8oa5ISjBuv4TaYJPs1EzO3X2PgbcXyWqn4zf3X+uEaJq2A+EYaNt/NPyj\nu7dCZpxew3ja3crJ/7p8N3rLyhSsPr+M9UkCjvkxivZL2FbydhBeSjBf9hNS\nHjRmhUqeArqSmyqiVZ/27tG5i/OYoIzDOkIGWR+omUkUSRIovwmXAs+Ki4Fc\nQcaFTGA9/daw5kSGpLXRpJ/Xq6n9zfV5nZvcTA6+kp8PyI2vNX5VQ751GimD\nJhcQak6xSqTcsJPo9rDBqDmU6Z2nwSbQ0w65Ic8SkNjFyzDLZKnQ+MdirLZp\nquj0R0zg22my1oUn2r+bLCAkgYnuyUYAev000t5fxb4BQA4fXyqkkcTvDWXf\n2epW0gsRVtIHyPRA5bzO5AhK87iPzkXraqCT0yLXYXfz0X0heTiNobxZzozK\nicHRHMNeAB6U2G/ACFWwUwZEgah5Basqg0+kdQfOB5DEmxbVOdtQdlvdLpQ7\n5TURzW+YhCCX0tVNua7QIubpyQHuFvGu/hY3gpFUneE6+i8CZhj2FgTxmy3m\n25wmi3zFg1DCwxqGQa7iqvn5xNmmBqt5s5k2MjuRh9meD4s76b+9KCCE/lVD\nAoCPDi9SusLuPIu0Xt1DOBKve5HTkwaEi7zw0q5KotK4Ka2Gz9BdKVZLCOgH\nAmhP\r\n=7r2H\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLXnt0CRPor18xAfQt19YEpz5AngBtd6SurpBITotqiwIhAN9U3LHoWHV6fU+CMF4MsMCuV9Pu6T205fHYhB+kSgiA"}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.6-beta.0_1644946205068_0.044973448572488195"},"_hasShrinkwrap":false},"0.0.6":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.6","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.3.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@nestjs/axios":"0.0.5","@nestjs/common":"^8.2.6","@nestjs/config":"^1.1.7","@nestjs/core":"^8.2.6","@nestjs/mapped-types":"*","@nestjs/platform-express":"^8.2.6","@nestjs/platform-fastify":"^8.2.6","@nestjs/platform-socket.io":"^8.2.6","@nestjs/schedule":"^1.0.2","@nestjs/swagger":"^5.2.0","@nestjs/terminus":"^8.0.4","@nestjs/typeorm":"^8.0.3","@nestjs/websockets":"^8.2.6","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.14.1","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rimraf":"^3.0.2","rxjs":"^7.5.4","socket.io-client":"^4.4.1","sqlite3":"^5.0.2","typeorm":"^0.2.41","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^8.2.0","@nestjs/schematics":"^8.0.6","@nestjs/testing":"^8.2.6","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^16.6.1","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^4.16.1","@typescript-eslint/parser":"^4.16.1","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.3.1","jest":"26.6.0","nodemon":"^2.0.7","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.1.3","ts-jest":"^26.5.2","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.2.2"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"gitHead":"aa74b070bc2e1a7e34341d7921447d6e35bd1127","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.6","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-0xIvkfFXpeol+HLvIKGVGOdwOLJJ2FhfLp39z2RfnY4JfRcWWHqJ/EU6aNxAqXDlWQXtWAImHlhcTM/XwT1SLQ==","shasum":"b80bfa3d0723369471f68e49e856a0a25de37919","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.6.tgz","fileCount":353,"unpackedSize":5772324,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC+VHCRA9TVsSAnZWagAAIUAP/RiwhQVIPdw83k4G77pj\nBYKdRFeCbVscdEdKaYz+M9Jb+0zTD6yIZQWioFnMvNApii+NT976JogA+hrD\nycZWoWTbHwwkg+rssc+DRhRkFtTQcD7CqI6RxEOSB/hLsquUTTkfte4KyeXi\niGzOAKjCCOydcZFjJVJ5CGBZ0nCDXpq1yxfxu6dcfTS8LklJbMrvos37ye1C\nBGVClOcNNVia5MZ/sEVcegmC2n2/8EREIt4ABcbaP0kWN0aEpxt6hC9AJmtp\n629Hl6A+R8DEwsODZjEyM+4znf8zOl43vwrUrfNvo6eVCAr15CsOZ/yVs0ri\nEfO/+GXqXAaRWQveoC4mVq2kObA1TrJnPECTCcmctRgKvhpN1nc1rtaqlUoB\nBNmFGnrxwQnjyxKa58dISMpksn3fwSsw7P131hovVB6V2vC2f6aVJpZJ590m\nv3zmd4cjpGSvB1qcgsbrvlmO6wmYffhLsjQaTZO6DBg4AGjWnc0KJdhWeuhF\nXmiwcdJnU1nl28OJ6dGqjAGaTnBkt6JQNkJKhJzGk9+0C+l7NwcgOVD7vFAM\nW8/CYaBn55dmknmwcRhE5HJaj6r9g87N6f1g0W3mB7CQD3I1Qmy7kmUhndAq\n9F/5bvGhurfedrYRowfVhwpny5lVjvkNp0VIAyy2SX8nrmAHpGxZb9Hxp5py\n9X3R\r\n=P++P\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLDTj+kCGFkxOuZ+tlbylLNuIocIIaiVGoiZhFPsU1ggIhAOVfyze/YI4uH0LSfuSd2KXUiMHly0NpPFfhC5AvM2GI"}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.6_1644946759440_0.16497202066977001"},"_hasShrinkwrap":false},"0.0.7-beta.0":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.7-beta.0","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.6.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n ./src/migration/$0","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key        | Default     | Description                                                                                                                                           |\n| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`     | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`     | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog` | `False`     | Output more detailed logs.                                                                                                                            |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"5fa039ffd110d3baace50d4650dd7503916bab63","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.7-beta.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-lmM4dWWA6ntjjrOaB9l2w/XPJVGQzPtRaAJ9duVg885Y1OoFe7KAo4P0Jcr3FdRLY6FyOoG+7uCVEZtw1FCfFg==","shasum":"3003fd81b4aec5f6085c5de890cdcb44f1f2a2ee","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.7-beta.0.tgz","fileCount":357,"unpackedSize":5780853,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHWgn9LRJMU0XVZiepwxdw43AdW2YfkiTz8A9Q3mcsNpAiEA+Wl+KK84jGzL1fGMs5T7ooTigfixlam2oHf1XAMRNuY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjpwxvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwGxAAnTMMNkrbk+zCOek/vu1gNeXCUKoiKa0QSBwPv6j/OmYnNssP\r\nHlLARcJW7O4NuXirhtCmiWf+UWOc56sJ/FOlazsv4gBrj4ZwNB9Lg91fsU5r\r\nITVwi/Irdg40J0Fv9onAKEOAd/5zcwuWPDXwkIjXDgXF3DikSrDp8mZYa/VZ\r\nEY0xI87n3xaILlC/hPYBq14dlt0ryKKT9mTJL8uMpSiYJy8W2NCFPKnViQCK\r\ncYhbuYhDNkX4Nh8f2deo14tH8xSfjWKonzQm8sCuSRswmFcVMa6WR/TucoKu\r\nTjbUhdjb78cCOrqDbwk1gEdaBi41/b5G5+mIqdapRO3NA+1IFfi6yflokk5V\r\nrki+JXRqE0hqBTb/M4PkY7tgTJgLTSVbSE/ZvmMHARE0pegzzpJXs9bUfa+M\r\nJQ4E7btin6t4zRW4K4blpEGoYuKGpFBFbWg1FqJrSEu1d+8CbwtvbknwdVfj\r\nNiVvqavd6E/SoPHM9Y+SJhqqwStaVECowwGex9vntwZUhxQFXAJZZ7R7PKU9\r\nM59YGLnK6ry2DQ+T53c6UiqUCmDUeHfJhroClODBs2UJ79q3CzplMefZ1J/K\r\n2U2ban10aRahSrg0guTufOpIgNLUio7DVfpTsV9Ih5OGlDIBTVCeCKWy9TRT\r\nb8tLY56QFgQN2bVp0A50NnMqvjkSCH0Ih0M=\r\n=yROf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.7-beta.0_1671892078836_0.7120421334602811"},"_hasShrinkwrap":false},"0.0.7-beta.1":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.7-beta.1","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n ./src/migration/$0","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"types":"./dist/index.d.ts","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key        | Default     | Description                                                                                                                                           |\n| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`     | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`     | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog` | `False`     | Output more detailed logs.                                                                                                                            |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"05b3ed05dbea09448147809128451be73265f0be","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.7-beta.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-r+EiIPVAinnecCljyU6KYGUpLJ/tYNP5+AAKJFabs7PTQVzckhe0WRPkJZWtsxBnTMSm5gErZBuwAPSDg4govw==","shasum":"7cf968a2bb22fcacd79b2624531df0b6be4328b3","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.7-beta.1.tgz","fileCount":315,"unpackedSize":5542178,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQ74CznBZmQUdzQXNdve/maa01DOahm7PrW6W6TmDTuAIgWPTpUe76qhZD7MbwAFXg0zwvJFXNA9ZV1d+0USCisW4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqE5gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJSg/8D+3vgI28rsdvPsmhTiI/SsTg74EU/tL3FBWzRM+qmRA2Dtpw\r\nPVpRxs0JkXck5TMVyWGKklsM3oLdrf3yCHqDazbPM9k4bpLYRfbQorCC4T30\r\niWLLjfras/iwPsXCxX4Lpqxq5RPZABnn3qZ7m0ZUZsX0QxuUPLrKkofXFrVt\r\nsli7WD2BtDqW4k+zVepfSN2kcvlknHdwarbFwZGHekhh54OZlR23UFwEYQ/q\r\ngYHD/s7klFxoMiZNiHSwuKA3zUbLmgwHx0QLUEeDYH4xSfFcl1zYe8AwpxoQ\r\n41UPbQ1Pl0KbyYQtZFDXZPyV4qZzc/E2cO+NIU3IZSkvGYrhtv5fl1K7TVae\r\nIO3OyV8njUi0yr9PBvekM86p2rIsBzUQX1mT5OgF3DgaQW1L74OP/fy+jO7y\r\npcnvLk/UkS4rrw07FuhDzrH055Umf62XchAr5fsDM6QgbKwo82gY35CZoMf5\r\neWPLVsI5ZWWF6+u0YIVRajSnhynwmE0Nu8UG26njpFGZ6bkeRHqLgLIIIjRs\r\nNGZOas9+rTudH6MbbPAUaO4Gx1hGMQ0i0eLFIMBtPeZ2Q4iORhvynqJKtDbu\r\nn3kiWoGfcM/JJr9M1yKyEMqB4y7qCAou6XEwBJm5x9YXXGEukmtgah5nabtZ\r\niumSk8mAIGkHRs3HbTQNZ0uLT821aACJdVQ=\r\n=S1DQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.7-beta.1_1671974495796_0.04474246327852627"},"_hasShrinkwrap":false},"0.0.7-beta.2":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.7-beta.2","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n ./src/migration/$0","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"types":"./dist/index.d.ts","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key        | Default     | Description                                                                                                                                           |\n| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`     | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`     | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog` | `False`     | Output more detailed logs.                                                                                                                            |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"46a6a763d0af2347db08fa92769dd05376fabc99","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.7-beta.2","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-RR9tys49ghh6X2l5bQYy4u6CqACdYd86DTOIPmwg3Vb2+u5qyoQYdJ/SFAKNNAosy9HOPT9gGA2hrXjKx1o09Q==","shasum":"b53198dc54dfa0ba6566a907028dee6a61a23055","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.7-beta.2.tgz","fileCount":315,"unpackedSize":5542236,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSqJinEeGUUsmT5ZOs4TmDHesmVa/fL/5CIw4wFPWCXwIhAM8mKvdsAxaj84zPbgv+DaPHGT5hc/U7KuqvK37nFyVF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqFPlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiGxAAkGMygrepf1XGu5TbuJsMQPUhBGA1ipKlL/XM0m2GvmDN4R8s\r\nGsaboxdQpvXD0INFl4rBC1/9xBESDppMEskoG/F4JhVVCcb8M7jy3jEhcZIX\r\n2EKXJaQ738x3q0U0jpSgi/LDUOc5mpMdO1b62Nah/SiaNbmC+QM+RKB8IEmN\r\nN3dcKsdopZnCQl6F6IEoGY+STZfRBjqXL7rrDuCVz9cR6Y1ZhN90Fu/WHxHB\r\nlbwFlXSaY1R3GIVQfcdT4wVYYqgkiha04IfYgsLV4GC6wIow846SAXAq73kt\r\ngZCI5jtiWVpxXr9f5Eom8/CqDk3pzDSakLRKVCUO3jxzxTCSWac+pCjzTiwb\r\nBsPmmacmfq6D2PAkT5H4mOi1PRG0Tc42AHoNtCLRHMErqKgL8IaCZTlhx/Rg\r\nsv2xjTiQMTMtV2+D2YmQu9x8pb3iqB1UmnkkXcZ4ra3IPzn2eUwX4yR7IOrh\r\nKwsBV7GrEg7MpoydOWCyCAls9wnFIdKpRGV8wljdRUPAAUE9c1vIYzxQWzkN\r\nSqHcsHeKjRpqn1O/V0H8KJxqGlNFE/HEl4SfH+jgaLrN8h1Vx1sfRC9i0i7u\r\nuGNpBOIHJJQQ5G5dGvIdx3CSJlc/vcjzz63GLPFSxOoOHF8fVpLWfsxxbbHB\r\n2s1o2eS4EBF6XdT8kktC/K6BCcqcX+zyDYU=\r\n=jsi5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.7-beta.2_1671975909369_0.2177801488274549"},"_hasShrinkwrap":false},"0.0.7-beta.3":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.7-beta.3","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n ./src/migration/$0","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key        | Default     | Description                                                                                                                                           |\n| ---------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform` |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp` |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`     |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`     | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`     | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`   | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`   | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog` | `False`     | Output more detailed logs.                                                                                                                            |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"4c3dbd641f198b80268008d24b1a7d0f64e3943a","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.7-beta.3","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-96MSXRw468rxrufpOB/UIhIBQi1EgrxWxPxLQHFC/2sZgVKPLFW7mtoOmcfxkky8OTlAC3Fl177hqeFag5I6Gg==","shasum":"96d77d133553867ab0afe8a699df783dbd516178","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.7-beta.3.tgz","fileCount":315,"unpackedSize":5542353,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA+HURz7MyVSxk7FtHpThyOOu0rl6AAROOMSrZkYKEquAiB2Or2XNW57Qskfag6BEpFf10Bu7ZOn53WJCOLLriKf+A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqLZqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqzog//eiZAte2eAwA4DZ8fhJIeE+Tp6yi0NhjNGh1tEIupX6J+evUS\r\n18ra1a3LdC1XQgxoAhCR0uFxulvJ9uEgyn1I/Q24f3hharCecRpq0przbvQA\r\nQgv7/Cptp3A28Og+RqbKnIS17csHMokSRcf3jhg7MV5RGBePXkaM3FBQjDvf\r\nUACa2Vg/LAl0wJfoL8TW2ZtT5D+vWHD4ikjQXTlAe2wr9N2qWAW+mWf/4Jxy\r\nNdaf7DLvdwOIj8TdrIWcNdr3nU/sycBUUL8Yeh+U3JdaED/ZR3OwHtekLYek\r\noXrONc21pTqThp8rbOT94kvMt1HlLZZ7fjsKqH2+5v0mn8rtJZYPR+vFWr8H\r\net+o5i7YSAuIWi28rXG8oFkbAj1htnfElsV745ildwkzuA96pnIEi0bOxvW4\r\nyVsf81Sq7pp5dNJvxWTxo5BXP1aZ3NbBybUzGXD0jFzQT/JiKDhrCDP/8LwR\r\n7egwQEhAJdhfQu1BvfyPi7sXrVUMM54zn8D++Pkn5aLQLw/e/JBbUzZ/bLMI\r\nxHVHmMAdcawdzZ5ZJjyfFz5cyvEcUlF1iJ791ghKrQoofu6We2NDF1B9kM5A\r\nIs1PBQkvn0YtbBOlQreD8z0YddWDzV3a31H5Mtk00E6xofWJiQks7b2kjMm1\r\nFKypW+RsZ7wM77N1IdmTM5Ny0JtsWIKMD4A=\r\n=6glS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.7-beta.3_1672001130654_0.615504965586954"},"_hasShrinkwrap":false},"0.0.7-beta.4":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.7-beta.4","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n ./src/migration/$0","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"11510660b7da534876de144dde4c5da6ece93b8c","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.7-beta.4","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-AoaK05FcKHpNadwA4jZYB4j/TBvDZ3s/n4EwkVPQ4+oicli1nRjqgqnKifbUNsxS2Zk+IQi/UPgu/b/3T7J5QA==","shasum":"24c58d1dd8257988bc4a4130576399192a56cd64","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.7-beta.4.tgz","fileCount":315,"unpackedSize":5545638,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQSjsV5BGc3vja+4E4j6Mv0aErEIzeY5i0F1/Hj4+ioAiEA1s2Sk3a1eel2D6qgudkYItO32WixdsVWnsPxtJYJK6o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqY9CACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpgAg/9FOwgYbjYhfUbipvwRUGvowzTx334yJnVUxhLbO2nW6Qd9yFj\r\nOz1c4YHBDRVJ8yC/RQiFozHy9YqipQLI52G8UZ82U69+w+LfdFNZIet1feLX\r\ns7id9I1soxlO7TDtXEk09g5tRXpFhBeL+IU+EwHDMyGmsRz8TW3GK5V06G1b\r\nUTC553zq/r2xPkqhh/daDRrPR3JHUh9NRZVVPJSf/nq8cQsr7FjB/hDquA09\r\nF6ST1oPptV/0qB2D27XifNMtVR2xXwQOngJ6rFY2F2agmEfbNP0EYs/RKzgU\r\nJjkIkVJSDVoKd7RwqZh/uAW8pKXsgs1aIfEdEzIu0NfL8uH1JGaYPDzZ8sRx\r\nGbCYQYKKlRKxs0MmZ3SkTdR5ADQLXX9bV438p9beXZUyCJAISdCzchXDoKWR\r\n51+J6g+CXTHAMRR8adRqp7ePCjN45irP+6MWljBF1tCa1T+PfOM5G6j/lro+\r\nIFa5chZoU5ErpW9e19hkbZzr3pKbIF+Q6lZ/055/BUZU+4hdnQi14meduFfO\r\nK9w18nsHVtZqRxhHvDCYA6Xd1tJGiBg7Phn0RKEaK5+78TkwCd+ET+XKLHzu\r\nrd9xnomkTvqnTo2TApvqJlzFge9KCpe1AryCnVBJZsClDYl6l9gSGUbCpL8l\r\nVHJQJ/Rr+Jjfu3fTIXFH0QWDkYJRKwChIHM=\r\n=LKaO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.7-beta.4_1672056642387_0.993727621581687"},"_hasShrinkwrap":false},"0.0.7-beta.5":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.7-beta.5","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","postbuild":"npm run copy-migrations","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","pretypeorm":"(rm ormconfig.json || :) && ts-node -r tsconfig-paths/register src/scripts/write-type-orm-config.ts","typeorm":"node --require ts-node/register ./node_modules/typeorm/cli.js","typeorm:migration:generate":"npm run typeorm -- migration:generate -o -n ./src/migration/$0","typeorm:migration:run":"npm run typeorm -- migration:run","copy-migrations":"copyfiles -u 1 src/migration/*.js dist"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^9.1.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"fc769c186458e44c1ea3b13477bedb4214d4bcf0","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.7-beta.5","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-CWEXO6ICdFguSBEdAX7nupPSfvrhlOZRXzMT1d4iZr0v/a51HtvcB3UhvsktG3Ww4Tr+vSlWdzLkPWIvTwv0jg==","shasum":"e81b02babdfe160ceefda42677005665cdd6ea26","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.7-beta.5.tgz","fileCount":315,"unpackedSize":5545639,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzXa+nL1JQnbpcwurZI32YumaJsjYt3szfTkMDYG6ssAIhANt1Ldu2DMUPVe6ff7LwJ7PsONe0iABIA2ZJUHYBg/nb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqZWAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoHBA/+Jli5u7/6peRDGFqdC5VDS3tcIkY0e7drreLJ/h0RnGhRJyYw\r\nFjhujxkX8iwR1EhVhvSdmyKhSV+qTBsP5sLfH1+297/BJNTjh7F+RCkCWMgk\r\nSkkTd38+aM3I/NNHnLqfetgnvmm6RnXxzPpmI1H+46Lh2/XLyN9wkk4cUl++\r\n6XBWfdqwiUpArWkL6NRuQz2UvxBqSIUwHKHFXX5YsanvpKkW390ebdqe8v8h\r\n7q7f7Fb4ISA7vjC02K04l/3aBdnsFzvnCbO6Ryxl75qQvA9f3hFzDEymoa0i\r\n4wT2u6E1DWv2G16NcqPSQN93O9vOr6iAqiNW/cQELUR0OaAXhqwTLGiRDFlO\r\n/anFanjq7+Bs8H8SAxKtHKqJvnYiXEShNcDFStGiVLhqjuPpk+S8k7e+5QPL\r\nricIuRxigHdy+4KhO4TxdEEMHjqSupeYQU6DJ5EyM8HxPZQfCePwo1mdcxvO\r\nnX7qmi74UNDrYvRBWAk4yZLjwzMbq3Ud3ozsDErufC9Bxdcyo+deF8ov9mUi\r\nW/FKhmhoLCSgvb4Ov1UYu9XX3asSO9HDdOD5V0EMpWHkWgLP4WZ5pJADqp2Z\r\nZYpfJWJiZEgjAaKo1O4bSZU+hf9uXczNU0fuT+YOaHYrKJM4si1n7KTXLorF\r\nqtxvze3b36nMWPIwbfxZKN1fd7tWFHn3X3w=\r\n=dMLE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.7-beta.5_1672058239944_0.35653078664238125"},"_hasShrinkwrap":false},"0.0.7-beta.6":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"0.0.7-beta.6","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix ui && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\" \"test/**/*.ts\"","watch:server":"nest start --watch","watch":"nodemon","start:server":"nest start","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","axios":"^0.21.4","chalk":"^4.1.0","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"b042c0d0f3cffa99efc689f1a9089794ee86d111","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@0.0.7-beta.6","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-VWzfVr0GeFsuLk1hDg7dtzk5HNDKJwJTpp9tUydFc0urNR4EDTmTogv8SRgxQNzXc33eTyUBTLgsntLa/ep34w==","shasum":"5ee74f6761ddb766a448ef3ce9b5c841512706fb","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-0.0.7-beta.6.tgz","fileCount":322,"unpackedSize":5551020,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFd6R+tWXMHcxYzFDRkl1Tst7KenX9rZ3cK2jeNmYb/oAiB9e2VE4lf/UJkLNXsiSRmre/jSSyUwyMRnDbWQVIZD+A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjqcvpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqE1w/+KoThEtmdZY5uRbw51YGg65G4fhPaG3gHMq4Lb8XUNC8/QOXd\r\nqeARiy+imOAEbJYBQa5qM7V1ezit4P9tH8TGRantOL6yQOJFEE7FindPJsUF\r\nCqu0XS7uZEFKNaj97FzdeSVQbuJS7dOpIUra6a1NRsr6i171XDDQxTAW6BOg\r\nsGk1QCsOae4T6N2ElD3UvjJSSpUt6dihln3Pa1TrhkXCwog4lcApQTlrii5m\r\n6IFsX8V+J3mUJ0tM/k64gXF/SBcpukw86pYR3HfZPI4p7278g2+AYVc3218E\r\nutYApLOanPheeKJS5RuAwmlBVE6MNh4DOwR4E2ZTYrAvI7yRhcruIUXKTEVR\r\nvOzQF6neKO9QbX0HEKFqL25rzu/M6BHo9/QFwtTQebNkn0ffdf/wj59zUNXH\r\n+plZfqTRjNF4fq7/IyV7oomXMTh2NxyB3C7Z6HXlUHwDOUrGP6LI8+NOXe18\r\nm9AQ1WavlUZoERM6ErP8vy6gnjAQUKxBWYGwmHE6678Q+5e/eMj0PzZtuwe+\r\nPPvf06GL8HIdqDStzzV/5Jd9jWxePgQ+FqqdPN5QSGf6lv/99su/6A6rNmVK\r\n9Fz+i/2Q1aUb2PXFLetSDrpHPXOrWw8txDTjLzBZGYls0phpmaKBMj1cvM/7\r\n6YRnYcF8VcyxwWBsRonlf8wxcgUYv9USHv0=\r\n=lIoK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_0.0.7-beta.6_1672072169189_0.1898413858698056"},"_hasShrinkwrap":false},"1.0.0-beta.0":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"1.0.0-beta.0","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix frontend && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\"","watch":"nodemon","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/serve-static":"^3.0.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","@types/eventsource":"^1.1.10","axios":"^1.2.1","chalk":"^4.1.0","class-transformer":"^0.5.1","eventsource":"^2.0.2","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","source-map-support":"^0.5.21","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"types":"./dist/index.d.ts","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"acbdeb1f83aa61e73349b05234e5ffdbc298db24","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@1.0.0-beta.0","_nodeVersion":"18.12.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-NN7bpav41dvvdAgK9gCB/5H5nNBg5/XCc2pKXbKbDu1xWsAEYAw7aYyHoLrjlVbnmCLPYURaZiwN4DrAVEk48g==","shasum":"581cc995834139ff9ead7afadd6ed6a1cfe31e6a","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-1.0.0-beta.0.tgz","fileCount":905,"unpackedSize":12794921,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDhIrF2EYNwaea1HT9hmuyHhcuJit6OCQ0qd4IVdpMm4AiEA07Hh8CtMsr5q2rQ6vM9gycaxLjCTIychTobkbZM0BMo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjuvFqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPBA//SyuGJDuwoPdBASqCb7ug+OqS12eLsCjpGAJvTiHtU7hLXZD9\r\nV+9p2RuW8z8C0A/a5kLE1f/28C5Q7OSWfF+QEZTFB1Dzsn/gDPYC3S1t02f4\r\noAVpqDY2HtVj7ePL268dYUWnFdQf/mFmV0i2aajBZUEYTFD+RqUeyIxkudLQ\r\n/dP6gf89ENPR+kk1wnVuKStg9vJAzP43iURs7MIQzmFwdQT7Qf+ka91YISCR\r\nAH1MZP2roIRXXIF0Ha7skz/rcms3DnabjkME62V1hhRJYeK7hYg362ZYmYdd\r\njaNAQ2KFqanfFyLARcmQ9mEjiDfuS0DJW/0nDQ3OYhM9OShYdorgXWZjO7EY\r\n58V9zCOnHt9VzehvrJrCtgM9k2SfKhL5BOp9VA5VemD5ho2Ps0M2qcjZp2IK\r\n/hVvejTCctYEZZYt1bEwgDD/Z79SQwh2ewECJShhOdlYeSp4JbQvy4d/rBTY\r\nKVeP+FJ47t7YnatMGmGzCPOEtKc1tzJz4BLgr2NSYdf4V3KYebsQNnKplKcj\r\nCnQIiTg4YVjlxJrQn6j3OYGj9d2npaXINrTJiTF5F6iEy7zw/EnjZQFPHpAr\r\n50RBXF4anGUPz/hfMqqgSRbdYC1KveedthjT3AnJoKCIg3Mno39U4fGYpzr/\r\ncSMhZ+H7TrXIXVLPiGFlAGiG0RLJDOA42D4=\r\n=sSqg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_1.0.0-beta.0_1673195881621_0.28924304429989456"},"_hasShrinkwrap":false},"1.0.0-beta.1":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"1.0.0-beta.1","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"eslint src/**.ts --max-warnings=0","build":"npm run build --prefix frontend && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\"","watch":"nodemon","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/serve-static":"^3.0.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","@types/eventsource":"^1.1.10","axios":"^1.2.1","chalk":"^4.1.0","class-transformer":"^0.5.1","eventsource":"^2.0.2","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","source-map-support":"^0.5.21","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"types":"./dist/index.d.ts","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"71517c187c12840718df504057bdbec9d3a60b3c","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@1.0.0-beta.1","_nodeVersion":"18.12.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-9hj5tB/xykNsJ0yuJtLsk0nFT6P0DQoypniuWvKQKGrib7MSEZgMBwxmtv/BRK71CrR3+CH/HRWcD9E/S+zHAg==","shasum":"a584121dfb0e0f8a01d81dc3fbad48ce2833094f","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-1.0.0-beta.1.tgz","fileCount":356,"unpackedSize":4102331,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFesmcJpiTlSJTtlkrHC7wGTYvIC3GkQuvRkCYo4DxlkAiEArFQOFfF5krtgpmP6n5oq2z+cW0xsFAgzI6ny/BpxNJw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjuvNuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpORw//RT1Rk9cyEZ6IGIikTcxW49AsxKv9smic88AMeLALrv3XnPLH\r\n05vwabEt1GSCG5o0JSmrGVlqtyEm7gqrSTiWhoVZaywnDuPh7eYbRG2TDMzK\r\nwUxKay3iH/s6SsBUMazGDAtJCmOJxEHat8Jkp05/DzkVjKFB+yTABzzvVL4O\r\nuOYx4wFMNHfLo/+5nVHbO3WEWERGyn+CuedPPaLzWXOdZMwGL1F/so8bvGC6\r\nNPb3QUa8B1dTV9en2+Y1wkFRyomykJcxI2wCbOQH190/ottDUaH0Q9ayNake\r\n1kpA0Wt1UbZ6STCWDe0WPQImJgXgGbAMsIGDORXSB3Eor0ztfXZq1FyDjhZB\r\n5Y4Y5WimNRAdl9I0yLdSwh1NIH7dy0NEt3EDPX1a0WS/mRo0I3Mf9YxLU0wV\r\nZz0F8kUtC74+7Sr1qbdK2ZG/wsOOU+GfOPOGoiNoobXMPfu6x5YiIg91brrH\r\nkBUI536DErcR21cvnAzolhZYN2cJGpUx0cFAkkt9ffCdwnvKqz5Mg9P/kTfk\r\nk80SYooU8Idewi9YCHWX7Pw+cAJNy436u0dQarnTaFtK0lISFgUbCwQaP9gS\r\njYQO2QksOh4YPMVvMZC+oFflTfPHtVPf8t6RyjrLHNwMh8eeeiiYTXIlS2LI\r\nfQNJLYimEfVsFHH6P9Bowu9AXefXxya6360=\r\n=fRaq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_1.0.0-beta.1_1673196398499_0.22597829809718806"},"_hasShrinkwrap":false},"1.0.0-beta.2":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"1.0.0-beta.2","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"npm run lint --prefix frontend && eslint src/**.ts --max-warnings=0","build":"npm run build --prefix frontend && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\"","watch":"nodemon","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/serve-static":"^3.0.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","@types/eventsource":"^1.1.10","axios":"^1.2.1","chalk":"^4.1.0","class-transformer":"^0.5.1","eventsource":"^2.0.2","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","source-map-support":"^0.5.21","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"types":"./dist/index.d.ts","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"ad86a7934519c055b564b4ffc64a67d423aeef25","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@1.0.0-beta.2","_nodeVersion":"18.12.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-IGY/3jQD1p2qo6Ng+Qp8Q/lbMtLgmRa8BTl0nHjVqGsDllebmCUbKspFdcHOxS9LiGd7KG8Zr38W5GkKwZ7wMQ==","shasum":"32020991e2a2bcd5e32734fb5e9bc63a5c185181","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-1.0.0-beta.2.tgz","fileCount":356,"unpackedSize":4102203,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDBRSytpMpQK7i97/A5TTTYfZXWfSia2ye/6+qFcF3TnAiAmSlUWxPhqFmzHF+lHmeJIBa1vRlTbLSZjCPDyJh1yFw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwo5BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqldQ/+PXVSuhB7x9KPyBnWmCqQQYt1BOshFhdpnbxx0DVf9eS4K0Br\r\nyw6jLMNiSzvMZD/R4++uY8zp45/+BdsmKX4wq1xV6x6x9duIT1kQo3/SJRGa\r\nZIpGhAUajOo9axcJ/KtUIdSxVb4lZFFwj5Qi3FOqOqTWmgXAIJy/lw1W8RIM\r\nrQcwhkGKNw3QQeTHCzvV7arb+AKKo6zdWhg2/n1bPeWE+5ylyqreSIWPriRw\r\nmdF80Q0v5k/ZYWN8HYqkVG11GGURs9zJhAtcPRzdIjQDlqf5dWmGeKSyVPZS\r\nojL8+Ji9qjY10sGKdoyUk17g5DC5Pzdnp20j8XLR63cV1lIE4k8EvB8eo5iT\r\nnwnAxlIwifyUITK3YF0QFJ8JqVklpJUbMGBnm2JvwQkOSiymm6FC4HRssBFI\r\n0hERupANGV2HlSdKvFp7Y5TcI1+qL+DYHYHo1N5IaBOYmXpxttc8I/yESYqc\r\n24Q+/5B8q6kKSaHZ+nyl4Vf9vtbfO6mlxXq4J/eLz+E8wpXtPZ64a+4XIY3M\r\nTSTlVvqaYGeSi6hjHks3s+YH3WXX6hKH1e+WyBJahiTTZPuBd/xapHx0Tyo7\r\nfeChu+D/yLKgYFcocatUjJCOIVFHiTMaEXRxxbXZ7jVV/O8uxeKTskdTw7uw\r\nrOVtJ+P4xUcajYzPP+3fTkIE9akMzFEG/jA=\r\n=Zy18\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_1.0.0-beta.2_1673694785358_0.08875999615946761"},"_hasShrinkwrap":false},"1.0.0-beta.4":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"1.0.0-beta.4","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"npm run lint --prefix frontend && eslint src/**.ts --max-warnings=0","build":"npm run build --prefix frontend && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\"","watch":"nodemon","start":"tsc && homebridge -I -D","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/serve-static":"^3.0.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","@types/eventsource":"^1.1.10","axios":"^1.2.1","chalk":"^4.1.0","class-transformer":"^0.5.1","eventsource":"^2.0.2","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","source-map-support":"^0.5.21","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"types":"./dist/index.d.ts","gitHead":"347420540e9d24bb6b623c7b701713ff65b424ab","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@1.0.0-beta.4","_nodeVersion":"19.4.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-n7BVKMQDgtGR3S+kQbuzwN0KJfhyBWc9uER9+Cs1KERH6T6T2H+i3UB5aQ76d008fuHTqNGXU+sESwWrv2svOA==","shasum":"469c950cb735f89b6dd123f30f12fd078670e3da","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-1.0.0-beta.4.tgz","fileCount":356,"unpackedSize":4102272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWdnem/tkfg9xGLJB13lLoZfAA3oYy+wQikb7m5KQHTAiBjoNrEswZH5aLg047M7/pMwodO+5EY3kG4mU2TgAWmPg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzQvYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrwsA/+NBssRtQBXcq1JIN0DRQ28mAON0djls8AdFdsU9dqCsDIyijV\r\nj4GtAgZ+iP/G51ER7XrpmAwUHVueTeBLoPhaGeoOhwxW5Avr92riOPUciIBv\r\nZDfM4a3VmbpWPV4c4/JargpMj4ZZKVqojTwTf30KecGQXxRh590C7ERyjprA\r\nSPMBn8moVYDSUJ+zqEWFaXz1p7d2ZXFBDD+a+5PFHVsITNZ8UnaZruHtoLNi\r\nYiiIjgs+iIpue4pEc5VTY/pfrSxxynfyUMIZ+2U4CdezXun+caWvNZxu6m+h\r\ntb65UcaKoAmOn4kaafnBb/L1Q/VstQcobQliaCOPgeVSzRasPWB2HiJ/plBM\r\nDxlRI0c/zjBMepgCHlziA9GPDABiftrjD9Jgns+CggFDK4a/8nBWnOxOuecw\r\nj62Xa5ccTAvt4+5AOkst9I80710C64wJHsVraGxD+jc7/VYFnO7TBtYxgVcz\r\ndsNUfDl7wejXjjoDlaisu0RjRQ/M6fwLkF0U67wtdjK5mY4zkrTMkK4jDEwK\r\nGaI8JSo8YBwexbtu5TJuQFxwn792+1bkc9aUf4+TnE6z8VxJuqyJFEQakqZz\r\nRHHoZ45S1Njv/K4uuValxXt8/TfpPb78BSDiBWFWbkQ9Eym6ESp6gX1V4Ufo\r\n0QjIRrT9WDYTwrMVZ4223AVISgtb8z+NTEA=\r\n=Q+Nu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_1.0.0-beta.4_1674382296372_0.8208149884508789"},"_hasShrinkwrap":false},"1.0.0-beta.5":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"1.0.0-beta.5","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=14.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"npm run lint --prefix frontend && eslint src/**.ts --max-warnings=0","build":"npm run build --prefix frontend && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\"","watch":"nodemon","start":"tsc && homebridge -I -D","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/serve-static":"^3.0.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","@types/eventsource":"^1.1.10","axios":"^1.2.1","chalk":"^4.1.0","class-transformer":"^0.5.1","eventsource":"^2.0.2","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","source-map-support":"^0.5.21","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"types":"./dist/index.d.ts","gitHead":"cceff88cc13dc6ce89cf4005c3af97abc2d318ff","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_id":"homebridge-ambient-hue@1.0.0-beta.5","_nodeVersion":"19.4.0","_npmVersion":"9.2.0","dist":{"integrity":"sha512-PwqFrCwGfgtaV3y2Xhl5+7HnUnfckdIGABLd/gJ+fDi3Y+ByvjiShG1yh8VY0esTc0wIiKd6T/0rxBbQrvqGrg==","shasum":"d5f00608acca3da133f85c65097a61e4b0ecadac","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-1.0.0-beta.5.tgz","fileCount":356,"unpackedSize":4102816,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzgHH8k0eSKNzemePK8uTaJDavYj9EQjpFxpumgRJaPQIgRiyPB1BGtudGQ+mLM9IQPtlus44FbE9mmR163mqIrRs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjzR4bACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqkkg//dyOq/fmG33CLyA6kngTKcXun1ILDBfb++iC03ESUKjxCcQF6\r\n5sf34Sa7gXf36PzU0Kg8ti3imEm3SYFQSpKATCrE3KMYlurF9XD3OUu68KJl\r\nmq3wTvifbI9LJms+dBNWC78EKzkkRh7NByt3J9KvRJN/eOEs4zt71vp3Nkfp\r\n7O+nr97e3UDHtGMFKyk1c9/FFCdjGxkRXZhOpukNiQkUGaAjzeV7XmBUSVuf\r\nMp2VG8alVkIW48BAluwOXsqARP+BDkbu04Z3Y+iqBZlm8FIqa0ofqA2REUyl\r\nXrwAckknqxjd6+NLw9YxLlUhGXZpCZ9vdkaKgsWIvvYGD4hq/FUnI0DQe0Mu\r\nZeKdztaz5i3SZpW8VCFNptOesrxx3TEqaGKbNcSoQWFkXJ6gcWatZkwDmF7q\r\nnzsCsaCMMbcqICRqxWi0MX68w0QHEOjfPaYkqqeUevXSqsjxZWmZnIkUP4dY\r\nfySsbxnCMl0p8pJBqpc1xZgVZKE+CDP52Pyjdl8TL7iDZnh6Jltu4WiVmVNT\r\nAWJb4+pNF+tP/h8FsEw6YpE3B87EWv1o0YdPQF7rcHlDDB+ntFteYF6UhrUT\r\nTi8ngue9GKCEO/vZAmrX8boNMEeiXqeysIPGScs6fUptKlXimAxGltF8JDzD\r\nDPISxNKDD0Sk2Ji+NlcnrijzsBERmrjQJ8Q=\r\n=jVch\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_1.0.0-beta.5_1674386971136_0.894341475341405"},"_hasShrinkwrap":false},"1.0.0-beta.6":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"1.0.0-beta.6","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=16.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"npm run lint --prefix frontend && eslint src/**.ts --max-warnings=0","build":"npm run build --prefix frontend && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\"","watch":"nodemon","start":"tsc && homebridge -I -D","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/serve-static":"^3.0.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","@types/eventsource":"^1.1.10","axios":"^1.2.1","chalk":"^4.1.0","class-transformer":"^0.5.1","eventsource":"^2.0.2","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","source-map-support":"^0.5.21","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"_id":"homebridge-ambient-hue@1.0.0-beta.6","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"4ffb92581361e64c10e79fcee6bd2c1b5a493284","types":"./dist/index.d.ts","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-vXxnJvwSEhfvo5a1dXg0ofxhktLDukPrnq4RytGBGO+rovudYt856PN91O8JdbFzKLRQyG+CCGPjAjiYAuJD1w==","shasum":"2074a8b24d728de4d5e5373faaeda3e86541b09e","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-1.0.0-beta.6.tgz","fileCount":363,"unpackedSize":4117091,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC24ehRArEgetOWb8eVSsG8pK3vyi5YI0t2wna5uVm3jQIgCUSj0pI5ybLNjJgU+1nt0MesuB9FIk4deo9H4jOeVwE="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_1.0.0-beta.6_1696427796759_0.038642647905502425"},"_hasShrinkwrap":false},"1.0.0-beta.7":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"1.0.0-beta.7","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=16.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"npm run lint --prefix frontend && eslint src/**.ts --max-warnings=0","build":"npm run build --prefix frontend && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\"","watch":"nodemon","start":"tsc && homebridge -I -D","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/serve-static":"^3.0.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","@types/eventsource":"^1.1.10","axios":"^1.2.1","chalk":"^4.1.0","class-transformer":"^0.5.1","class-validator":"^0.13.2","eventsource":"^2.0.2","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","source-map-support":"^0.5.21","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"_id":"homebridge-ambient-hue@1.0.0-beta.7","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"bdaef8aa66b6128d197ac79fc811079af97657f4","types":"./dist/index.d.ts","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-7EWJEtqIk3i3IfVh344rm4DkxiuJz+D1XFQnBPJfKWhaTowqc0D0ns1To8LDEKwCufSpG8FiWie+qPT+SR7QJA==","shasum":"c86d57668bec936b326447068e76a96e1b54c4b0","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-1.0.0-beta.7.tgz","fileCount":363,"unpackedSize":4123698,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfcl4juLrQGlWiuNS2BahQy5apy1scFR7YNl41Q3xqFQIgJaDXEW3+pa56L7SKg9TRfCwV0f3g6nqik8HygH4C98g="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_1.0.0-beta.7_1696508738079_0.6956391067337653"},"_hasShrinkwrap":false},"1.0.0-beta.8":{"displayName":"Homebridge Ambient Hue","name":"homebridge-ambient-hue","version":"1.0.0-beta.8","description":"Dynamically adjusts your Philips Hue lights throughout the day.","license":"Apache-2.0","repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"engines":{"node":">=16.0.0","homebridge":">=1.5.0"},"main":"dist/index.js","scripts":{"lint":"npm run lint --prefix frontend && eslint src/**.ts --max-warnings=0","build":"npm run build --prefix frontend && rimraf ./dist && tsc -p tsconfig.build.json","prepublishOnly":"npm run lint && npm run build","format":"prettier --write \"src/**/*.ts\"","watch":"nodemon","start":"tsc && homebridge -I -D","typeorm":"typeorm-ts-node-esm","typeorm:migration:generate":"npm run typeorm -- migration:generate -d ./src/typeOrm.config.ts ./src/migration/$npm_config_name","typeorm:migration:create":"npm run typeorm -- migration:create ./src/migration/$npm_config_name","typeorm:migration:run":"npm run typeorm -- migration:run -d ./src/typeOrm.config.ts"},"keywords":["homebridge-plugin"],"dependencies":{"@fastify/static":"^6.6.0","@nestjs/axios":"^1.0.1","@nestjs/common":"^9.2.1","@nestjs/config":"^2.2.0","@nestjs/core":"^9.2.1","@nestjs/mapped-types":"^1.2.0","@nestjs/platform-fastify":"^9.2.1","@nestjs/platform-socket.io":"^9.2.1","@nestjs/schedule":"^2.1.0","@nestjs/serve-static":"^3.0.0","@nestjs/swagger":"^6.1.4","@nestjs/terminus":"^9.1.4","@nestjs/typeorm":"^9.0.1","@nestjs/websockets":"^9.2.1","@types/eventsource":"^1.1.10","axios":"^1.2.1","chalk":"^4.1.0","class-transformer":"^0.5.1","class-validator":"^0.13.2","eventsource":"^2.0.2","fastify":"^3.29.4","fastify-swagger":"^4.4.2","fs-extra":"^9.1.0","reflect-metadata":"^0.1.13","rxjs":"^7.5.4","socket.io-client":"^4.5.4","sqlite3":"^5.1.4","typeorm":"^0.3.11","uuid":"^8.3.2"},"devDependencies":{"@nestjs/cli":"^9.1.5","@nestjs/schematics":"^9.0.3","@nestjs/testing":"^9.2.1","@types/cron":"^1.7.2","@types/express":"^4.17.13","@types/fs-extra":"^9.0.9","@types/jest":"^26.0.20","@types/node":"^18.11.17","@types/supertest":"^2.0.10","@types/uuid":"^8.3.0","@typescript-eslint/eslint-plugin":"^5.47.0","@typescript-eslint/parser":"^5.47.0","copyfiles":"^2.4.1","eslint":"^7.21.0","eslint-config-prettier":"^8.1.0","eslint-plugin-prettier":"^3.3.1","homebridge":"^1.6.0","jest":"^29.3.1","nodemon":"^2.0.20","prettier":"^2.2.1","rimraf":"^3.0.2","source-map-support":"^0.5.21","supertest":"^6.3.3","ts-jest":"^29.0.3","ts-loader":"^8.0.17","ts-node":"^10.9.1","tsconfig-paths":"^3.9.0","typescript":"^4.9.4"},"jest":{"moduleFileExtensions":["js","json","ts"],"rootDir":"src","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"collectCoverageFrom":["**/*.(t|j)s"],"coverageDirectory":"../coverage","testEnvironment":"node"},"_id":"homebridge-ambient-hue@1.0.0-beta.8","readme":"![logo](./docs/images/wordmark.png)\n\n<p align=\"center\">\n    <img src=\"https://github.com/homebridge/branding/raw/master/logos/homebridge-wordmark-logo-vertical.png\" width=\"150\">\n</p>\n\n<p align=\"center\">\n    <em>Makes your smart lights smart</em>\n</p>\n\nambientHUE dynamically adjusts your Philips Hue smart lighting\n(and any third party zigbee lights on your Hue bridge) based on your preferences\nthroughout the day.\nSimply setup ambientHue as a homebridge plugin and enjoy the new smartness of your\nlights.\n\nambientHue comes with a beautiful mobile first web application and an open API\nwith SwaggerUI documentation.\nambientHUE does not modify anything in your Hue bridge.\n\n# Quickstart\n\nTo install Homebridge AmbientHue:\n\n- Follow the instructions on the [Homebridge Wiki](https://github.com/homebridge/homebridge/wiki) to install Node.js and Homebridge.\n\n- Install the Homebridge Hue plugin through Homebridge Config UI X or manually by:\n\n```\n$ sudo npm -g i homebridge-ambient-hue\n```\n\n- Configure the plugin in Homebridge's `config.json`.\n\n| Key              | Default     | Description                                                                                                                                           |\n| -----------------| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `platform`       |             | The name of the platform homebridge-ambient-hue provides to homebridge. Mandatory, must be set to `\"AmbientHue\"`.                                     |\n| `bridgeIp`       |             | The IP address of your Hue bridge. Mandantory, if you do not know the ip, visit https://discovery.meethue.com/ in a Browser on your network.          |\n| `user`           |             | The username for your Hue bridge. When connecting to a new bridge, homebridge-ambient-hue will create the username, and prompt to edit `config.json`. |\n| `host`           | `\"0.0.0.0\"` | Hostname for the web interface.                                                                                                                       |\n| `port`           | `3000`      | Port for the web interface.                                                                                                                           |\n| `prefix`         | `\"\"`        | A prefix that is attached to the name of all Devices.                                                                                                 |\n| `suffix`         | `\" Auto\"`   | A suffix that is attached to the name of all Devices.                                                                                                 |\n| `debugLog`       | `False`     | Output more detailed logs.                                                                                                                            |\n| `enableSchedule` | `True`      | Enable scheduled updates.                                                                                                                             |\n\n## First Steps\n\nSelect a light from the lights tab and enable ambientHUE:\n\n- On/Off controlled: Switch on the light if the calculated brightess exceeds the On/Off threshold - and switch off the light if the light level falls below the threshold\n- Brightness controlled: Dynamically adjust the brightness level according to the set curve. Define a maximum brightness in order to tune in with other lights controlled by ambientHue.\n- Color Temperature controlled: Dynamically adjust the color temperature according to the set curve.\n\nYou can add the web application to your homescreen on iOS and Android devices and\ninstall it as a Google Chrome App on your desktop.\n\n# Features\n\nambientHue allows you to dynamically adjust the brightness and color temperature\nof your lights and groups.\n\n## Favorites\n\nFor quick access, you can add lights and groups to your favorites on the start page.\nPress the edit button in the top right corner and select or deselect the items.\n\n## Custom Curves\n\nYou can create custom curves and assign different lights and groups to each of them.\nYou can edit the curves by moving points via drag and drop. Create or\ndelete points by longpress, or right click on non touch devices\n\n<p align=\"middle\">\n    <img src='./docs/images/ios-curve-edit-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-actions-dark.png' width=200/>\n    <img src='./docs/images/ios-curve-picker-dark.png' width=200/>\n</p>\n\n## Smart Off\n\nSince ambientHUE runs periodically in the background, it would by default override any manual\nchanges to your controlled lights. To prevent this behaviour the \"Smart Off\" feature exists.\n\nBefore every run, ambientHUE will then check whether a light's state has changed since the previous\nupdate. If that is the case, the light is considered to be user controlled and will not be overriden until the\nlight is put back to the previous state or until the next day.\n\n## API Documentation\n\nambientHUE comes with a beautiful API documentation provided by fastapi. You can access the SwaggerUI at http://localhost:3000/api/swagger.\n\n# Development\n\n## Setup Development Environment\n\nTo develop Homebridge plugins you must have Node.js 12 or later installed, and a modern code editor such as [VS Code](https://code.visualstudio.com/). This plugin template uses [TypeScript](https://www.typescriptlang.org/) to make development easier and comes with pre-configured settings for [VS Code](https://code.visualstudio.com/) and ESLint. If you are using VS Code install these extensions:\n\n- [ESLint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint)\n\n## Install Development Dependencies\n\nUsing a terminal, navigate to the project folder and run this command to install the development dependencies:\n\n```\nnpm install\nnpm install --prefix ui\n```\n\n## Build Plugin\n\nTypeScript needs to be compiled into JavaScript before it can run. The following command will compile the contents of your [`src`](./src) directory and put the resulting code into the `dist` folder.\n\n```\nnpm run build\n```\n\n## Link To Homebridge\n\nRun this command so your global install of Homebridge can discover the plugin in your development environment:\n\n```\nnpm link\n```\n\nYou can now start Homebridge, use the `-D` flag so you can see debug log messages in your plugin:\n\n```\nhomebridge -D\n```\n\n## Watch For Changes and Build Automatically\n\nIf you want to have your code compile automatically as you make changes, and restart Homebridge automatically between changes you can run:\n\n```\nnpm run watch\n```\n\nThis will launch an instance of Homebridge in debug mode which will restart every time you make a change to the source code. It will load the config stored in the default location under `~/.homebridge`. You may need to stop other running instances of Homebridge while using this command to prevent conflicts. You can adjust the Homebridge startup command in the [`nodemon.json`](./nodemon.json) file.\n\n## Generate database migrations\n\n```\nnpm run typeorm:migration:generate --name=<name>\n```\n\n## Versioning\n\nGiven a version number `MAJOR`.`MINOR`.`PATCH`, such as `1.4.3`, increment the:\n\n1. **MAJOR** version when you make breaking changes to your plugin,\n2. **MINOR** version when you add functionality in a backwards compatible manner, and\n3. **PATCH** version when you make backwards compatible bug fixes.\n\nYou can use the `npm version` command to help you with this:\n\n```bash\n# major update / breaking changes\nnpm version major\n\n# minor update / new features\nnpm version update\n\n# patch / bugfixes\nnpm version patch\n```\n\n## Publish Package\n\nWhen you are ready to publish your plugin to [npm](https://www.npmjs.com/), make sure you have removed the `private` attribute from the [`package.json`](./package.json) file then run:\n\n```\nnpm publish\n```\n\nIf you are publishing a scoped plugin, i.e. `@username/homebridge-xxx` you will need to add `--access=public` to command the first time you publish.\n\n#### Publishing Beta Versions\n\nYou can publish _beta_ versions of your plugin for other users to test before you release it to everyone.\n\n```bash\n# create a new pre-release version (eg. 2.1.0-beta.1)\nnpm version prepatch --preid beta\n\n# publsh to @beta\nnpm publish --tag=beta\n```\n\nUsers can then install the _beta_ version by appending `@beta` to the install command, for example:\n\n```\nsudo npm install -g homebridge-example-plugin@beta\n```\n","readmeFilename":"README.md","gitHead":"de0b94daed82495f2435580360c316f094cb8c08","types":"./dist/index.d.ts","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","_nodeVersion":"20.8.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-uEN7n+jmKmpvHVK6exLFEi+WrCdZcWn5vWexOyxPDbxVxLARpnirNlnBty9pN2O6uWV+5Q/G9Lu5+azwhmVPkA==","shasum":"4d99d3bf9761292c948a4bbc5610af122913ca62","tarball":"https://registry.npmjs.org/homebridge-ambient-hue/-/homebridge-ambient-hue-1.0.0-beta.8.tgz","fileCount":363,"unpackedSize":4125026,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDbs0Fc9duD9plyxoXyef7IldoJV3xANU/3tqY4F2AQ/AiBVfNBF3TrCfJm0pG9J2xd6uxcpGty6B/XwKp7uq7pPiw=="}]},"_npmUser":{"name":"lu7as","email":"lukas@patzke.me"},"directories":{},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/homebridge-ambient-hue_1.0.0-beta.8_1696510490045_0.6119891176831651"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-14T16:46:43.314Z","0.0.1":"2021-04-14T16:46:43.572Z","modified":"2023-10-05T12:54:50.574Z","0.0.2-beta.0":"2021-04-16T11:07:03.941Z","0.0.2-beta.1":"2021-04-16T11:40:25.835Z","0.0.2-beta.2":"2021-04-16T12:12:45.315Z","0.0.2-beta.3":"2021-04-16T12:24:05.433Z","0.0.2":"2021-04-16T12:34:11.875Z","1.0.0":"2021-04-17T11:15:23.696Z","0.0.3-beta.0":"2021-04-17T11:15:58.486Z","0.0.3-beta.2":"2021-05-01T11:22:26.688Z","0.0.3":"2021-05-11T16:54:47.611Z","0.0.4-beta.0":"2021-06-06T09:38:11.291Z","0.0.4-beta.1":"2021-06-10T18:14:52.207Z","0.0.4-beta.2":"2021-06-12T17:18:30.871Z","0.0.4-beta.3":"2021-06-12T18:02:43.207Z","0.0.4-beta.4":"2021-06-12T18:11:09.221Z","0.0.4-beta.5":"2021-06-14T09:45:08.037Z","0.0.4-beta.6":"2021-06-20T11:29:54.205Z","0.0.4-beta.7":"2021-06-20T19:25:54.472Z","0.0.4-beta.8":"2021-06-20T19:31:05.849Z","0.0.4-beta.9":"2021-07-02T16:42:47.441Z","0.0.4":"2021-07-04T12:29:37.836Z","0.0.5":"2022-02-12T12:00:58.620Z","0.0.6-beta.0":"2022-02-15T17:30:05.398Z","0.0.6":"2022-02-15T17:39:19.820Z","0.0.7-beta.0":"2022-12-24T14:27:59.133Z","0.0.7-beta.1":"2022-12-25T13:21:36.046Z","0.0.7-beta.2":"2022-12-25T13:45:09.631Z","0.0.7-beta.3":"2022-12-25T20:45:30.906Z","0.0.7-beta.4":"2022-12-26T12:10:42.723Z","0.0.7-beta.5":"2022-12-26T12:37:20.254Z","0.0.7-beta.6":"2022-12-26T16:29:29.488Z","1.0.0-beta.0":"2023-01-08T16:38:01.980Z","1.0.0-beta.1":"2023-01-08T16:46:38.733Z","1.0.0-beta.2":"2023-01-14T11:13:05.575Z","1.0.0-beta.4":"2023-01-22T10:11:36.704Z","1.0.0-beta.5":"2023-01-22T11:29:31.363Z","1.0.0-beta.6":"2023-10-04T13:56:37.038Z","1.0.0-beta.7":"2023-10-05T12:25:38.430Z","1.0.0-beta.8":"2023-10-05T12:54:50.391Z"},"maintainers":[{"name":"lu7as","email":"lukas@patzke.me"}],"description":"Dynamically adjusts your Philips Hue lights throughout the day.","homepage":"https://github.com/LukasPatzke/homebridge-ambient-hue#readme","keywords":["homebridge-plugin"],"repository":{"type":"git","url":"git://github.com/LukasPatzke/homebridge-ambient-hue.git"},"bugs":{"url":"https://github.com/LukasPatzke/homebridge-ambient-hue/issues"},"license":"Apache-2.0","readme":"","readmeFilename":""}