GAE App to fetch data from fitbit in golang
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.
.circleci
.github
app/gae-fitbit-go
docs
pkg
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
README.md

README.md

GAE Fitbit Go

CircleCI

GAE App for getting your own sleep & activity data from fitbit and post it to google calendar.

How to deploy?

Prerequisite

Install golang and gcloud command line.

Register your GAE endpoint in Fitbit Applications and get client id, secret.

Also get client id, secret via Calendar API  |  Google Developers.

Deploy

cd ./app/gae-fitbit-go
cp app.yaml app.private.yaml

# write CLIENT ID, SECRET and CALENDAR ID to env_variables
vim app.private.yaml

gcloud app deploy app.private.yaml 

Edit app.private.yaml like following.

env_variables:
  GAE_FITBIT_GO_FITBIT_CLIENT_ID: xxxx
  GAE_FITBIT_GO_FITBIT_CLIENT_SECRET: xxxxxxx
  GAE_FITBIT_GO_FITBIT_AUTH_REDIRECT_URI: https://xxxxxxxxx.appspot.com/v1/fitbitstoretoken
  GAE_FITBIT_GO_FITBIT_GCAL_SLEEP_CAL_ID: sssssssss@group.calendar.google.com
  GAE_FITBIT_GO_FITBIT_GCAL_ACTIVITY_CAL_ID: aaaaaaaaaa@group.calendar.google.com
  GAE_FITBIT_GO_GCAL_CLIENT_ID: xxxxxxxxx.apps.googleusercontent.com
  GAE_FITBIT_GO_GCAL_CLIENT_SECRET: xxxxxxxxxxxxx
  GAE_FITBIT_GO_GCAL_AUTH_REDIRECT_URI: https://xxxxxxxxx.appspot.com/v1/gcalstoretoken

Set cron setting