Skip to content

ZonghaoWang/running_page

Repository files navigation

screenshot

简体中文 | English

This project is based on running_page, add support for multi sports type. Follow the steps in origin repo to deploy.

New Features

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

Custom your page

Change Sports Color

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

Add Sports Type

  • Modify TYPE_DICT in scripts/config.py
  • Modify colorFromType in src/utils/util.js

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 map in Google Maps (keep 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 distacnce
hours_per_day = 6
  1. Execute in Console
python3(python) scripts\kml2polyline.py

Special thanks

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published