简体中文 | English
This project is based on running_page, add support for multi sports type. Follow the steps in origin repo to deploy.
- support multi sports type, like Ride/Hike/Swim/Rowing
- support new apps
- Codoon(咕咚) (Couldn't automate for its limitation from server side)
- Xingzhe(行者)
- support RoadTrip(GoogleMaps) , show Road Trip in maps
- Modify Ride Color:
RIDE_COLOR
insrc/utils/const.js
- Modify
TYPE_DICT
inscripts/config.py
- Modify
colorFromType
insrc/utils/util.js
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 datause
--from-auth-token
flag to login by refresh_token&user_id
example:
python3(python) scripts/codoon_sync.py 54bxxxxxxx fefxxxxx-xxxx-xxxx --from-auth-token
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 datause
--from-auth-token
flag to login by refresh_token&user_id
example:
python3(python) scripts/xingzhe_sync.py w0xxx 185000 --from-auth-token
Import KMl from Google Maps
- Create map in Google Maps (keep route in one Layer)
- Export Layer to KML file
- Rename the file to
import.kml
and place it intoscripts
- 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
- Execute in Console
python3(python) scripts\kml2polyline.py
- @yihong0618 for Awesome running_page , Great Thanks