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

Track additional (probably customized?) body measurements #875

Closed
financelurker opened this issue Nov 7, 2021 · 11 comments
Closed

Track additional (probably customized?) body measurements #875

financelurker opened this issue Nov 7, 2021 · 11 comments
Milestone

Comments

@financelurker
Copy link

financelurker commented Nov 7, 2021

Use case

I recently stumbled over wger and began using it for tracking my workouts. Since I'm a former Apple Health user to keep track of these things, besides nutrients and workouts there are also other things you can keep track of to have an holistic overview of your health state:

  • sleep-data
  • body measurements
    • BMI
    • waist circumference (cm)
    • body fat percentage (%)
    • height (cm)
    • body temperature (°C)
    • lean body mass (kg)
    • blood pressure (systolic/diastolic)
    • blood glucose level (mg/dL)
    • BMI
    • heart rate (BPM)
    • heart rate variability (ms)
    • resting heart rate (BPM)
    • walking heart rate average (BPM)
    • cardio fitness (VO2 max)
    • ...

And it would be awesome if you can keep track of this data within wger as well - so people, coming from the Apple ecosystem have a viable self-hosted alternative.

Proposal

It's probably a lot of work to implement each measurable compartment here, so my proposal is:

  • provide a generic way of defining additional body measurement types (name, unit and amount of data points per measurement - the latter one is to enable "blood pressure" and sleep-data "from"-"to")
  • provide a generic way for letting people add data to these previously added body measurement type time-series
  • provide a generic overview for each defined body measurement type to show the time-series data
  • provide some pre-defined body measurement types (like the ones above) that users can add without further customization needed

I know, this is probably a huge feature request, but in my point of view this would fit perfectly into wger and I wouldn't want to have a separated other tool for that to completely switch from Apple Health to wger (besides the lack of an official AppStore app).

@financelurker financelurker changed the title Track additional (probably customized?) related health-data Track additional (probably customized?) body measurements Nov 7, 2021
@rolandgeider
Copy link
Member

Hi! This is actually already implemented in the flutter app (more or less the way you describe it), but not yet on the web app. You can define your category and the corresponding unit and then add measurements to it which will be plotted on a chart. All of this is pretty simple at the moment, but the base is there :)

@financelurker
Copy link
Author

financelurker commented Nov 8, 2021

Wow, that's a great start. I guess that this feature requests just boils down to enabling this functionality in the web ui.

Question: Is my assumption right, that I have to build the flutter app for iOS on my own machine, and then upload it to my iPhone with my own certificates? (I know, this question would be better asked in the flutter repository)

@rolandgeider
Copy link
Member

Rather than just enabling it, implement it 😅

Yes, you'll have to build it yourself for now. I'd love to publish it on the app store, but that will have to wait

@jiany18
Copy link

jiany18 commented Apr 30, 2022

Hi! We are trying to implement this function but we've been unable to find the backend codes for this part. Do you have any suggestions what files we should look at in order to fully implement this function?

@rolandgeider
Copy link
Member

Hi @jiany18 !

Currently there isn't any code for this for the web UI, only for the flutter app (e.g. here or here).

We want to implement new features directly in react to allow for more dynamic content, so if you want to help with this (🙌), that's where to start, take a look at the react repo This feature isn't very complicated, there's two endpoints, /api/v2/measurement-category/ and /api/v2/measurement/. The category has a name and a unit, such as "body fat" and "%" and the entries just reference a category and are plotted.

@rolandgeider rolandgeider added this to the 2.2 milestone Aug 19, 2022
@rolandgeider
Copy link
Member

wger-project/react#13

@matteopolleschi
Copy link

What is your strategy eventually? Flutter or react?

@rolandgeider
Copy link
Member

Well, both. The mobile app uses flutter and the website react

@matteopolleschi
Copy link

Have you tried flutter web? Awfully slow but really "write once, deploy everywhere"...

@rolandgeider
Copy link
Member

Yeah. I still feel it's not quite there yet

@rolandgeider
Copy link
Member

Forgot to close this issue. This is available on the web app

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

4 participants