Git Product home page Git Product logo

sarin's Introduction

Sarin - Sigma ROX Indoor Cycling Converter

Sarin is a small Ruby command line tool to redefine the GPS-Positions of Sigma Log File (SLF). The GPS-Positions to match the recorded speed and distance in circle around the mean GPS-Position in the log.

This is useful if you have done an indoor training. In this case the speed and distance will be recorded correctly. But the GPS-Positions will be all on one place (or near on place). If you share the log to to Strava there will be shown wrong speeds and distance. Because Strava will recalculate these values from the GPS-Positions. Thus if you redefine the position with this tool you get a nice log on Strava

Original Log: 0.3km

Orginal Log

Converted Log: 24km

Converted Log

Installation

To install just run this command in your terminal

$ gem install sarin

Usage

To redefine the GPS-Positions in a Sigma Log File simple run this command:

$ sarin my-log.slf

This will overwrite the GPS-Positions in your file. If you don't want to overwirte the file you can specify an output file name:

$ sarin -o new-pos.slf my-log.slf

You also can redefine the GPS-Positions in more than one file. Simple specify a list of files. The following command will redefine the GPS-Position of all slf-Files in the current directory.

$ sarin -o new-pos.slf \*.slf

If you don't want to share your real trainings position. You can also specify a custom location and a custom radius of the activity circle. The Position has to in the format latitude,longitude e.g.: 52.514538,13.350111

$ sarin -r 200 -p "52.514538, 13.350111" my-log.slf

The tool is also packed with some nice default locations. Try it out!

$ sarin -c Berlin my-log.slf

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hesstobi/sarin.

License

The gem is available as open source under the terms of the MIT License.

sarin's People

Contributors

hesstobi avatar

Watchers

 avatar  avatar

sarin's Issues

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.