Rebrand as "Kraftakt".
authorFlorian Forster <ff@octo.it>
Tue, 16 Jan 2018 16:11:39 +0000 (17:11 +0100)
committerFlorian Forster <ff@octo.it>
Tue, 16 Jan 2018 16:11:39 +0000 (17:11 +0100)
fitbit/fitbit.go
gfit/gfit.go
gfitsync.go

index a24f98e..f534906 100644 (file)
@@ -22,7 +22,7 @@ var oauth2Config = &oauth2.Config{
        ClientID:     "@FITBIT_CLIENT_ID@",
        ClientSecret: "@FITBIT_CLIENT_SECRET@",
        Endpoint:     oauth2fitbit.Endpoint,
-       RedirectURL:  "https://fitbit-gfit-sync.appspot.com/fitbit/grant",
+       RedirectURL:  "https://kraftakt.octo.it/fitbit/grant",
        Scopes:       []string{"activity", "heartrate", "profile"},
 }
 
index 7540bf4..d447bc0 100644 (file)
@@ -28,7 +28,7 @@ var oauthConfig = &oauth2.Config{
        ClientID:     "@GOOGLE_CLIENT_ID@",
        ClientSecret: "@GOOGLE_CLIENT_SECRET@",
        Endpoint:     oauth2google.Endpoint,
-       RedirectURL:  "https://fitbit-gfit-sync.appspot.com/google/grant",
+       RedirectURL:  "https://kraftakt.octo.it/google/grant",
        Scopes: []string{
                fitness.FitnessActivityWriteScope,
                fitness.FitnessBodyWriteScope,
index beb44d7..f12e7f4 100644 (file)
@@ -82,7 +82,11 @@ func indexHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, u
        }
        haveGoogleToken := err == nil
 
-       fmt.Fprintln(w, "<html><body><h1>Fitbit to Google Fit sync</h1>")
+       fmt.Fprintln(w, "<html><head><title>Kraftakt</title></head>")
+       fmt.Fprintln(w, "<body><h1>Kraftakt</h1>")
+
+       fmt.Fprintln(w, "<p><strong>Kraftakt</strong> copies your <em>Fitbit</em> data to <em>Google Fit</em>, seconds after you sync.</p>")
+
        fmt.Fprintf(w, "<p>Hello %s</p>\n", user.Current(ctx).Email)
        fmt.Fprintln(w, "<ul>")
 
@@ -94,7 +98,7 @@ func indexHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, u
        }
        fmt.Fprintln(w, "</li>")
 
-       fmt.Fprint(w, "<li>Google: ")
+       fmt.Fprint(w, "<li>Google Fit: ")
        if haveGoogleToken {
                fmt.Fprint(w, `<strong style="color: DarkGreen;">Authorized</strong>`)
        } else {