Hi Rob, Thank you for your interest and sorry for my very late response.
> came across pytrainer when I tried to find a training tool which uses my > gpx files (instead of writing my own). It really looks good: it's py and > customizable, that's all you need... ;) I like to implement some of my > features (like heatmap, maintenance track etc.) into it. Sounds great! > But for now I like to support my devices (not directly but by gpx file) > because the only minor was the limited support for it (garmin only). At > our mtb club we have 3 main types of devices: garmin, mio and teasy. And > I like to add the missing myself, can you give me a quick howto guide? Unfortunately not a complete one [1] > I'm thinking about a plugin, I'm not sure how it works (yet) but will > find it out (I see nothing happening, no extra menu, when I enable for > example the garmin-gpx plugin). but anyhow the issue is the slightly > different formatted gpx file. If it is a valid gpx file, then it would be a good idea to make current plugin more flexible to parse it properly, right? > Those differences are: > > 1. the track (trk) section contains the <extensions> section with all > total information like distance/max-min > altitude/cadence/heartrate/duration. Does it have a custom namespace or something similar to support fields inside extension? > 2. each track point (trkpt) contains also the <extensions> section with > as garmin does, only the tag name differs: > <speed>6.368823</speed> > <course>-0.213778</course> > <acceleration>-0.046299</acceleration> > <cadence>0</cadence> > <heartrate>0</heartrate> I see... > So my first thought is to copy the garmin-gpx plugin and rename it and > modify it to deal with those differences. What do you think? I remember in the past we have something similar related to some Nokia device and I can't remember how it works from top of my head, but after seeing [2], I barely remember a process to import files (either from local machine or attached device) and then apply some filter (located in "imports" directory) to parse data successfully. So under "plugins" directory we would store ways to fetch data and under "imports" the way to parse retrieved data. I am sorry I can't provide a more detailed description. Long time since I touch pytrainer's code but I hope it helps. 0:) Best regards, David [1] https://github.com/pytrainer/pytrainer/wiki/Development-guide#plugin-development [2] https://github.com/pytrainer/pytrainer/blob/master/imports/file_gpxplusNokia.py ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Pytrainer-devel mailing list Pytrainer-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytrainer-devel