No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
garmin-stress2pixela
testdata
.gitignore
Gopkg.lock
Gopkg.toml
Makefile
README.md
package-lock.json
serverless.yml

README.md

GarminStress2Pixela

GarminStress2Pixela is a serverless tool to export Garmin Connect stress score to your Pixela graph.

screen

Note: The tool is tailored for the image of Garmin Connect 4.12.0.14 on iPhone 7(iOS 12.01). For other environment, you shoud do tuning some part of code & parameters (e.g. position of target values in garmin-stress2pixela/main.go).

Project setup

Requirements

  • Go environment
  • serverless framework

compile & deploy

git clone https://github.com/jagijagijag1/GarminStress2Pixela
cd GarminStress2Pixela

Describe your s3 bucket info & pixela info to serverless.yml

...
functions:
  garmin-stress2pixela:
    handler: bin/garmin-stress2pixela
    events:
      - s3: <bucket-name>
    # you need to fill the followings with your own
    environment:
      PIXELA_USER: <user-id>
      PIXELA_TOKEN: <your-token>
      PIXELA_GRAPH: <your-graph-id-1>
    timeout: 10

Then, run the following.

make
sls deploy