{"action":"created","comment":{"url":"https://api.github.com/repos/domoticz/domoticz/pulls/comments/67809049","id":67809049,"diff_hunk":"@@ -4017,8 +4035,11 @@ void CSQLHelper::UpdateRainLog()\n \t\t\tif (splitresults.size()<2)\n \t\t\t\tcontinue; //impossible\n \n-\t\t\tint rate=atoi(splitresults[0].c_str());\n-\t\t\tfloat total = static_cast<float>(atof(splitresults[1].c_str()));\n+\t\t\tfloat total=0;\n+\t\t\tint rate=0;\n+\n+\t\t\trate=atoi(splitresults[0].c_str());\n+\t\t\ttotal = static_cast<float>(atof(splitresults[1].c_str()));","path":"main/SQLHelper.cpp","position":null,"original_position":95,"commit_id":"188c2517f3489e4fbe3fb1cf7e269624e4493748","original_commit_id":"8542b61376ed8ce345a28596689238b3e3373751","user":{"login":"gizmocuz","id":2265299,"avatar_url":"https://avatars.githubusercontent.com/u/2265299?v=3","gravatar_id":"","url":"https://api.github.com/users/gizmocuz","html_url":"https://github.com/gizmocuz","followers_url":"https://api.github.com/users/gizmocuz/followers","following_url":"https://api.github.com/users/gizmocuz/following{/other_user}","gists_url":"https://api.github.com/users/gizmocuz/gists{/gist_id}","starred_url":"https://api.github.com/users/gizmocuz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gizmocuz/subscriptions","organizations_url":"https://api.github.com/users/gizmocuz/orgs","repos_url":"https://api.github.com/users/gizmocuz/repos","events_url":"https://api.github.com/users/gizmocuz/events{/privacy}","received_events_url":"https://api.github.com/users/gizmocuz/received_events","type":"User","site_admin":false},"body":"No problem... ;)","created_at":"2016-06-21T05:13:40Z","updated_at":"2016-06-21T05:13:40Z","html_url":"https://github.com/domoticz/domoticz/pull/711#discussion_r67809049","pull_request_url":"https://api.github.com/repos/domoticz/domoticz/pulls/711","_links":{"self":{"href":"https://api.github.com/repos/domoticz/domoticz/pulls/comments/67809049"},"html":{"href":"https://github.com/domoticz/domoticz/pull/711#discussion_r67809049"},"pull_request":{"href":"https://api.github.com/repos/domoticz/domoticz/pulls/711"}}},"pull_request":{"url":"https://api.github.com/repos/domoticz/domoticz/pulls/711","id":74374349,"html_url":"https://github.com/domoticz/domoticz/pull/711","diff_url":"https://github.com/domoticz/domoticz/pull/711.diff","patch_url":"https://github.com/domoticz/domoticz/pull/711.patch","issue_url":"https://api.github.com/repos/domoticz/domoticz/issues/711","number":711,"state":"open","locked":false,"title":"Energy computed instead of reading","user":{"login":"jotakar","id":18536565,"avatar_url":"https://avatars.githubusercontent.com/u/18536565?v=3","gravatar_id":"","url":"https://api.github.com/users/jotakar","html_url":"https://github.com/jotakar","followers_url":"https://api.github.com/users/jotakar/followers","following_url":"https://api.github.com/users/jotakar/following{/other_user}","gists_url":"https://api.github.com/users/jotakar/gists{/gist_id}","starred_url":"https://api.github.com/users/jotakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotakar/subscriptions","organizations_url":"https://api.github.com/users/jotakar/orgs","repos_url":"https://api.github.com/users/jotakar/repos","events_url":"https://api.github.com/users/jotakar/events{/privacy}","received_events_url":"https://api.github.com/users/jotakar/received_events","type":"User","site_admin":false},"body":"Some modules reads energy in kwh with precission of 1 digit  (2,1 kwh, 2,2 kwh ...) but sometimes the energy consumed in a day is less than 0.1 kwh. \r\nThink about a lamp type led or low consum: 8 watts for 10 hours is 80 wh (0,080kwh). but module reports 0.0 kwh for this day. \r\nWith this modification system gets the energy value by software: it reads the usage and the interval of time and make a simple operation:  usage*time (usage: watts, time: minutes). \r\nI use field Options for Energy Meter devices. If  enabled (1)  the energy is calculated by program if  disabled (0) energy value is read from the device. \r\nI've found this issue with Qubino relays.","created_at":"2016-06-19T21:16:55Z","updated_at":"2016-06-21T05:13:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6eaab7acdfaa5ad67ea52bd26a92c0e702252c8a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/domoticz/domoticz/pulls/711/commits","review_comments_url":"https://api.github.com/repos/domoticz/domoticz/pulls/711/comments","review_comment_url":"https://api.github.com/repos/domoticz/domoticz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/domoticz/domoticz/issues/711/comments","statuses_url":"https://api.github.com/repos/domoticz/domoticz/statuses/188c2517f3489e4fbe3fb1cf7e269624e4493748","head":{"label":"jotakar:master","ref":"master","sha":"188c2517f3489e4fbe3fb1cf7e269624e4493748","user":{"login":"jotakar","id":18536565,"avatar_url":"https://avatars.githubusercontent.com/u/18536565?v=3","gravatar_id":"","url":"https://api.github.com/users/jotakar","html_url":"https://github.com/jotakar","followers_url":"https://api.github.com/users/jotakar/followers","following_url":"https://api.github.com/users/jotakar/following{/other_user}","gists_url":"https://api.github.com/users/jotakar/gists{/gist_id}","starred_url":"https://api.github.com/users/jotakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotakar/subscriptions","organizations_url":"https://api.github.com/users/jotakar/orgs","repos_url":"https://api.github.com/users/jotakar/repos","events_url":"https://api.github.com/users/jotakar/events{/privacy}","received_events_url":"https://api.github.com/users/jotakar/received_events","type":"User","site_admin":false},"repo":{"id":61499376,"name":"domoticz","full_name":"jotakar/domoticz","owner":{"login":"jotakar","id":18536565,"avatar_url":"https://avatars.githubusercontent.com/u/18536565?v=3","gravatar_id":"","url":"https://api.github.com/users/jotakar","html_url":"https://github.com/jotakar","followers_url":"https://api.github.com/users/jotakar/followers","following_url":"https://api.github.com/users/jotakar/following{/other_user}","gists_url":"https://api.github.com/users/jotakar/gists{/gist_id}","starred_url":"https://api.github.com/users/jotakar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jotakar/subscriptions","organizations_url":"https://api.github.com/users/jotakar/orgs","repos_url":"https://api.github.com/users/jotakar/repos","events_url":"https://api.github.com/users/jotakar/events{/privacy}","received_events_url":"https://api.github.com/users/jotakar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jotakar/domoticz","description":"Open source Home Automation System","fork":true,"url":"https://api.github.com/repos/jotakar/domoticz","forks_url":"https://api.github.com/repos/jotakar/domoticz/forks","keys_url":"https://api.github.com/repos/jotakar/domoticz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jotakar/domoticz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jotakar/domoticz/teams","hooks_url":"https://api.github.com/repos/jotakar/domoticz/hooks","issue_events_url":"https://api.github.com/repos/jotakar/domoticz/issues/events{/number}","events_url":"https://api.github.com/repos/jotakar/domoticz/events","assignees_url":"https://api.github.com/repos/jotakar/domoticz/assignees{/user}","branches_url":"https://api.github.com/repos/jotakar/domoticz/branches{/branch}","tags_url":"https://api.github.com/repos/jotakar/domoticz/tags","blobs_url":"https://api.github.com/repos/jotakar/domoticz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jotakar/domoticz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jotakar/domoticz/git/refs{/sha}","trees_url":"https://api.github.com/repos/jotakar/domoticz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jotakar/domoticz/statuses/{sha}","languages_url":"https://api.github.com/repos/jotakar/domoticz/languages","stargazers_url":"https://api.github.com/repos/jotakar/domoticz/stargazers","contributors_url":"https://api.github.com/repos/jotakar/domoticz/contributors","subscribers_url":"https://api.github.com/repos/jotakar/domoticz/subscribers","subscription_url":"https://api.github.com/repos/jotakar/domoticz/subscription","commits_url":"https://api.github.com/repos/jotakar/domoticz/commits{/sha}","git_commits_url":"https://api.github.com/repos/jotakar/domoticz/git/commits{/sha}","comments_url":"https://api.github.com/repos/jotakar/domoticz/comments{/number}","issue_comment_url":"https://api.github.com/repos/jotakar/domoticz/issues/comments{/number}","contents_url":"https://api.github.com/repos/jotakar/domoticz/contents/{+path}","compare_url":"https://api.github.com/repos/jotakar/domoticz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jotakar/domoticz/merges","archive_url":"https://api.github.com/repos/jotakar/domoticz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jotakar/domoticz/downloads","issues_url":"https://api.github.com/repos/jotakar/domoticz/issues{/number}","pulls_url":"https://api.github.com/repos/jotakar/domoticz/pulls{/number}","milestones_url":"https://api.github.com/repos/jotakar/domoticz/milestones{/number}","notifications_url":"https://api.github.com/repos/jotakar/domoticz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jotakar/domoticz/labels{/name}","releases_url":"https://api.github.com/repos/jotakar/domoticz/releases{/id}","deployments_url":"https://api.github.com/repos/jotakar/domoticz/deployments","created_at":"2016-06-19T20:39:00Z","updated_at":"2016-06-19T20:39:04Z","pushed_at":"2016-06-20T20:41:49Z","git_url":"git://github.com/jotakar/domoticz.git","ssh_url":"git@github.com:jotakar/domoticz.git","clone_url":"https://github.com/jotakar/domoticz.git","svn_url":"https://github.com/jotakar/domoticz","homepage":"http://www.domoticz.com","size":142340,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"domoticz:master","ref":"master","sha":"50afe31ec060d3e0009a3d5840ff342f1e35941b","user":{"login":"domoticz","id":6067010,"avatar_url":"https://avatars.githubusercontent.com/u/6067010?v=3","gravatar_id":"","url":"https://api.github.com/users/domoticz","html_url":"https://github.com/domoticz","followers_url":"https://api.github.com/users/domoticz/followers","following_url":"https://api.github.com/users/domoticz/following{/other_user}","gists_url":"https://api.github.com/users/domoticz/gists{/gist_id}","starred_url":"https://api.github.com/users/domoticz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domoticz/subscriptions","organizations_url":"https://api.github.com/users/domoticz/orgs","repos_url":"https://api.github.com/users/domoticz/repos","events_url":"https://api.github.com/users/domoticz/events{/privacy}","received_events_url":"https://api.github.com/users/domoticz/received_events","type":"Organization","site_admin":false},"repo":{"id":40759227,"name":"domoticz","full_name":"domoticz/domoticz","owner":{"login":"domoticz","id":6067010,"avatar_url":"https://avatars.githubusercontent.com/u/6067010?v=3","gravatar_id":"","url":"https://api.github.com/users/domoticz","html_url":"https://github.com/domoticz","followers_url":"https://api.github.com/users/domoticz/followers","following_url":"https://api.github.com/users/domoticz/following{/other_user}","gists_url":"https://api.github.com/users/domoticz/gists{/gist_id}","starred_url":"https://api.github.com/users/domoticz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domoticz/subscriptions","organizations_url":"https://api.github.com/users/domoticz/orgs","repos_url":"https://api.github.com/users/domoticz/repos","events_url":"https://api.github.com/users/domoticz/events{/privacy}","received_events_url":"https://api.github.com/users/domoticz/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/domoticz/domoticz","description":"Open source Home Automation System","fork":false,"url":"https://api.github.com/repos/domoticz/domoticz","forks_url":"https://api.github.com/repos/domoticz/domoticz/forks","keys_url":"https://api.github.com/repos/domoticz/domoticz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/domoticz/domoticz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/domoticz/domoticz/teams","hooks_url":"https://api.github.com/repos/domoticz/domoticz/hooks","issue_events_url":"https://api.github.com/repos/domoticz/domoticz/issues/events{/number}","events_url":"https://api.github.com/repos/domoticz/domoticz/events","assignees_url":"https://api.github.com/repos/domoticz/domoticz/assignees{/user}","branches_url":"https://api.github.com/repos/domoticz/domoticz/branches{/branch}","tags_url":"https://api.github.com/repos/domoticz/domoticz/tags","blobs_url":"https://api.github.com/repos/domoticz/domoticz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/domoticz/domoticz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/domoticz/domoticz/git/refs{/sha}","trees_url":"https://api.github.com/repos/domoticz/domoticz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/domoticz/domoticz/statuses/{sha}","languages_url":"https://api.github.com/repos/domoticz/domoticz/languages","stargazers_url":"https://api.github.com/repos/domoticz/domoticz/stargazers","contributors_url":"https://api.github.com/repos/domoticz/domoticz/contributors","subscribers_url":"https://api.github.com/repos/domoticz/domoticz/subscribers","subscription_url":"https://api.github.com/repos/domoticz/domoticz/subscription","commits_url":"https://api.github.com/repos/domoticz/domoticz/commits{/sha}","git_commits_url":"https://api.github.com/repos/domoticz/domoticz/git/commits{/sha}","comments_url":"https://api.github.com/repos/domoticz/domoticz/comments{/number}","issue_comment_url":"https://api.github.com/repos/domoticz/domoticz/issues/comments{/number}","contents_url":"https://api.github.com/repos/domoticz/domoticz/contents/{+path}","compare_url":"https://api.github.com/repos/domoticz/domoticz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/domoticz/domoticz/merges","archive_url":"https://api.github.com/repos/domoticz/domoticz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/domoticz/domoticz/downloads","issues_url":"https://api.github.com/repos/domoticz/domoticz/issues{/number}","pulls_url":"https://api.github.com/repos/domoticz/domoticz/pulls{/number}","milestones_url":"https://api.github.com/repos/domoticz/domoticz/milestones{/number}","notifications_url":"https://api.github.com/repos/domoticz/domoticz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/domoticz/domoticz/labels{/name}","releases_url":"https://api.github.com/repos/domoticz/domoticz/releases{/id}","deployments_url":"https://api.github.com/repos/domoticz/domoticz/deployments","created_at":"2015-08-15T12:49:39Z","updated_at":"2016-06-20T17:50:53Z","pushed_at":"2016-06-20T20:41:49Z","git_url":"git://github.com/domoticz/domoticz.git","ssh_url":"git@github.com:domoticz/domoticz.git","clone_url":"https://github.com/domoticz/domoticz.git","svn_url":"https://github.com/domoticz/domoticz","homepage":"http://www.domoticz.com","size":282740,"stargazers_count":343,"watchers_count":343,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":228,"mirror_url":null,"open_issues_count":15,"forks":228,"open_issues":15,"watchers":343,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/domoticz/domoticz/pulls/711"},"html":{"href":"https://github.com/domoticz/domoticz/pull/711"},"issue":{"href":"https://api.github.com/repos/domoticz/domoticz/issues/711"},"comments":{"href":"https://api.github.com/repos/domoticz/domoticz/issues/711/comments"},"review_comments":{"href":"https://api.github.com/repos/domoticz/domoticz/pulls/711/comments"},"review_comment":{"href":"https://api.github.com/repos/domoticz/domoticz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/domoticz/domoticz/pulls/711/commits"},"statuses":{"href":"https://api.github.com/repos/domoticz/domoticz/statuses/188c2517f3489e4fbe3fb1cf7e269624e4493748"}}}}
{"actor":{"display_login":"gizmocuz"}}