Closed ghost closed 3 years ago
That's a good idea. Also, what about sending a PR to add your script in a new contrib/ directory?
Thinking about this a bit more, if someone for example had Last 7 days
selected as their Dashboard duration, it would probably make more sense at that point to list only the last 7 days of sleeps below instead of all the previous sleeps. The full list could be shown in the Statistics page or a new Sleeps page.
For full transparency, this is basically how Sleep as Android's tab view works: there's a Stats tab, which shows summary stats and a list of the previous
This sounds doable, there is already code in the stats activity to do the usual counting (and 2 averages) for different periods, you would do the same type of limiting in the main activity + a new setting for it.
Are you interested in looking in this yourself?
I don't have experience with Android dev in Kotlin/Java (only a bit of Flutter), but I can take a stab at it after I finish with the project I'm currently working on.
This is fixed on master, thanks for your work!
Thanks so much for all the help!
I recently tried importing my years of sleeps from Sleep As Android into Plees[1], and noticed that the Dashboard summary is always set to stats of all previous sleeps. While this made sense initially, I'd personally rather see only stats from just my recent sleeps, eg the past week. Would it be possible to make the Dashboard summary duration customizable, for example to the options provided in the Statistics page (
Last 7 days
,This year
,All time
)?1:
If anybody else needs it, here's the quick Python script I wrote to convert Sleep as Android CSV to Plees CSV: https://gist.github.com/usashiki/d6f918b1d3c8035f3da8a9f51962c417Edit: see contrib/sleep-as-android.py