{"action":"created","issue":{"url":"https://api.github.com/repos/greshake/i3status-rust/issues/214","repository_url":"https://api.github.com/repos/greshake/i3status-rust","labels_url":"https://api.github.com/repos/greshake/i3status-rust/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/greshake/i3status-rust/issues/214/comments","events_url":"https://api.github.com/repos/greshake/i3status-rust/issues/214/events","html_url":"https://github.com/greshake/i3status-rust/pull/214","id":338636301,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NTE4MDQ0","number":214,"title":"Battery block: ability to calculate remaining time from charge/current","user":{"login":"GladOSkar","id":9497832,"node_id":"MDQ6VXNlcjk0OTc4MzI=","avatar_url":"https://avatars3.githubusercontent.com/u/9497832?v=4","gravatar_id":"","url":"https://api.github.com/users/GladOSkar","html_url":"https://github.com/GladOSkar","followers_url":"https://api.github.com/users/GladOSkar/followers","following_url":"https://api.github.com/users/GladOSkar/following{/other_user}","gists_url":"https://api.github.com/users/GladOSkar/gists{/gist_id}","starred_url":"https://api.github.com/users/GladOSkar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GladOSkar/subscriptions","organizations_url":"https://api.github.com/users/GladOSkar/orgs","repos_url":"https://api.github.com/users/GladOSkar/repos","events_url":"https://api.github.com/users/GladOSkar/events{/privacy}","received_events_url":"https://api.github.com/users/GladOSkar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-05T16:04:00Z","updated_at":"2018-07-19T00:35:04Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/greshake/i3status-rust/pulls/214","html_url":"https://github.com/greshake/i3status-rust/pull/214","diff_url":"https://github.com/greshake/i3status-rust/pull/214.diff","patch_url":"https://github.com/greshake/i3status-rust/pull/214.patch"},"body":"Remaining time didn't work for me, because my machine doesn't have the `energy_now` and `power_now` files but only `charge_now` and `current_now`.\r\n\r\nThis makes it so that `energy/power` is used if available, then if not, `charge/current` is used, and if neither is present, an error is thrown.\r\n\r\nI am relatively new to rust, let me know if i've done something suboptimally :)"},"comment":{"url":"https://api.github.com/repos/greshake/i3status-rust/issues/comments/406116498","html_url":"https://github.com/greshake/i3status-rust/pull/214#issuecomment-406116498","issue_url":"https://api.github.com/repos/greshake/i3status-rust/issues/214","id":406116498,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjExNjQ5OA==","user":{"login":"atheriel","id":1448326,"node_id":"MDQ6VXNlcjE0NDgzMjY=","avatar_url":"https://avatars2.githubusercontent.com/u/1448326?v=4","gravatar_id":"","url":"https://api.github.com/users/atheriel","html_url":"https://github.com/atheriel","followers_url":"https://api.github.com/users/atheriel/followers","following_url":"https://api.github.com/users/atheriel/following{/other_user}","gists_url":"https://api.github.com/users/atheriel/gists{/gist_id}","starred_url":"https://api.github.com/users/atheriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atheriel/subscriptions","organizations_url":"https://api.github.com/users/atheriel/orgs","repos_url":"https://api.github.com/users/atheriel/repos","events_url":"https://api.github.com/users/atheriel/events{/privacy}","received_events_url":"https://api.github.com/users/atheriel/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T00:35:04Z","updated_at":"2018-07-19T00:35:04Z","author_association":"COLLABORATOR","body":"This looks good to me. Do you find that it gives a reasonable estimate of the time remaining?"}}
{"actor":{"display_login":"atheriel"}}