Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MapMyFitness #554

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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