{"action":"created","issue":{"url":"https://api.github.com/repos/copycat-killer/lain/issues/177","repository_url":"https://api.github.com/repos/copycat-killer/lain","labels_url":"https://api.github.com/repos/copycat-killer/lain/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/copycat-killer/lain/issues/177/comments","events_url":"https://api.github.com/repos/copycat-killer/lain/issues/177/events","html_url":"https://github.com/copycat-killer/lain/issues/177","id":140043287,"number":177,"title":"bat.lua - watt is being computed wrongly","user":{"login":"andering","id":5904904,"avatar_url":"https://avatars.githubusercontent.com/u/5904904?v=3","gravatar_id":"","url":"https://api.github.com/users/andering","html_url":"https://github.com/andering","followers_url":"https://api.github.com/users/andering/followers","following_url":"https://api.github.com/users/andering/following{/other_user}","gists_url":"https://api.github.com/users/andering/gists{/gist_id}","starred_url":"https://api.github.com/users/andering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andering/subscriptions","organizations_url":"https://api.github.com/users/andering/orgs","repos_url":"https://api.github.com/users/andering/repos","events_url":"https://api.github.com/users/andering/events{/privacy}","received_events_url":"https://api.github.com/users/andering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-10T23:50:37Z","updated_at":"2016-03-20T21:36:30Z","closed_at":null,"body":"Hello, \r\ncorrect me if i'm wrong \r\nbut it seems to me that with widget bat.lua and his property watt (current Watt usage?), \r\nis being computes as **W** = **I** * **V** , so W = power_now * voltage_now ,\r\nBUT power_now doesn't contain **I** , but already current usage, so **W**\r\n\r\n```\r\nlocal rate  = first_line(bstr .. \"/power_now\") or first_line(bstr .. \"/current_now\")\r\nlocal ratev = first_line(bstr .. \"/voltage_now\")\r\n\r\nbat_now.watt = string.format(\"%.2fW\", (rate * ratev) / 1e12)\r\n```\r\n\r\nThank you for making it clear for me."},"comment":{"url":"https://api.github.com/repos/copycat-killer/lain/issues/comments/199032580","html_url":"https://github.com/copycat-killer/lain/issues/177#issuecomment-199032580","issue_url":"https://api.github.com/repos/copycat-killer/lain/issues/177","id":199032580,"user":{"login":"stwa","id":3699786,"avatar_url":"https://avatars.githubusercontent.com/u/3699786?v=3","gravatar_id":"","url":"https://api.github.com/users/stwa","html_url":"https://github.com/stwa","followers_url":"https://api.github.com/users/stwa/followers","following_url":"https://api.github.com/users/stwa/following{/other_user}","gists_url":"https://api.github.com/users/stwa/gists{/gist_id}","starred_url":"https://api.github.com/users/stwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stwa/subscriptions","organizations_url":"https://api.github.com/users/stwa/orgs","repos_url":"https://api.github.com/users/stwa/repos","events_url":"https://api.github.com/users/stwa/events{/privacy}","received_events_url":"https://api.github.com/users/stwa/received_events","type":"User","site_admin":false},"created_at":"2016-03-20T21:36:30Z","updated_at":"2016-03-20T21:36:30Z","body":"But what **if** `power_now` is available? It looks like **W = W * V** (according to the code snippet)"}}