cyberjunky / python-garminconnect

Python 3 API wrapper for Garmin Connect to get activity statistics
MIT License
802 stars 132 forks source link

Introduces ability to add blood pressure #169

Closed tchellomello closed 8 months ago

tchellomello commented 8 months ago

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: https://github.com/cyberjunky/python-garminconnect/issues/167

cyberjunky commented 8 months ago

Wow, nice work @tchellomello thanks!