{"action":"created","comment":{"url":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/comments/105299335","pull_request_review_id":26173514,"id":105299335,"diff_hunk":"@@ -58,11 +61,27 @@ export default class Dht extends EventEmitter2 implements IDhtDevice {\n       if (talkative.isMyMessage(DEVICE_COMPONENT_NAME, this.id, payload)) {\n         switch (payload.meta.componentAction) {\n           case SUBSCRIBE_TOPICS.GET_TEMPERATURE:\n-            // TODO: publish to respective topic\n+            const temperature = this.getTemperatureValue()\n+            talkative.sendToAPI(`/${DEVICE_COMPONENT_NAME}/${this.id}/${SUBSCRIBE_TOPICS.GET_TEMPERATURE}:response`, {data: temperature})\n+              .then(() => LedClient.responseAction().catch((err) => Logger.error(err)))\n+              .then(() => Logger.debug(`get temperature on talkative event in Dht#getTemperature`, {device_id: this.id}))\n+              .catch((err) => Logger.error(`Error while get temperature on a dht in Dht#getTemperature`, {error: err.message, device_id: this.id}))\n             break\n \n           case SUBSCRIBE_TOPICS.GET_HUMIDITY:\n-            // TODO: publish to respective topic\n+            const humidity = this.getHumidityValue()\n+            talkative.sendToAPI(`/${DEVICE_COMPONENT_NAME}/${this.id}/${SUBSCRIBE_TOPICS.GET_HUMIDITY}:response`, {data: humidity})\n+              .then(() => LedClient.responseAction().catch((err) => Logger.error(err)))","path":"src/app/engines/devices-engine/devices/hybrid/dht/dht.class.ts","position":29,"original_position":29,"commit_id":"7d6b7ee51a0c18fd7569d41b32abfd077970a9bf","original_commit_id":"7d6b7ee51a0c18fd7569d41b32abfd077970a9bf","user":{"login":"sebastianvera","id":1817522,"avatar_url":"https://avatars2.githubusercontent.com/u/1817522?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastianvera","html_url":"https://github.com/sebastianvera","followers_url":"https://api.github.com/users/sebastianvera/followers","following_url":"https://api.github.com/users/sebastianvera/following{/other_user}","gists_url":"https://api.github.com/users/sebastianvera/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastianvera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastianvera/subscriptions","organizations_url":"https://api.github.com/users/sebastianvera/orgs","repos_url":"https://api.github.com/users/sebastianvera/repos","events_url":"https://api.github.com/users/sebastianvera/events{/privacy}","received_events_url":"https://api.github.com/users/sebastianvera/received_events","type":"User","site_admin":false},"body":"Remove","created_at":"2017-03-09T23:43:02Z","updated_at":"2017-03-09T23:43:20Z","html_url":"https://github.com/wisegrowth/wisebot-core/pull/23#discussion_r105299335","pull_request_url":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/comments/105299335"},"html":{"href":"https://github.com/wisegrowth/wisebot-core/pull/23#discussion_r105299335"},"pull_request":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/23","id":110030153,"html_url":"https://github.com/wisegrowth/wisebot-core/pull/23","diff_url":"https://github.com/wisegrowth/wisebot-core/pull/23.diff","patch_url":"https://github.com/wisegrowth/wisebot-core/pull/23.patch","issue_url":"https://api.github.com/repos/wisegrowth/wisebot-core/issues/23","number":23,"state":"open","locked":false,"title":"Ca refactor/mqtt topics","user":{"login":"cagodoy","id":8485620,"avatar_url":"https://avatars2.githubusercontent.com/u/8485620?v=3","gravatar_id":"","url":"https://api.github.com/users/cagodoy","html_url":"https://github.com/cagodoy","followers_url":"https://api.github.com/users/cagodoy/followers","following_url":"https://api.github.com/users/cagodoy/following{/other_user}","gists_url":"https://api.github.com/users/cagodoy/gists{/gist_id}","starred_url":"https://api.github.com/users/cagodoy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cagodoy/subscriptions","organizations_url":"https://api.github.com/users/cagodoy/orgs","repos_url":"https://api.github.com/users/cagodoy/repos","events_url":"https://api.github.com/users/cagodoy/events{/privacy}","received_events_url":"https://api.github.com/users/cagodoy/received_events","type":"User","site_admin":false},"body":"refactor in all mqtt topics","created_at":"2017-03-09T23:34:56Z","updated_at":"2017-03-09T23:43:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68e2d92988b189921b813cb7c937f2938297611c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/23/commits","review_comments_url":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/23/comments","review_comment_url":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wisegrowth/wisebot-core/issues/23/comments","statuses_url":"https://api.github.com/repos/wisegrowth/wisebot-core/statuses/7d6b7ee51a0c18fd7569d41b32abfd077970a9bf","head":{"label":"wisegrowth:ca-refactor/mqtt-topics","ref":"ca-refactor/mqtt-topics","sha":"7d6b7ee51a0c18fd7569d41b32abfd077970a9bf","user":{"login":"wisegrowth","id":25491546,"avatar_url":"https://avatars0.githubusercontent.com/u/25491546?v=3","gravatar_id":"","url":"https://api.github.com/users/wisegrowth","html_url":"https://github.com/wisegrowth","followers_url":"https://api.github.com/users/wisegrowth/followers","following_url":"https://api.github.com/users/wisegrowth/following{/other_user}","gists_url":"https://api.github.com/users/wisegrowth/gists{/gist_id}","starred_url":"https://api.github.com/users/wisegrowth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wisegrowth/subscriptions","organizations_url":"https://api.github.com/users/wisegrowth/orgs","repos_url":"https://api.github.com/users/wisegrowth/repos","events_url":"https://api.github.com/users/wisegrowth/events{/privacy}","received_events_url":"https://api.github.com/users/wisegrowth/received_events","type":"Organization","site_admin":false},"repo":{"id":60830616,"name":"wisebot-core","full_name":"wisegrowth/wisebot-core","owner":{"login":"wisegrowth","id":25491546,"avatar_url":"https://avatars0.githubusercontent.com/u/25491546?v=3","gravatar_id":"","url":"https://api.github.com/users/wisegrowth","html_url":"https://github.com/wisegrowth","followers_url":"https://api.github.com/users/wisegrowth/followers","following_url":"https://api.github.com/users/wisegrowth/following{/other_user}","gists_url":"https://api.github.com/users/wisegrowth/gists{/gist_id}","starred_url":"https://api.github.com/users/wisegrowth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wisegrowth/subscriptions","organizations_url":"https://api.github.com/users/wisegrowth/orgs","repos_url":"https://api.github.com/users/wisegrowth/repos","events_url":"https://api.github.com/users/wisegrowth/events{/privacy}","received_events_url":"https://api.github.com/users/wisegrowth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wisegrowth/wisebot-core","description":"Is the core of an Wisebot iot device, which by means of sensors and actuators, allow to execute customized rules in function of schedulers or events.","fork":false,"url":"https://api.github.com/repos/wisegrowth/wisebot-core","forks_url":"https://api.github.com/repos/wisegrowth/wisebot-core/forks","keys_url":"https://api.github.com/repos/wisegrowth/wisebot-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wisegrowth/wisebot-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wisegrowth/wisebot-core/teams","hooks_url":"https://api.github.com/repos/wisegrowth/wisebot-core/hooks","issue_events_url":"https://api.github.com/repos/wisegrowth/wisebot-core/issues/events{/number}","events_url":"https://api.github.com/repos/wisegrowth/wisebot-core/events","assignees_url":"https://api.github.com/repos/wisegrowth/wisebot-core/assignees{/user}","branches_url":"https://api.github.com/repos/wisegrowth/wisebot-core/branches{/branch}","tags_url":"https://api.github.com/repos/wisegrowth/wisebot-core/tags","blobs_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wisegrowth/wisebot-core/statuses/{sha}","languages_url":"https://api.github.com/repos/wisegrowth/wisebot-core/languages","stargazers_url":"https://api.github.com/repos/wisegrowth/wisebot-core/stargazers","contributors_url":"https://api.github.com/repos/wisegrowth/wisebot-core/contributors","subscribers_url":"https://api.github.com/repos/wisegrowth/wisebot-core/subscribers","subscription_url":"https://api.github.com/repos/wisegrowth/wisebot-core/subscription","commits_url":"https://api.github.com/repos/wisegrowth/wisebot-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/wisegrowth/wisebot-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/wisegrowth/wisebot-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/wisegrowth/wisebot-core/contents/{+path}","compare_url":"https://api.github.com/repos/wisegrowth/wisebot-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wisegrowth/wisebot-core/merges","archive_url":"https://api.github.com/repos/wisegrowth/wisebot-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wisegrowth/wisebot-core/downloads","issues_url":"https://api.github.com/repos/wisegrowth/wisebot-core/issues{/number}","pulls_url":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls{/number}","milestones_url":"https://api.github.com/repos/wisegrowth/wisebot-core/milestones{/number}","notifications_url":"https://api.github.com/repos/wisegrowth/wisebot-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wisegrowth/wisebot-core/labels{/name}","releases_url":"https://api.github.com/repos/wisegrowth/wisebot-core/releases{/id}","deployments_url":"https://api.github.com/repos/wisegrowth/wisebot-core/deployments","created_at":"2016-06-10T07:20:52Z","updated_at":"2017-03-07T21:53:44Z","pushed_at":"2017-03-09T23:35:25Z","git_url":"git://github.com/wisegrowth/wisebot-core.git","ssh_url":"git@github.com:wisegrowth/wisebot-core.git","clone_url":"https://github.com/wisegrowth/wisebot-core.git","svn_url":"https://github.com/wisegrowth/wisebot-core","homepage":"","size":1019,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":2,"default_branch":"development"}},"base":{"label":"wisegrowth:development","ref":"development","sha":"77592baaece80e7bff8d8db6c88ccbff04e3764f","user":{"login":"wisegrowth","id":25491546,"avatar_url":"https://avatars0.githubusercontent.com/u/25491546?v=3","gravatar_id":"","url":"https://api.github.com/users/wisegrowth","html_url":"https://github.com/wisegrowth","followers_url":"https://api.github.com/users/wisegrowth/followers","following_url":"https://api.github.com/users/wisegrowth/following{/other_user}","gists_url":"https://api.github.com/users/wisegrowth/gists{/gist_id}","starred_url":"https://api.github.com/users/wisegrowth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wisegrowth/subscriptions","organizations_url":"https://api.github.com/users/wisegrowth/orgs","repos_url":"https://api.github.com/users/wisegrowth/repos","events_url":"https://api.github.com/users/wisegrowth/events{/privacy}","received_events_url":"https://api.github.com/users/wisegrowth/received_events","type":"Organization","site_admin":false},"repo":{"id":60830616,"name":"wisebot-core","full_name":"wisegrowth/wisebot-core","owner":{"login":"wisegrowth","id":25491546,"avatar_url":"https://avatars0.githubusercontent.com/u/25491546?v=3","gravatar_id":"","url":"https://api.github.com/users/wisegrowth","html_url":"https://github.com/wisegrowth","followers_url":"https://api.github.com/users/wisegrowth/followers","following_url":"https://api.github.com/users/wisegrowth/following{/other_user}","gists_url":"https://api.github.com/users/wisegrowth/gists{/gist_id}","starred_url":"https://api.github.com/users/wisegrowth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wisegrowth/subscriptions","organizations_url":"https://api.github.com/users/wisegrowth/orgs","repos_url":"https://api.github.com/users/wisegrowth/repos","events_url":"https://api.github.com/users/wisegrowth/events{/privacy}","received_events_url":"https://api.github.com/users/wisegrowth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wisegrowth/wisebot-core","description":"Is the core of an Wisebot iot device, which by means of sensors and actuators, allow to execute customized rules in function of schedulers or events.","fork":false,"url":"https://api.github.com/repos/wisegrowth/wisebot-core","forks_url":"https://api.github.com/repos/wisegrowth/wisebot-core/forks","keys_url":"https://api.github.com/repos/wisegrowth/wisebot-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wisegrowth/wisebot-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wisegrowth/wisebot-core/teams","hooks_url":"https://api.github.com/repos/wisegrowth/wisebot-core/hooks","issue_events_url":"https://api.github.com/repos/wisegrowth/wisebot-core/issues/events{/number}","events_url":"https://api.github.com/repos/wisegrowth/wisebot-core/events","assignees_url":"https://api.github.com/repos/wisegrowth/wisebot-core/assignees{/user}","branches_url":"https://api.github.com/repos/wisegrowth/wisebot-core/branches{/branch}","tags_url":"https://api.github.com/repos/wisegrowth/wisebot-core/tags","blobs_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wisegrowth/wisebot-core/statuses/{sha}","languages_url":"https://api.github.com/repos/wisegrowth/wisebot-core/languages","stargazers_url":"https://api.github.com/repos/wisegrowth/wisebot-core/stargazers","contributors_url":"https://api.github.com/repos/wisegrowth/wisebot-core/contributors","subscribers_url":"https://api.github.com/repos/wisegrowth/wisebot-core/subscribers","subscription_url":"https://api.github.com/repos/wisegrowth/wisebot-core/subscription","commits_url":"https://api.github.com/repos/wisegrowth/wisebot-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/wisegrowth/wisebot-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/wisegrowth/wisebot-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/wisegrowth/wisebot-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/wisegrowth/wisebot-core/contents/{+path}","compare_url":"https://api.github.com/repos/wisegrowth/wisebot-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wisegrowth/wisebot-core/merges","archive_url":"https://api.github.com/repos/wisegrowth/wisebot-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wisegrowth/wisebot-core/downloads","issues_url":"https://api.github.com/repos/wisegrowth/wisebot-core/issues{/number}","pulls_url":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls{/number}","milestones_url":"https://api.github.com/repos/wisegrowth/wisebot-core/milestones{/number}","notifications_url":"https://api.github.com/repos/wisegrowth/wisebot-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wisegrowth/wisebot-core/labels{/name}","releases_url":"https://api.github.com/repos/wisegrowth/wisebot-core/releases{/id}","deployments_url":"https://api.github.com/repos/wisegrowth/wisebot-core/deployments","created_at":"2016-06-10T07:20:52Z","updated_at":"2017-03-07T21:53:44Z","pushed_at":"2017-03-09T23:35:25Z","git_url":"git://github.com/wisegrowth/wisebot-core.git","ssh_url":"git@github.com:wisegrowth/wisebot-core.git","clone_url":"https://github.com/wisegrowth/wisebot-core.git","svn_url":"https://github.com/wisegrowth/wisebot-core","homepage":"","size":1019,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":2,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/23"},"html":{"href":"https://github.com/wisegrowth/wisebot-core/pull/23"},"issue":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/issues/23"},"comments":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/wisegrowth/wisebot-core/statuses/7d6b7ee51a0c18fd7569d41b32abfd077970a9bf"}}}}
{"actor":{"display_login":"sebastianvera"}}