Skip to content

Conversation

@tchellomello
Copy link
Contributor

Provides the ability to set a blood pressure data

from getpass import getpass
import garminconnect

email = input("Enter email address: ")
password = getpass("Enter password: ")

garmin = garminconnect.Garmin(email, password)
garmin.login()


// passing a timestamp
In [4]: garmin.set_blood_pressure(112,72,72,timestamp="2023-10-16T23:10:15")
Out[4]: <Response [200]>

// using `datetime.now()`
In [5]: garmin.set_blood_pressure(113,73,73)
Out[5]: <Response [200]>

// passing notes
In [6]: garmin.set_blood_pressure(114,74,74,notes="testing via api")
Out[6]: <Response [200]>

image

Fixes: #167

Provides the ability to set a blood pressure data

Fixes: cyberjunky#167

Signed-off-by: Marcelo Moreira de Mello <[email protected]>
@cyberjunky
Copy link
Owner

Wow, nice work @tchellomello thanks!

@cyberjunky cyberjunky merged commit 46123d2 into cyberjunky:master Oct 28, 2023
@tchellomello tchellomello deleted the issue-167-set-blood-pressure branch October 29, 2023 02:35
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

Successfully merging this pull request may close these issues.

[RFE] - Upload/add blood pressure data

2 participants