Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display detailed data #15

Open
dhdurgee opened this issue Jul 12, 2024 · 12 comments
Open

display detailed data #15

dhdurgee opened this issue Jul 12, 2024 · 12 comments

Comments

@dhdurgee
Copy link

I would like to suggest that clicking on the displayed current total, for example cumulative daily steps, should open a display of a chart of individual measurements comprising that total.

@jlai
Copy link
Owner

jlai commented Jul 12, 2024

Will look into it, but I'll need to get approval from Fitbit to access intraday (hourly/minute granularity) data

@dhdurgee
Copy link
Author

dhdurgee commented Jul 16, 2024 via email

@jlai
Copy link
Owner

jlai commented Jul 16, 2024

Thanks for the outreach to Fitbit developer support. I'm not quite ready to submit the site for approval for intraday (have some travel plans coming up so I'll be a bit busy) but glad to hear they're potentially receptive. I'll also remove some of the unneeded permissions as mentioned in the email thread.

@dhdurgee
Copy link
Author

dhdurgee commented Jul 17, 2024 via email

@jlai
Copy link
Owner

jlai commented Jul 17, 2024

To avoid any legal issues, we shouldn't be looking at any scripts or source code from the old website. We should try to work with Fitbit developer relations to add or document any APIs we need.

@jlai
Copy link
Owner

jlai commented Jul 23, 2024

Got intraday approval from Fitbit. Right now it's used in the activity history view to show calories/minute, will look into adding it to the dashboard later.

@dhdurgee
Copy link
Author

I see you have made progress on this issue. As a suggestion, perhaps clicking on the tile should default to showing details as opposed to an overview. Perhaps a setting to choose?

I see an hour;y detail when I select it. I believe the data is stored at a 6, 12 or 15 minute granularity for my flex 2. Perhaps you could display the individual entries with labeling at the hourly level. Perhaps granularity displayed should be a setting.

Thank you for your work on this.

@jlai
Copy link
Owner

jlai commented Jul 30, 2024

The data is available in 1 minute, 5 minute, and 15 minute intervals, but I'm finding the graph is very spiky and difficult to read on a 24-hour timescale.

1min-intraday

5 minutes is a bit better although "steps per 5 minutes" is a little weird to label compared to steps/minute or steps/hour. The calories chart uses 5 minute intervals and displays the per-minute average.

5min-intraday

I guess ideally there'd be a zoom/pan feature although the graph library I'm using doesn't support it out of the box.

@jlai
Copy link
Owner

jlai commented Jul 30, 2024

I've updated the tile details dialog to remember which tab you had opened

@dhdurgee
Copy link
Author

dhdurgee commented Aug 2, 2024

Perhaps you could display the 1/6/15 in the same manner you do the hourly data as vertical bars but of course narrower than the hourly display. It would work for me to display the the hourly data sized as it is now with the hour summary lightly shaded and the 1/6/15 data displayed on top of it in dark shading.

It might also make sense to allow a click on a day in the main display and have it open up the details.

@jlai
Copy link
Owner

jlai commented Aug 5, 2024

The charts library that I'm using seems to have issues (very bad performance, difficult to read) trying to squeeze that many vertical bars into a bar chart. It's fine when the same data is rendered as a line chart.

Some of it could be solved by using visx (another chart library that allows much more customization) but I'm not sure it's worth writing a custom chart right now when a line chart works just as well (or likely better when it comes to tooltips).

@Xebeth
Copy link
Contributor

Xebeth commented Aug 23, 2024

I had a thought occur to me, but I don't know if it would be helpful or not. My suspicion is that the Fitbit web dashboard made use of the same web API that you are.  Assuming that this is so, I would expect you to be able to retrieve their code via the Wayback Machine or other internet archive of their website from the day before they took it down.  It might not be trivial to do so, as scripts might be on another server, but they should likewise be archived. Does this sound worth pursuing? Dave

This thread is a bit old now but I don't think the dashboard could have been scraped by the Wayback Machine since it was behind a login page to begin with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants