02-19-2019 17:06
02-19-2019 17:06
I am trying to get a list of a specified day's activities through the web api.
I can see I have several activities (Run, Treadmill) for that day appearing in the dashboard.
I am getting a data return through the web api, using a call like this:
.. however, the "activities" element of the response is empty. (See below)
Have I misunderstood what I should expect from this request? I was expecting to see "Run" and "Treadmill" set as activities, with an associated start and end time.
Strangely, I had first created a manual event for that day, and it DID show up, in both the dashboard and the api data return. I thought there might be a problem with caching at the Fitbit server, so I deleted that manual activity. It immediately disappeared from the returned data through the webapi. But still no sign of my "Run" and "treadmill" events.
One slight slight quirk of this account is that I keep setting it to "English" in the interface and it tries to set itself, and the Charge 2 attached to it, back to Japanese. (I am based in Japan.). I am not sure if this has anything to do with the issue.
This is what I get back from the api call. To repeat, I have "Run" and "treadmill" activities appearing in the dashboard.
[activities] => Array
(
)
[goals] => Array
(
[activeMinutes] => 30
[caloriesOut] => 2575
[distance] => 5
[floors] => 10
[steps] => 10000
)
[summary] => Array
(
[activeScore] => -1
[activityCalories] => 12
[caloriesBMR] => 637
[caloriesOut] => 655
[distances] => Array
(
[0] => Array
(
[activity] => total
[distance] => 0.06
)
[1] => Array
(
[activity] => tracker
[distance] => 0.06
)
[2] => Array
(
[activity] => loggedActivities
[distance] => 0
)
[3] => Array
(
[activity] => veryActive
[distance] => 0
)
[4] => Array
(
[activity] => moderatelyActive
[distance] => 0
)
[5] => Array
(
[activity] => lightlyActive
[distance] => 0.04
)
[6] => Array
(
[activity] => sedentaryActive
[distance] => 0
)
)
[elevation] => 0
[fairlyActiveMinutes] => 0
[floors] => 0
[heartRateZones] => Array
(
[0] => Array
(
[caloriesOut] => 57.47013
[max] => 83
[min] => 30
[minutes] => 37
[name] => Out of Range
)
[1] => Array
(
[caloriesOut] => 1.62345
[max] => 116
[min] => 83
[minutes] => 2
[name] => Fat Burn
)
[2] => Array
(
[caloriesOut] => 0
[max] => 141
[min] => 116
[minutes] => 0
[name] => Cardio
)
[3] => Array
(
[caloriesOut] => 0
[max] => 220
[min] => 141
[minutes] => 0
[name] => Peak
)
)
[lightlyActiveMinutes] => 3
[marginalCalories] => 6
[sedentaryMinutes] => 586
[steps] => 168
[veryActiveMinutes] => 0
)
)
Any thoughts?
Many thanks.
02-26-2019 14:28
02-26-2019 14:28
Hi @nickmay
This appears to be a known issues that tracker activities are not appearing in the Get Daily Activity Summary endpoint.
A potential workaround for this is to retrieve the tracker recorded activities from the Get Activity Log List endpoint, /1/user/-/activities/list.json.
02-26-2019 15:14
02-26-2019 15:14
Hi @Gordon-C
Thank you very much for your response.
I can live with the workaround.
Generally, is there a list of "known issues" anywhere? It saves development time if one knows where the holes are... Also, when an issue is addressed, is that information disseminated? It would like to move back to the "daily" call as soon as I am able.
Thank you
Nick
02-26-2019 16:05
02-26-2019 16:05
I'm not aware of a place known issues are posted. I believe most moderators, including myself, will update the post when a problem is fixed.
02-07-2020 10:30
02-07-2020 10:30
Hi everyone,
A fix for this problem is now available. You should get all recorded activities returned by the Get Daily Activity Summary.
Gordon