Giter Club home page Giter Club logo

Comments (3)

ihewitt avatar ihewitt commented on July 26, 2024

Cool, that will be awesome!
I'll build and have a play too, let me know when you're happy for me to pull.

Yes the csv file format is compatible with the windows poolmate software, I think there is scope to add custom fields into the end of the string if necessary without breaking compatibility.

OK in order of your question marks:
Unit = "m", although the new file format doesn't seem to include this any more, I need to change to yards and test what happens.
totaldistance = yup, distance in units.
speed = time to cover 100m.
effic = swolf(ish) although poolmate uses a slightly different algorithm to garmin. I was going to change this to a configuration option to toggle the two types. Poolmate uses number of "stroke cycles" i.e. one arm, in the calculation. Garmin uses "stroke count" i.e. both arms. I'll add a detailed comment to the code and look at
rate = strokes per minute.
rest = rest time for this set.

Re stroke style, there is a field in the data for this, currently always "Free", but since that's all I swim and the poolmate doesn't autodetect, I never bothered wiring it through! No reason not to though, I'll check what the set of strings the poolmate software uses and add a comment/enum.
Also this is only per set, not per length, so a bit of creativity might be needed to add per length style data in the same file.

also note/beware - at the moment the software doesn't write out the SwimHR line format correctly, it only reads it, I need to finish that and commit it ASAP.

re the FIT file parser, is that available as a self contained library we can pull in/link against or is embedding the source the best/easiest option?

I wonder if antfs-cli could be launched to automate the synchronization.

Cheers,

from poolviewer.

jerome-labidurie avatar jerome-labidurie commented on July 26, 2024

Thanks for the detailed answer.

I will update ExerciseSet doc with your precisions.

For stroke style per length I will try to keep compatibility by sticking to "SwimHR" type and adding fields at the end of the CSV line. As I don't have/use the poolmate software I will rely on your tests to check if it's not breaking the data file.

For the FIT parser, I wish it was a library. Unfortunately the code is really dependent of the antpm-fit2gpx tool. It would need quite work to change that. So it's really the easy/fast way to import it in poolviewer. I might do this work in the future, but ... todo list is already huge :)

For auto synchronization, I'd like to include that in poolviewer too. I wasn't able to use antpm-downloader yet (I have to create an issue) so I'm using antfs-cli for the moment. I surely will create a patch for poolviewer, but only in a second time. For now, FIT import is my priority.

I might be able to get a first version ready to pull next week or so. I will keep you updated.

Best regards

from poolviewer.

ihewitt avatar ihewitt commented on July 26, 2024

I've tweaked the fileformat for live support slightly, moving the fields to try to maintain compatibility with the windows app. The file format should automatically update itself on save, but probably worth keeping a backup copy of the csv file just in case.

from poolviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.