Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Cowboy Heatmap

A Strava-style heatmap of every ride your Cowboy e-bike has ever recorded, built from your own data and rendered as a single self-contained HTML file.

map

Brighter and thicker means more separate trips down that stretch of road. The white core is the commute; the crimson capillaries are the streets ridden once.


Quick start

git clone https://github.com/mmmago/cowboyheatmap.git
cd cowboyheatmap

python3 make_heatmap.py

It asks for your Cowboy email and password (the same ones you use in the app), downloads your rides, and writes heatmap.html. Open that in any browser.

The first run downloads your entire history, might take some time.

Options

python3 make_heatmap.py --skip-fetch          # rebuild from cache, no network
python3 make_heatmap.py --grid 5              # finer detail (heavier file)
python3 make_heatmap.py --grid 20             # coarser, lighter

The lines carry a flow overlay: bright dashes crawling along each stretch in the direction the ride was actually made. Toggle it with FLOW ON/OFF in the panel.

--grid is the main dial. It sets how finely GPS points are bucketed when counting. Below about 20 m the grid gets finer than urban GPS error, so repeated passes down one street stop sharing a cell and the road smears into parallel lines; much above 30 m and neighbouring streets start merging into one.

Privacy

routes.geojson is a precise record of everywhere you have cycledcowboy_cache/token.json holds a live API token.

The scripts never send your credentials anywhere except Cowboy's own login endpoint, and the password is read with getpass, so it is not echoed and never written to disk.

Notes

The routes have been extracted following cowboybike-strava-sync.

Basemap tiles are OpenFreeMap (keyless), rendered with MapLibre GL. Map data © OpenStreetMap contributors.

Not affiliated with or endorsed by Cowboy.

About

Fetch your cowboy bike route data and displays it on a strava-like heat map

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages