Git Product home page Git Product logo

workouts_page's Introduction

screenshot

简体中文 | English

This project is based on running_page and adds support for multi sports types. Follow the steps in the origin repo to deploy.

New Features

  1. support multi sports types, like Ride/Hike/Swim/Rowing
  2. support new apps
  3. support RoadTrip(GoogleMaps), show Road Trip on maps

Custom your page

Change Sports Color

  • Modify Ride Color: RIDE_COLOR in src/utils/const.js

Add Sports Type

  • Modify TYPE_DICT & MAPPING_TYPE in scripts/config.py

  • Add Type Name and add it into RUN_TITLES in src/utils/const.js

  • Modify colorFromType & titleForRun in src/utils/util.js

  • see commit


Codoon(咕咚)

Get your Codoon data
python3(python) scripts/codoon_sync.py ${your mobile or email} ${your password}

example:

python3(python) scripts/codoon_sync.py 13333xxxx xxxx

use --with-gpx flag to save your gpx data

use --from-auth-token flag to login by refresh_token&user_id

image

example:

python3(python) scripts/codoon_sync.py 54bxxxxxxx fefxxxxx-xxxx-xxxx --from-auth-token

Xingzhe(行者)

Get your Xingzhe data
python3(python) scripts/xingzhe_sync.py ${your mobile or email} ${your password}

example:

python3(python) scripts/xingzhe_sync.py 13333xxxx xxxx

use --with-gpx flag to save your gpx data

use --from-auth-token flag to login by refresh_token&user_id

image

example:

python3(python) scripts/xingzhe_sync.py w0xxx 185000 --from-auth-token

RoadTrip(GoogleMaps)

Import KML from Google Maps
  1. Create a map in Google Maps (keep the route in one Layer)
  2. Export Layer to KML file
  3. Rename the file to import.kml and place it into scripts
  4. Modify scripts/kml2polyline.py, fill in the trip info
# TODO modify here
# trip name
track.name = "2020-10 Tibet Road Trip"
# start/end time Year-Month-Day-Hour-Minute
track.start_time = datetime(2020, 9, 29, 10, 0)
track.end_time = datetime(2020, 10, 10, 18, 0)
# total distance
distance = 4000  # KM
# total days
days = 12
# average daily distance
hours_per_day = 6
  1. Execute in Console
python3(python) scripts\kml2polyline.py

Special thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.