wger-project / wger

Self hosted FLOSS fitness/workout, nutrition and weight tracker
https://wger.de
GNU Affero General Public License v3.0
3.2k stars 585 forks source link

Posting Data through API #690

Closed yannickh2 closed 3 years ago

yannickh2 commented 3 years ago

Use case

I want to automatically track my workouts with self developed hardware like gyroscope and weight sensors connected to a microcontroller.

Is your feature request related to a problem? No

Proposal

Is the API open for posting data like repetitions and weights lifted, or bodyweight? I saw how to get those data this data but did not find if there is a way to post data too. If its not open maybe you can open it? Can you point me in the right direction? I am just going to install my own version on a server to experiment.

Best, Yannick

rolandgeider commented 3 years ago

Hi! That sounds cool!

Sure, you can post new entries to /api/v2/workoutlog/ For the different units, take a look at /api/v2/setting-repetitionunit/ and /api/v2/setting-weightunit/ (and of course if you host your own instance, you can edit the list).

yannickh2 commented 3 years ago

Okay great. Will try! Thank you!