{"action":"created","comment":{"url":"https://api.github.com/repos/google/periph/pulls/comments/224972452","pull_request_review_id":164476978,"id":224972452,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDk3MjQ1Mg==","diff_hunk":"@@ -352,6 +354,111 @@ const (\n \tFahrenheit      Temperature = 555555555 * NanoKelvin\n )\n \n+// Power is a measurement of power stored as a nano watts.\n+//\n+// The highest representable value is 9.2GW.\n+type Power int64\n+\n+// String returns the power formatted as a string in watts.\n+func (p Power) String() string {\n+\treturn nanoAsString(int64(p)) + \"W\"\n+}\n+\n+const (\n+\t//Watt is unit of power J/s, kg⋅m²⋅s⁻³","path":"conn/physic/units.go","position":24,"original_position":24,"commit_id":"6c585d57e1194c38f2072a34cd9c2b59a22ab86a","original_commit_id":"6c585d57e1194c38f2072a34cd9c2b59a22ab86a","user":{"login":"maruel","id":75011,"node_id":"MDQ6VXNlcjc1MDEx","avatar_url":"https://avatars2.githubusercontent.com/u/75011?v=4","gravatar_id":"","url":"https://api.github.com/users/maruel","html_url":"https://github.com/maruel","followers_url":"https://api.github.com/users/maruel/followers","following_url":"https://api.github.com/users/maruel/following{/other_user}","gists_url":"https://api.github.com/users/maruel/gists{/gist_id}","starred_url":"https://api.github.com/users/maruel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maruel/subscriptions","organizations_url":"https://api.github.com/users/maruel/orgs","repos_url":"https://api.github.com/users/maruel/repos","events_url":"https://api.github.com/users/maruel/events{/privacy}","received_events_url":"https://api.github.com/users/maruel/received_events","type":"User","site_admin":false},"body":"Space between // and Watt.","created_at":"2018-10-13T21:22:28Z","updated_at":"2018-10-13T21:46:50Z","html_url":"https://github.com/google/periph/pull/292#discussion_r224972452","pull_request_url":"https://api.github.com/repos/google/periph/pulls/292","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/google/periph/pulls/comments/224972452"},"html":{"href":"https://github.com/google/periph/pull/292#discussion_r224972452"},"pull_request":{"href":"https://api.github.com/repos/google/periph/pulls/292"}}},"pull_request":{"url":"https://api.github.com/repos/google/periph/pulls/292","id":222648646,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNjQ4NjQ2","html_url":"https://github.com/google/periph/pull/292","diff_url":"https://github.com/google/periph/pull/292.diff","patch_url":"https://github.com/google/periph/pull/292.patch","issue_url":"https://api.github.com/repos/google/periph/issues/292","number":292,"state":"open","locked":false,"title":"INA219 Driver TI i2c current and voltage sensor  ","user":{"login":"NeuralSpaz","id":6887502,"node_id":"MDQ6VXNlcjY4ODc1MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/6887502?v=4","gravatar_id":"","url":"https://api.github.com/users/NeuralSpaz","html_url":"https://github.com/NeuralSpaz","followers_url":"https://api.github.com/users/NeuralSpaz/followers","following_url":"https://api.github.com/users/NeuralSpaz/following{/other_user}","gists_url":"https://api.github.com/users/NeuralSpaz/gists{/gist_id}","starred_url":"https://api.github.com/users/NeuralSpaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeuralSpaz/subscriptions","organizations_url":"https://api.github.com/users/NeuralSpaz/orgs","repos_url":"https://api.github.com/users/NeuralSpaz/repos","events_url":"https://api.github.com/users/NeuralSpaz/events{/privacy}","received_events_url":"https://api.github.com/users/NeuralSpaz/received_events","type":"User","site_admin":false},"body":"adds initial experimental driver for Texas Instruments i2c INA219 high side current sensor  IC.\r\n  - basic driver operation verified on raspberry pi zero w. ina219/cmd\r\nadd units to physic pkg\r\n - SI Power (to support ina219 sensor units)\r\n - SI Capacitance\r\n - SI Flux units \r\n - SI Luminous Intensity units\r\n - SI Energy units\r\nattempt at nanoToString, picoToString, microToString rounding todo.","created_at":"2018-10-13T12:57:59Z","updated_at":"2018-10-13T21:46:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"46aec2c3db41a2fe480398084893533690391edc","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/periph/pulls/292/commits","review_comments_url":"https://api.github.com/repos/google/periph/pulls/292/comments","review_comment_url":"https://api.github.com/repos/google/periph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/periph/issues/292/comments","statuses_url":"https://api.github.com/repos/google/periph/statuses/6c585d57e1194c38f2072a34cd9c2b59a22ab86a","head":{"label":"NeuralSpaz:ina219","ref":"ina219","sha":"6c585d57e1194c38f2072a34cd9c2b59a22ab86a","user":{"login":"NeuralSpaz","id":6887502,"node_id":"MDQ6VXNlcjY4ODc1MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/6887502?v=4","gravatar_id":"","url":"https://api.github.com/users/NeuralSpaz","html_url":"https://github.com/NeuralSpaz","followers_url":"https://api.github.com/users/NeuralSpaz/followers","following_url":"https://api.github.com/users/NeuralSpaz/following{/other_user}","gists_url":"https://api.github.com/users/NeuralSpaz/gists{/gist_id}","starred_url":"https://api.github.com/users/NeuralSpaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeuralSpaz/subscriptions","organizations_url":"https://api.github.com/users/NeuralSpaz/orgs","repos_url":"https://api.github.com/users/NeuralSpaz/repos","events_url":"https://api.github.com/users/NeuralSpaz/events{/privacy}","received_events_url":"https://api.github.com/users/NeuralSpaz/received_events","type":"User","site_admin":false},"repo":{"id":152607742,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI2MDc3NDI=","name":"periph","full_name":"NeuralSpaz/periph","private":false,"owner":{"login":"NeuralSpaz","id":6887502,"node_id":"MDQ6VXNlcjY4ODc1MDI=","avatar_url":"https://avatars2.githubusercontent.com/u/6887502?v=4","gravatar_id":"","url":"https://api.github.com/users/NeuralSpaz","html_url":"https://github.com/NeuralSpaz","followers_url":"https://api.github.com/users/NeuralSpaz/followers","following_url":"https://api.github.com/users/NeuralSpaz/following{/other_user}","gists_url":"https://api.github.com/users/NeuralSpaz/gists{/gist_id}","starred_url":"https://api.github.com/users/NeuralSpaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeuralSpaz/subscriptions","organizations_url":"https://api.github.com/users/NeuralSpaz/orgs","repos_url":"https://api.github.com/users/NeuralSpaz/repos","events_url":"https://api.github.com/users/NeuralSpaz/events{/privacy}","received_events_url":"https://api.github.com/users/NeuralSpaz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/NeuralSpaz/periph","description":"Go·Hardware·Lean","fork":true,"url":"https://api.github.com/repos/NeuralSpaz/periph","forks_url":"https://api.github.com/repos/NeuralSpaz/periph/forks","keys_url":"https://api.github.com/repos/NeuralSpaz/periph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NeuralSpaz/periph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NeuralSpaz/periph/teams","hooks_url":"https://api.github.com/repos/NeuralSpaz/periph/hooks","issue_events_url":"https://api.github.com/repos/NeuralSpaz/periph/issues/events{/number}","events_url":"https://api.github.com/repos/NeuralSpaz/periph/events","assignees_url":"https://api.github.com/repos/NeuralSpaz/periph/assignees{/user}","branches_url":"https://api.github.com/repos/NeuralSpaz/periph/branches{/branch}","tags_url":"https://api.github.com/repos/NeuralSpaz/periph/tags","blobs_url":"https://api.github.com/repos/NeuralSpaz/periph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NeuralSpaz/periph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NeuralSpaz/periph/git/refs{/sha}","trees_url":"https://api.github.com/repos/NeuralSpaz/periph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NeuralSpaz/periph/statuses/{sha}","languages_url":"https://api.github.com/repos/NeuralSpaz/periph/languages","stargazers_url":"https://api.github.com/repos/NeuralSpaz/periph/stargazers","contributors_url":"https://api.github.com/repos/NeuralSpaz/periph/contributors","subscribers_url":"https://api.github.com/repos/NeuralSpaz/periph/subscribers","subscription_url":"https://api.github.com/repos/NeuralSpaz/periph/subscription","commits_url":"https://api.github.com/repos/NeuralSpaz/periph/commits{/sha}","git_commits_url":"https://api.github.com/repos/NeuralSpaz/periph/git/commits{/sha}","comments_url":"https://api.github.com/repos/NeuralSpaz/periph/comments{/number}","issue_comment_url":"https://api.github.com/repos/NeuralSpaz/periph/issues/comments{/number}","contents_url":"https://api.github.com/repos/NeuralSpaz/periph/contents/{+path}","compare_url":"https://api.github.com/repos/NeuralSpaz/periph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NeuralSpaz/periph/merges","archive_url":"https://api.github.com/repos/NeuralSpaz/periph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NeuralSpaz/periph/downloads","issues_url":"https://api.github.com/repos/NeuralSpaz/periph/issues{/number}","pulls_url":"https://api.github.com/repos/NeuralSpaz/periph/pulls{/number}","milestones_url":"https://api.github.com/repos/NeuralSpaz/periph/milestones{/number}","notifications_url":"https://api.github.com/repos/NeuralSpaz/periph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NeuralSpaz/periph/labels{/name}","releases_url":"https://api.github.com/repos/NeuralSpaz/periph/releases{/id}","deployments_url":"https://api.github.com/repos/NeuralSpaz/periph/deployments","created_at":"2018-10-11T14:44:53Z","updated_at":"2018-10-11T14:55:57Z","pushed_at":"2018-10-13T12:48:58Z","git_url":"git://github.com/NeuralSpaz/periph.git","ssh_url":"git@github.com:NeuralSpaz/periph.git","clone_url":"https://github.com/NeuralSpaz/periph.git","svn_url":"https://github.com/NeuralSpaz/periph","homepage":"https://periph.io","size":1958,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"0d6810db33e1d7d3b50c33364642930565f2125b","user":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":70828109,"node_id":"MDEwOlJlcG9zaXRvcnk3MDgyODEwOQ==","name":"periph","full_name":"google/periph","private":false,"owner":{"login":"google","id":1342004,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEzNDIwMDQ=","avatar_url":"https://avatars1.githubusercontent.com/u/1342004?v=4","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/google/periph","description":"Go·Hardware·Lean","fork":false,"url":"https://api.github.com/repos/google/periph","forks_url":"https://api.github.com/repos/google/periph/forks","keys_url":"https://api.github.com/repos/google/periph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/periph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/periph/teams","hooks_url":"https://api.github.com/repos/google/periph/hooks","issue_events_url":"https://api.github.com/repos/google/periph/issues/events{/number}","events_url":"https://api.github.com/repos/google/periph/events","assignees_url":"https://api.github.com/repos/google/periph/assignees{/user}","branches_url":"https://api.github.com/repos/google/periph/branches{/branch}","tags_url":"https://api.github.com/repos/google/periph/tags","blobs_url":"https://api.github.com/repos/google/periph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/periph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/periph/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/periph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/periph/statuses/{sha}","languages_url":"https://api.github.com/repos/google/periph/languages","stargazers_url":"https://api.github.com/repos/google/periph/stargazers","contributors_url":"https://api.github.com/repos/google/periph/contributors","subscribers_url":"https://api.github.com/repos/google/periph/subscribers","subscription_url":"https://api.github.com/repos/google/periph/subscription","commits_url":"https://api.github.com/repos/google/periph/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/periph/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/periph/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/periph/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/periph/contents/{+path}","compare_url":"https://api.github.com/repos/google/periph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/periph/merges","archive_url":"https://api.github.com/repos/google/periph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/periph/downloads","issues_url":"https://api.github.com/repos/google/periph/issues{/number}","pulls_url":"https://api.github.com/repos/google/periph/pulls{/number}","milestones_url":"https://api.github.com/repos/google/periph/milestones{/number}","notifications_url":"https://api.github.com/repos/google/periph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/periph/labels{/name}","releases_url":"https://api.github.com/repos/google/periph/releases{/id}","deployments_url":"https://api.github.com/repos/google/periph/deployments","created_at":"2016-10-13T16:53:51Z","updated_at":"2018-10-13T20:51:22Z","pushed_at":"2018-10-13T12:58:00Z","git_url":"git://github.com/google/periph.git","ssh_url":"git@github.com:google/periph.git","clone_url":"https://github.com/google/periph.git","svn_url":"https://github.com/google/periph","homepage":"https://periph.io","size":1923,"stargazers_count":1084,"watchers_count":1084,"language":"Go","has_issues":true,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":86,"mirror_url":null,"archived":false,"open_issues_count":36,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":86,"open_issues":36,"watchers":1084,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/periph/pulls/292"},"html":{"href":"https://github.com/google/periph/pull/292"},"issue":{"href":"https://api.github.com/repos/google/periph/issues/292"},"comments":{"href":"https://api.github.com/repos/google/periph/issues/292/comments"},"review_comments":{"href":"https://api.github.com/repos/google/periph/pulls/292/comments"},"review_comment":{"href":"https://api.github.com/repos/google/periph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/periph/pulls/292/commits"},"statuses":{"href":"https://api.github.com/repos/google/periph/statuses/6c585d57e1194c38f2072a34cd9c2b59a22ab86a"}},"author_association":"NONE"}}
{"actor":{"display_login":"maruel"}}