{"action":"created","issue":{"url":"https://api.github.com/repos/iobroker-community-adapters/ioBroker.hue/issues/46","repository_url":"https://api.github.com/repos/iobroker-community-adapters/ioBroker.hue","labels_url":"https://api.github.com/repos/iobroker-community-adapters/ioBroker.hue/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/iobroker-community-adapters/ioBroker.hue/issues/46/comments","events_url":"https://api.github.com/repos/iobroker-community-adapters/ioBroker.hue/issues/46/events","html_url":"https://github.com/iobroker-community-adapters/ioBroker.hue/pull/46","id":367774407,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxMTA0ODQ5","number":46,"title":"Refactoring to use 'bottleneck' instead of hand-written command queue to throttle hue api command executions","user":{"login":"jens-maus","id":5887769,"node_id":"MDQ6VXNlcjU4ODc3Njk=","avatar_url":"https://avatars2.githubusercontent.com/u/5887769?v=4","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2018-10-08T12:49:23Z","updated_at":"2019-06-15T22:00:06Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/iobroker-community-adapters/ioBroker.hue/pulls/46","html_url":"https://github.com/iobroker-community-adapters/ioBroker.hue/pull/46","diff_url":"https://github.com/iobroker-community-adapters/ioBroker.hue/pull/46.diff","patch_url":"https://github.com/iobroker-community-adapters/ioBroker.hue/pull/46.patch"},"body":"This PR consists of a huge refactoring of the hue api command execution queue that is currently hand written in the iobroker.hue adapter to be able to better comply with the general Philips HUE Api query limits (10 cmds/1 second for light resource requests, 1 cmd/1 sec for group resource requests). To do so, it replaces this hand written command queue by using the `bottleneck` nodejs package (https://github.com/SGrondin/bottleneck) to actually schedule all command executions in two separate rate limiting bottleneck queues (one for `light` and one for `group` requests). This includes scheduling `set`-Requests with a higher priority than regular polling `get`-Requests.\r\n\r\nFurthermore, this PR fixes some additional minor problems (e.g. not all parameters were correctly queried from all Philips sensor types correctly).\r\n\r\nThis PR refs and fixes #40 and #45."},"comment":{"url":"https://api.github.com/repos/iobroker-community-adapters/ioBroker.hue/issues/comments/502402573","html_url":"https://github.com/iobroker-community-adapters/ioBroker.hue/pull/46#issuecomment-502402573","issue_url":"https://api.github.com/repos/iobroker-community-adapters/ioBroker.hue/issues/46","id":502402573,"node_id":"MDEyOklzc3VlQ29tbWVudDUwMjQwMjU3Mw==","user":{"login":"Apollon77","id":11976694,"node_id":"MDQ6VXNlcjExOTc2Njk0","avatar_url":"https://avatars1.githubusercontent.com/u/11976694?v=4","gravatar_id":"","url":"https://api.github.com/users/Apollon77","html_url":"https://github.com/Apollon77","followers_url":"https://api.github.com/users/Apollon77/followers","following_url":"https://api.github.com/users/Apollon77/following{/other_user}","gists_url":"https://api.github.com/users/Apollon77/gists{/gist_id}","starred_url":"https://api.github.com/users/Apollon77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Apollon77/subscriptions","organizations_url":"https://api.github.com/users/Apollon77/orgs","repos_url":"https://api.github.com/users/Apollon77/repos","events_url":"https://api.github.com/users/Apollon77/events{/privacy}","received_events_url":"https://api.github.com/users/Apollon77/received_events","type":"User","site_admin":false},"created_at":"2019-06-15T22:00:06Z","updated_at":"2019-06-15T22:00:06Z","author_association":"MEMBER","body":"No in fact not dead ... I think we need to make a decision to accept „disco color“ effects in certain cases or find a better solution. When I remember correctly this was the last issue with this version. "}}
{"actor":{"display_login":"Apollon77"}}