Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Commit

Permalink
MapMyFitness
Browse files Browse the repository at this point in the history
based on #64
which in turn is based on cpfair#7
  • Loading branch information
neilboyd committed Feb 9, 2021
1 parent 140974f commit 7c33d05
Show file tree
Hide file tree
Showing 11 changed files with 405 additions and 3 deletions.
3 changes: 3 additions & 0 deletions tapiriik/local_settings.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ TRAININGPEAKS_CLIENT_SECRET = "####"
TRAININGPEAKS_CLIENT_SCOPE = "cats:cuddle dogs:throw-frisbee"
TRAININGPEAKS_API_BASE_URL = "https://api.trainingpeaks.com"
TRAININGPEAKS_OAUTH_BASE_URL = "https://oauth.trainingpeaks.com"

MAPMYFITNESS_CLIENT_KEY = "####"
MAPMYFITNESS_CLIENT_SECRET = "####"
1 change: 1 addition & 0 deletions tapiriik/services/MapMyFitness/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .mapmyfitness import *
382 changes: 382 additions & 0 deletions tapiriik/services/MapMyFitness/mapmyfitness.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions tapiriik/services/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
Singletracker = SingletrackerService()
from tapiriik.services.Aerobia import AerobiaService
Aerobia = AerobiaService()
from tapiriik.services.MapMyFitness import MapMyFitnessService
MapMyFitness = MapMyFitnessService()

PRIVATE_SERVICES = []
try:
Expand Down
1 change: 1 addition & 0 deletions tapiriik/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def List():
Setio,
Singletracker,
Aerobia,
MapMyFitness,
private_svc_map.get("runsense")
)
return tuple(x for x in svc_list if x is not None)
Expand Down
13 changes: 13 additions & 0 deletions tapiriik/web/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ body {
height:475px;
}

.popover iframe#mapmyfitness {
width:400px;
height:680px;
}

.logo {
width:100%;
position:absolute;
Expand Down Expand Up @@ -604,6 +609,14 @@ p.infotip .close:hover {
vertical-align: middle;
}

.service .button .newOverlay {
position: absolute;
top: 0;
right: 0;
width: 64px;
height: 64px;
}

.service .status {
display: inline-block;
max-height:1em;
Expand Down
Binary file added tapiriik/web/static/img/services/mapmyfitness.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tapiriik/web/static/js/tapiriik.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ tapiriik.OpenServiceConfigPanel = function(svcId){
$("input", destRow).attr("service", i);
$("table", configPanel).append(destRow);
}
if (svcId == "strava" || svcId == "runkeeper" || svcId == "sporttracks" || svcId == "garminconnect" || svcId == "motivato" || svcId == "velohero")
if (svcId == "strava" || svcId == "runkeeper" || svcId == "mapmyfitness" || svcId == "sporttracks" || svcId == "garminconnect" || svcId == "motivato" || svcId == "velohero")
{
if (tapiriik.ServiceInfo[svcId].Config.sync_private)
{
Expand Down
2 changes: 1 addition & 1 deletion tapiriik/web/templates/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h1>Substituting user</h1>
{% endfor %}

{% else %}
<p class="splashPreamble">tapiriik synchronizes your fitness activities between Garmin Connect, Runkeeper, Strava, TrainingPeaks, SportTracks.mobi, Endomondo, RideWithGPS, TrainAsONE, TrainerRoad, Motivato, Velo Hero, Epson RUNSENSE, Dropbox, Smashrun, BeginnerTriathlete, Pulsstory, Singletracker, and SETIO<br/>
<p class="splashPreamble">tapiriik synchronizes your fitness activities between Garmin Connect, Runkeeper, Strava, MapMyFitness, TrainingPeaks, SportTracks.mobi, Endomondo, RideWithGPS, TrainAsONE, TrainerRoad, Motivato, Velo Hero, Epson RUNSENSE, Dropbox, Smashrun, BeginnerTriathlete, Pulsstory, Singletracker, and SETIO<br/>
(your heart rate, cadence, power, and temperature data syncs too)</p>

{% for provider in service_providers %}
Expand Down
2 changes: 1 addition & 1 deletion tapiriik/web/templates/site.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<html>
<head>
<meta http-equiv="Content-Type" value="text/html; charset=UTF-8">
<meta name="Description" content="Automatically synchronize your fitness activities between Garmin Connect, Runkeeper, Strava and more.">
<meta name="Description" content="Automatically synchronize your fitness activities between Garmin Connect, Runkeeper, Strava, MapMyFitness and more.">
<meta name="Keywords" content="automatic, synchronize, sync, update, copy, transfer, download, back up, export, fitness, garmin, garmin connect, runkeeper, strava, endomondo, sporttracks, trainingpeaks, ridewithgps, ride with gps, training peaks, dropbox, trainerroad, motivato, velohero, epson, runsense, path, track, heart rate, free, service, gpx, tcx, health, data, service, cycling, running, swimming, walking, what other activities can I put here?, underwater basket weaving, why are you reading the SEO keywords anyways, move along, nothing to see here">

{% stylesheet 'tapiriik-css' %}
Expand Down

0 comments on commit 7c33d05

Please sign in to comment.