PlottingCGM
Python code for plotting strava data on google maps with the path being colored based on CGM data. This can be easily modified to combine CGM data with data from other GPS programs as well.
Install / Use
/learn @jasonbehrstock/PlottingCGMREADME
PlottingCGM
Copyright 2017 Jason Behrstock jason.behrstock@gmail.com Released under the GPL.
PlottingStrava combines information from Strava or other GPX data and a Dexcom CGM (via Clarity) and plots the Strava bike/run data on google maps with the BGs displayed via color (Ranging from red as low through green, to blue as high).
Input: GPX file for GPS data and CSV file from Dexcom Clarity.
Output: html file to display the map.
Required packages: datetime gmplot gpxpy tzwhere
(a few more if you want to use mathplotlib instead of gmplot)
Other Comments:
- There are (unused) auxiliary functions in the strava_import.py file which, if desired, allow one to easily import data from a CSV file instead of a box file.
- There are (unused) auxiliary functions in the plotting.py file which allow one to plot using mathplotlib instead of google maps. This version allows one to display the BG range with a color bar legend. One could easily add openstreetmap data to this map. I’d like to find a way to add the color bar to the google maps data (any ideas on this are welcome).
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
