{"action":"created","issue":{"url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/85","repository_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health","labels_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/85/labels{/name}","comments_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/85/comments","events_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/85/events","html_url":"https://github.com/dariosalvi78/cordova-plugin-health/issues/85","id":268350172,"number":85,"title":"Wrong value in Calories","user":{"login":"marioshtika","id":3079663,"avatar_url":"https://avatars3.githubusercontent.com/u/3079663?v=4","gravatar_id":"","url":"https://api.github.com/users/marioshtika","html_url":"https://github.com/marioshtika","followers_url":"https://api.github.com/users/marioshtika/followers","following_url":"https://api.github.com/users/marioshtika/following{/other_user}","gists_url":"https://api.github.com/users/marioshtika/gists{/gist_id}","starred_url":"https://api.github.com/users/marioshtika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marioshtika/subscriptions","organizations_url":"https://api.github.com/users/marioshtika/orgs","repos_url":"https://api.github.com/users/marioshtika/repos","events_url":"https://api.github.com/users/marioshtika/events{/privacy}","received_events_url":"https://api.github.com/users/marioshtika/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-25T10:44:52Z","updated_at":"2017-10-25T10:49:30Z","closed_at":null,"author_association":"NONE","body":"Hello, I am using Health App to retrieve activities.\r\n\r\nIn the Health App I have created a record:\r\n\r\n**SAMPLE DETAILS**\r\n```\r\nWorkout Type: Running\r\nDuration: 1 Hour\r\nStart Time: Oct 25, 2017 at 10:00:00 PM\r\nEnd Time: Oct 25, 2017 at 11:00:00 PM\r\nSource: Health\r\nDate Added to Health: Oct 25, 2017 at 10:00:18 PM\r\nWas User Entered: Yes\r\n```\r\n**WORKOUT SAMPLES**\r\n```\r\nTotal Active Energy: 1111 kcal\r\nTotal Walking + Running Distance: 10 km\r\n```\r\n\r\nAnd the returned data are:\r\n```\r\n[\r\n    {\r\n        \"startDate\":\"2017-10-25T10:00:00.000Z\",\r\n        \"endDate\":\"2017-10-25T10:00:00.000Z\",\r\n        \"value\":\"walking\",\r\n        \"unit\":\"activity-Type\"\r\n        \"calories\": 265,\r\n        \"distance\": 10000,\r\n        \"sourceName\": \"Health\",\r\n        \"sourceBundleId\":\"com.apple.Health\",\r\n    }\r\n]\r\n```\r\n\r\nThe calorie value is **265** instead of **1111**\r\n\r\nAm I doing something wrong? "},"comment":{"url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/comments/339290842","html_url":"https://github.com/dariosalvi78/cordova-plugin-health/issues/85#issuecomment-339290842","issue_url":"https://api.github.com/repos/dariosalvi78/cordova-plugin-health/issues/85","id":339290842,"user":{"login":"dariosalviwork","id":10922108,"avatar_url":"https://avatars3.githubusercontent.com/u/10922108?v=4","gravatar_id":"","url":"https://api.github.com/users/dariosalviwork","html_url":"https://github.com/dariosalviwork","followers_url":"https://api.github.com/users/dariosalviwork/followers","following_url":"https://api.github.com/users/dariosalviwork/following{/other_user}","gists_url":"https://api.github.com/users/dariosalviwork/gists{/gist_id}","starred_url":"https://api.github.com/users/dariosalviwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dariosalviwork/subscriptions","organizations_url":"https://api.github.com/users/dariosalviwork/orgs","repos_url":"https://api.github.com/users/dariosalviwork/repos","events_url":"https://api.github.com/users/dariosalviwork/events{/privacy}","received_events_url":"https://api.github.com/users/dariosalviwork/received_events","type":"User","site_admin":false},"created_at":"2017-10-25T10:49:30Z","updated_at":"2017-10-25T10:49:30Z","author_association":"COLLABORATOR","body":"It is obviosulynot returning your workout: start date and end date are 10 AM (not 10 PM to 11 PM) and the activity is walking not running. Check your query: does the time frame include 10 AM?\r\n\r\n"}}
{"actor":{"display_login":"dariosalviwork"}}