{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/196265255","pull_request_review_id":129784588,"id":196265255,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NjI2NTI1NQ==","diff_hunk":"@@ -78,6 +92,17 @@ int pir_init(pir_t *dev, gpio_t gpio);\n  */\n pir_event_t pir_get_status(const pir_t *dev);\n \n+/**\n+ * @brief   Read OCCUPANCY value\n+ *\n+ * @param[in] dev       device descriptor of the PIR motion sensor to read from\n+ * @param[out] occup    occupancy radio [in 100 * percentage]","path":"drivers/include/pir.h","position":59,"original_position":59,"commit_id":"5f32b4bdaed14730d0d1aeed63c38283236bfa2c","original_commit_id":"5f32b4bdaed14730d0d1aeed63c38283236bfa2c","user":{"login":"Hyungsin","id":22308790,"node_id":"MDQ6VXNlcjIyMzA4Nzkw","avatar_url":"https://avatars2.githubusercontent.com/u/22308790?v=4","gravatar_id":"","url":"https://api.github.com/users/Hyungsin","html_url":"https://github.com/Hyungsin","followers_url":"https://api.github.com/users/Hyungsin/followers","following_url":"https://api.github.com/users/Hyungsin/following{/other_user}","gists_url":"https://api.github.com/users/Hyungsin/gists{/gist_id}","starred_url":"https://api.github.com/users/Hyungsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hyungsin/subscriptions","organizations_url":"https://api.github.com/users/Hyungsin/orgs","repos_url":"https://api.github.com/users/Hyungsin/repos","events_url":"https://api.github.com/users/Hyungsin/events{/privacy}","received_events_url":"https://api.github.com/users/Hyungsin/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-06-19T00:34:27Z","updated_at":"2018-06-19T00:34:27Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/7823#discussion_r196265255","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/7823","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/196265255"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/7823#discussion_r196265255"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/7823"}},"in_reply_to_id":195985458},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/7823","id":148475701,"node_id":"MDExOlB1bGxSZXF1ZXN0MTQ4NDc1NzAx","html_url":"https://github.com/RIOT-OS/RIOT/pull/7823","diff_url":"https://github.com/RIOT-OS/RIOT/pull/7823.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/7823.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/7823","number":7823,"state":"open","locked":false,"title":"Sensor driver: PIR-based occupancy sensing","user":{"login":"Hyungsin","id":22308790,"node_id":"MDQ6VXNlcjIyMzA4Nzkw","avatar_url":"https://avatars2.githubusercontent.com/u/22308790?v=4","gravatar_id":"","url":"https://api.github.com/users/Hyungsin","html_url":"https://github.com/Hyungsin","followers_url":"https://api.github.com/users/Hyungsin/followers","following_url":"https://api.github.com/users/Hyungsin/following{/other_user}","gists_url":"https://api.github.com/users/Hyungsin/gists{/gist_id}","starred_url":"https://api.github.com/users/Hyungsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hyungsin/subscriptions","organizations_url":"https://api.github.com/users/Hyungsin/orgs","repos_url":"https://api.github.com/users/Hyungsin/repos","events_url":"https://api.github.com/users/Hyungsin/events{/privacy}","received_events_url":"https://api.github.com/users/Hyungsin/received_events","type":"User","site_admin":false},"body":"This PR provides a driver for EKMB PIR motion sensor.\r\n\r\nThe current driver operation is:\r\n1) When the sensor detects motion, the connected GPIO pin goes high. Otherwise, it goes low.\r\n2) The current driver supports to detect occupancy in % (how long has the GPIO been high?). \r\n3) It supports AUTO_INIT and SAUL.","created_at":"2017-10-24T18:22:04Z","updated_at":"2018-06-19T00:34:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9b3c711837c944c217819f2c88e8b6254418d509","assignee":{"login":"PeterKietzmann","id":7765855,"node_id":"MDQ6VXNlcjc3NjU4NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/7765855?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterKietzmann","html_url":"https://github.com/PeterKietzmann","followers_url":"https://api.github.com/users/PeterKietzmann/followers","following_url":"https://api.github.com/users/PeterKietzmann/following{/other_user}","gists_url":"https://api.github.com/users/PeterKietzmann/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterKietzmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterKietzmann/subscriptions","organizations_url":"https://api.github.com/users/PeterKietzmann/orgs","repos_url":"https://api.github.com/users/PeterKietzmann/repos","events_url":"https://api.github.com/users/PeterKietzmann/events{/privacy}","received_events_url":"https://api.github.com/users/PeterKietzmann/received_events","type":"User","site_admin":false},"assignees":[{"login":"PeterKietzmann","id":7765855,"node_id":"MDQ6VXNlcjc3NjU4NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/7765855?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterKietzmann","html_url":"https://github.com/PeterKietzmann","followers_url":"https://api.github.com/users/PeterKietzmann/followers","following_url":"https://api.github.com/users/PeterKietzmann/following{/other_user}","gists_url":"https://api.github.com/users/PeterKietzmann/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterKietzmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterKietzmann/subscriptions","organizations_url":"https://api.github.com/users/PeterKietzmann/orgs","repos_url":"https://api.github.com/users/PeterKietzmann/repos","events_url":"https://api.github.com/users/PeterKietzmann/events{/privacy}","received_events_url":"https://api.github.com/users/PeterKietzmann/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"PeterKietzmann","id":7765855,"node_id":"MDQ6VXNlcjc3NjU4NTU=","avatar_url":"https://avatars3.githubusercontent.com/u/7765855?v=4","gravatar_id":"","url":"https://api.github.com/users/PeterKietzmann","html_url":"https://github.com/PeterKietzmann","followers_url":"https://api.github.com/users/PeterKietzmann/followers","following_url":"https://api.github.com/users/PeterKietzmann/following{/other_user}","gists_url":"https://api.github.com/users/PeterKietzmann/gists{/gist_id}","starred_url":"https://api.github.com/users/PeterKietzmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PeterKietzmann/subscriptions","organizations_url":"https://api.github.com/users/PeterKietzmann/orgs","repos_url":"https://api.github.com/users/PeterKietzmann/repos","events_url":"https://api.github.com/users/PeterKietzmann/events{/privacy}","received_events_url":"https://api.github.com/users/PeterKietzmann/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":135467271,"node_id":"MDU6TGFiZWwxMzU0NjcyNzE=","url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/driver","name":"driver","color":"aaffff","default":false},{"id":97458574,"node_id":"MDU6TGFiZWw5NzQ1ODU3NA==","url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/new%20feature","name":"new feature","color":"e11d21","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/7823/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/7823/comments","review_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/7823/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/5f32b4bdaed14730d0d1aeed63c38283236bfa2c","head":{"label":"Hyungsin:hamilton-ekmb","ref":"hamilton-ekmb","sha":"5f32b4bdaed14730d0d1aeed63c38283236bfa2c","user":{"login":"Hyungsin","id":22308790,"node_id":"MDQ6VXNlcjIyMzA4Nzkw","avatar_url":"https://avatars2.githubusercontent.com/u/22308790?v=4","gravatar_id":"","url":"https://api.github.com/users/Hyungsin","html_url":"https://github.com/Hyungsin","followers_url":"https://api.github.com/users/Hyungsin/followers","following_url":"https://api.github.com/users/Hyungsin/following{/other_user}","gists_url":"https://api.github.com/users/Hyungsin/gists{/gist_id}","starred_url":"https://api.github.com/users/Hyungsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hyungsin/subscriptions","organizations_url":"https://api.github.com/users/Hyungsin/orgs","repos_url":"https://api.github.com/users/Hyungsin/repos","events_url":"https://api.github.com/users/Hyungsin/events{/privacy}","received_events_url":"https://api.github.com/users/Hyungsin/received_events","type":"User","site_admin":false},"repo":{"id":68658620,"node_id":"MDEwOlJlcG9zaXRvcnk2ODY1ODYyMA==","name":"RIOT-OS","full_name":"Hyungsin/RIOT-OS","owner":{"login":"Hyungsin","id":22308790,"node_id":"MDQ6VXNlcjIyMzA4Nzkw","avatar_url":"https://avatars2.githubusercontent.com/u/22308790?v=4","gravatar_id":"","url":"https://api.github.com/users/Hyungsin","html_url":"https://github.com/Hyungsin","followers_url":"https://api.github.com/users/Hyungsin/followers","following_url":"https://api.github.com/users/Hyungsin/following{/other_user}","gists_url":"https://api.github.com/users/Hyungsin/gists{/gist_id}","starred_url":"https://api.github.com/users/Hyungsin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hyungsin/subscriptions","organizations_url":"https://api.github.com/users/Hyungsin/orgs","repos_url":"https://api.github.com/users/Hyungsin/repos","events_url":"https://api.github.com/users/Hyungsin/events{/privacy}","received_events_url":"https://api.github.com/users/Hyungsin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Hyungsin/RIOT-OS","description":"A RIOT-OS fork for staging hamilton support","fork":true,"url":"https://api.github.com/repos/Hyungsin/RIOT-OS","forks_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/forks","keys_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/teams","hooks_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/hooks","issue_events_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/issues/events{/number}","events_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/events","assignees_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/assignees{/user}","branches_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/branches{/branch}","tags_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/tags","blobs_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/git/refs{/sha}","trees_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/statuses/{sha}","languages_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/languages","stargazers_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/stargazers","contributors_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/contributors","subscribers_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/subscribers","subscription_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/subscription","commits_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/commits{/sha}","git_commits_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/git/commits{/sha}","comments_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/comments{/number}","issue_comment_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/issues/comments{/number}","contents_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/contents/{+path}","compare_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/merges","archive_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/downloads","issues_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/issues{/number}","pulls_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/pulls{/number}","milestones_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/milestones{/number}","notifications_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/labels{/name}","releases_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/releases{/id}","deployments_url":"https://api.github.com/repos/Hyungsin/RIOT-OS/deployments","created_at":"2016-09-20T00:41:13Z","updated_at":"2016-09-20T00:41:29Z","pushed_at":"2018-06-18T23:43:57Z","git_url":"git://github.com/Hyungsin/RIOT-OS.git","ssh_url":"git@github.com:Hyungsin/RIOT-OS.git","clone_url":"https://github.com/Hyungsin/RIOT-OS.git","svn_url":"https://github.com/Hyungsin/RIOT-OS","homepage":"","size":54194,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":6,"open_issues":0,"watchers":0,"default_branch":"hamilton-combined-v9.0"}},"base":{"label":"RIOT-OS:master","ref":"master","sha":"bce6216ec9d6e7e11c55202620a6dee882339049","user":{"login":"RIOT-OS","id":3079480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNzk0ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/3079480?v=4","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":7370241,"node_id":"MDEwOlJlcG9zaXRvcnk3MzcwMjQx","name":"RIOT","full_name":"RIOT-OS/RIOT","owner":{"login":"RIOT-OS","id":3079480,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMwNzk0ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/3079480?v=4","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIOT-OS/RIOT","description":"RIOT -  The friendly OS for IoT","fork":false,"url":"https://api.github.com/repos/RIOT-OS/RIOT","forks_url":"https://api.github.com/repos/RIOT-OS/RIOT/forks","keys_url":"https://api.github.com/repos/RIOT-OS/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIOT-OS/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIOT-OS/RIOT/teams","hooks_url":"https://api.github.com/repos/RIOT-OS/RIOT/hooks","issue_events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/events","assignees_url":"https://api.github.com/repos/RIOT-OS/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/RIOT-OS/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/tags","blobs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/RIOT-OS/RIOT/languages","stargazers_url":"https://api.github.com/repos/RIOT-OS/RIOT/stargazers","contributors_url":"https://api.github.com/repos/RIOT-OS/RIOT/contributors","subscribers_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscribers","subscription_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscription","commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/RIOT-OS/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/RIOT-OS/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIOT-OS/RIOT/merges","archive_url":"https://api.github.com/repos/RIOT-OS/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIOT-OS/RIOT/downloads","issues_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/RIOT-OS/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/RIOT-OS/RIOT/releases{/id}","deployments_url":"https://api.github.com/repos/RIOT-OS/RIOT/deployments","created_at":"2012-12-29T20:38:40Z","updated_at":"2018-06-18T15:45:59Z","pushed_at":"2018-06-18T23:44:00Z","git_url":"git://github.com/RIOT-OS/RIOT.git","ssh_url":"git@github.com:RIOT-OS/RIOT.git","clone_url":"https://github.com/RIOT-OS/RIOT.git","svn_url":"https://github.com/RIOT-OS/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":53890,"stargazers_count":1832,"watchers_count":1832,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1076,"mirror_url":null,"archived":false,"open_issues_count":775,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":1076,"open_issues":775,"watchers":1832,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/7823"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/7823"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/7823"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/7823/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/7823/comments"},"review_comment":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/7823/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/5f32b4bdaed14730d0d1aeed63c38283236bfa2c"}},"author_association":"NONE"}}
{"actor":{"display_login":"Hyungsin"}}