{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls/4","id":72266803,"html_url":"https://github.com/dalexgray/RaspberryPI_HTU21DF/pull/4","diff_url":"https://github.com/dalexgray/RaspberryPI_HTU21DF/pull/4.diff","patch_url":"https://github.com/dalexgray/RaspberryPI_HTU21DF/pull/4.patch","issue_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/issues/4","number":4,"state":"open","locked":false,"title":"\\# HTU21D Raspberry Pi Driver 2.0","user":{"login":"Phantom410","id":10789337,"avatar_url":"https://avatars.githubusercontent.com/u/10789337?v=3","gravatar_id":"","url":"https://api.github.com/users/Phantom410","html_url":"https://github.com/Phantom410","followers_url":"https://api.github.com/users/Phantom410/followers","following_url":"https://api.github.com/users/Phantom410/following{/other_user}","gists_url":"https://api.github.com/users/Phantom410/gists{/gist_id}","starred_url":"https://api.github.com/users/Phantom410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phantom410/subscriptions","organizations_url":"https://api.github.com/users/Phantom410/orgs","repos_url":"https://api.github.com/users/Phantom410/repos","events_url":"https://api.github.com/users/Phantom410/events{/privacy}","received_events_url":"https://api.github.com/users/Phantom410/received_events","type":"User","site_admin":false},"body":"\\#\\# Rewrote as a class, so the sensor can be instatiated like an object.\r\n* See the test script for an example.\r\n* notable advantages to this approach is that you can have several of the same type of sensor and not confuse them. You can also standardize your interface with sensors if you start using more of them.\r\n* Commands are now stored as a Dictionary, which you can add to.\r\n* HTU attributes are: address, commands, bus.\r\n\r\n\\#\\# Fixed some math bugs\r\n* Most notably, humidity needed to be bit shifted by 2 (divided by 4) because it is only a 12-bit reading. You probably found your humidity readings are in the 130% range. This is the cause.\r\n* Added the float() expression and removed the need for importing math module. It's a builtin and also won't make an absolute value like math.fabs()\r\n* rounded returns to 2 decimal places.\r\n\r\nI can't thank you enough for your original driver, but hopefully you're still curating this repo!\r\n-Phantom410","created_at":"2016-06-01T23:07:13Z","updated_at":"2016-06-01T23:07:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5450022026c4c4857c5e79ed5c1ad836ad76489b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls/4/commits","review_comments_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls/4/comments","review_comment_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/issues/4/comments","statuses_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/statuses/81742a9ec7a1e627c56fecc2b5de717d88f93d82","head":{"label":"Phantom410:master","ref":"master","sha":"81742a9ec7a1e627c56fecc2b5de717d88f93d82","user":{"login":"Phantom410","id":10789337,"avatar_url":"https://avatars.githubusercontent.com/u/10789337?v=3","gravatar_id":"","url":"https://api.github.com/users/Phantom410","html_url":"https://github.com/Phantom410","followers_url":"https://api.github.com/users/Phantom410/followers","following_url":"https://api.github.com/users/Phantom410/following{/other_user}","gists_url":"https://api.github.com/users/Phantom410/gists{/gist_id}","starred_url":"https://api.github.com/users/Phantom410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phantom410/subscriptions","organizations_url":"https://api.github.com/users/Phantom410/orgs","repos_url":"https://api.github.com/users/Phantom410/repos","events_url":"https://api.github.com/users/Phantom410/events{/privacy}","received_events_url":"https://api.github.com/users/Phantom410/received_events","type":"User","site_admin":false},"repo":{"id":51261219,"name":"RaspberryPI_HTU21DF","full_name":"Phantom410/RaspberryPI_HTU21DF","owner":{"login":"Phantom410","id":10789337,"avatar_url":"https://avatars.githubusercontent.com/u/10789337?v=3","gravatar_id":"","url":"https://api.github.com/users/Phantom410","html_url":"https://github.com/Phantom410","followers_url":"https://api.github.com/users/Phantom410/followers","following_url":"https://api.github.com/users/Phantom410/following{/other_user}","gists_url":"https://api.github.com/users/Phantom410/gists{/gist_id}","starred_url":"https://api.github.com/users/Phantom410/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Phantom410/subscriptions","organizations_url":"https://api.github.com/users/Phantom410/orgs","repos_url":"https://api.github.com/users/Phantom410/repos","events_url":"https://api.github.com/users/Phantom410/events{/privacy}","received_events_url":"https://api.github.com/users/Phantom410/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Phantom410/RaspberryPI_HTU21DF","description":"Python driver for HTU21D-F temp/hum sensor","fork":true,"url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF","forks_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/forks","keys_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/teams","hooks_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/hooks","issue_events_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/issues/events{/number}","events_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/events","assignees_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/assignees{/user}","branches_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/branches{/branch}","tags_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/tags","blobs_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/git/refs{/sha}","trees_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/statuses/{sha}","languages_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/languages","stargazers_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/stargazers","contributors_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/contributors","subscribers_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/subscribers","subscription_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/subscription","commits_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/commits{/sha}","git_commits_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/git/commits{/sha}","comments_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/comments{/number}","issue_comment_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/issues/comments{/number}","contents_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/contents/{+path}","compare_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/merges","archive_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/downloads","issues_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/issues{/number}","pulls_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/pulls{/number}","milestones_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/milestones{/number}","notifications_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/labels{/name}","releases_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/releases{/id}","deployments_url":"https://api.github.com/repos/Phantom410/RaspberryPI_HTU21DF/deployments","created_at":"2016-02-07T19:11:27Z","updated_at":"2016-02-07T19:11:27Z","pushed_at":"2016-02-07T19:46:45Z","git_url":"git://github.com/Phantom410/RaspberryPI_HTU21DF.git","ssh_url":"git@github.com:Phantom410/RaspberryPI_HTU21DF.git","clone_url":"https://github.com/Phantom410/RaspberryPI_HTU21DF.git","svn_url":"https://github.com/Phantom410/RaspberryPI_HTU21DF","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dalexgray:master","ref":"master","sha":"56b48d3cf8cfbc90a4bfddbf35a9e23e7299e407","user":{"login":"dalexgray","id":3085755,"avatar_url":"https://avatars.githubusercontent.com/u/3085755?v=3","gravatar_id":"","url":"https://api.github.com/users/dalexgray","html_url":"https://github.com/dalexgray","followers_url":"https://api.github.com/users/dalexgray/followers","following_url":"https://api.github.com/users/dalexgray/following{/other_user}","gists_url":"https://api.github.com/users/dalexgray/gists{/gist_id}","starred_url":"https://api.github.com/users/dalexgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalexgray/subscriptions","organizations_url":"https://api.github.com/users/dalexgray/orgs","repos_url":"https://api.github.com/users/dalexgray/repos","events_url":"https://api.github.com/users/dalexgray/events{/privacy}","received_events_url":"https://api.github.com/users/dalexgray/received_events","type":"User","site_admin":false},"repo":{"id":23291172,"name":"RaspberryPI_HTU21DF","full_name":"dalexgray/RaspberryPI_HTU21DF","owner":{"login":"dalexgray","id":3085755,"avatar_url":"https://avatars.githubusercontent.com/u/3085755?v=3","gravatar_id":"","url":"https://api.github.com/users/dalexgray","html_url":"https://github.com/dalexgray","followers_url":"https://api.github.com/users/dalexgray/followers","following_url":"https://api.github.com/users/dalexgray/following{/other_user}","gists_url":"https://api.github.com/users/dalexgray/gists{/gist_id}","starred_url":"https://api.github.com/users/dalexgray/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalexgray/subscriptions","organizations_url":"https://api.github.com/users/dalexgray/orgs","repos_url":"https://api.github.com/users/dalexgray/repos","events_url":"https://api.github.com/users/dalexgray/events{/privacy}","received_events_url":"https://api.github.com/users/dalexgray/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dalexgray/RaspberryPI_HTU21DF","description":"Python driver for HTU21D-F temp/hum sensor","fork":false,"url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF","forks_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/forks","keys_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/teams","hooks_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/hooks","issue_events_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/issues/events{/number}","events_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/events","assignees_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/assignees{/user}","branches_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/branches{/branch}","tags_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/tags","blobs_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/git/refs{/sha}","trees_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/statuses/{sha}","languages_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/languages","stargazers_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/stargazers","contributors_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/contributors","subscribers_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/subscribers","subscription_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/subscription","commits_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/commits{/sha}","git_commits_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/git/commits{/sha}","comments_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/comments{/number}","issue_comment_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/issues/comments{/number}","contents_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/contents/{+path}","compare_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/merges","archive_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/downloads","issues_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/issues{/number}","pulls_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls{/number}","milestones_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/milestones{/number}","notifications_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/labels{/name}","releases_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/releases{/id}","deployments_url":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/deployments","created_at":"2014-08-24T19:57:04Z","updated_at":"2016-02-25T14:10:27Z","pushed_at":"2016-06-01T23:07:13Z","git_url":"git://github.com/dalexgray/RaspberryPI_HTU21DF.git","ssh_url":"git@github.com:dalexgray/RaspberryPI_HTU21DF.git","clone_url":"https://github.com/dalexgray/RaspberryPI_HTU21DF.git","svn_url":"https://github.com/dalexgray/RaspberryPI_HTU21DF","homepage":null,"size":124,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls/4"},"html":{"href":"https://github.com/dalexgray/RaspberryPI_HTU21DF/pull/4"},"issue":{"href":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/issues/4"},"comments":{"href":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/dalexgray/RaspberryPI_HTU21DF/statuses/81742a9ec7a1e627c56fecc2b5de717d88f93d82"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":86,"deletions":81,"changed_files":4}}
{"actor":{"display_login":"Phantom410"}}