https://github.com/lswiderski/bodycomposition-webapi
restful webapi for garmin connect body compositon import
https://github.com/lswiderski/bodycomposition-webapi
cloud garmin garmin-api garmin-connect golang serverless
Last synced: 8 months ago
JSON representation
restful webapi for garmin connect body compositon import
- Host: GitHub
- URL: https://github.com/lswiderski/bodycomposition-webapi
- Owner: lswiderski
- License: apache-2.0
- Created: 2022-02-06T17:33:43.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-10-19T19:09:14.000Z (over 2 years ago)
- Last Synced: 2023-10-20T00:28:21.376Z (over 2 years ago)
- Topics: cloud, garmin, garmin-api, garmin-connect, golang, serverless
- Language: Go
- Homepage:
- Size: 65.4 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bodycomposition-webapi
Bodycomposition-WebAPI is RESTful api to manage body composition data in
Garmin Connect Cloud (https://connect.garmin.com) from Web API
# OUTDATED - See a new version
New working alternative (19.10.2023) (https://github.com/lswiderski/yet-another-garmin-connect-client)
## Inspiration
Inspired by [bodycomposition cli version](https://github.com/davidkroell/bodycomposition).
## Use case
- Run it in docker or Serverless function as middleware for importing values from your scale to Garmin Connect Cloud.
- Used in Mobile App: https://github.com/lswiderski/mi-scale-exporter
## Installation
- DockerHub
```dockerfile
docker pull lswiderski/bodycomposition-webapi:latest
```
- Source code build
```dockerfile
docker build .
```
## Usage
- See [api.rest](https://github.com/lswiderski/bodycomposition-webapi/blob/main/api.rest) file
- Endpoint
```http
/upload
```
- payload:
```json
{
"timeStamp": -1, // -1 for Time Now, or UNIX timestamp
"weight": 67, // kg
"percentFat": 14.9, // %
"percentHydration": 58.4, // %
"boneMass": 3.3, // kg
"muscleMass": 55.1, // kg
"visceralFatRating": 7,
"physiqueRating": 5,
"metabolicAge": 25,
"bodyMassIndex": 20.8,
"email": "{{email}}",
"password": "{{password}}"
}
```
## Coffee