Project

sarin

0.0
No commit activity in last 3 years
No release in over 3 years
Redefine the GPS-Position in your Sigma Log File (SLF) with a synthetic circle arownd the mean postion. This is usfull if want to share your indoor training.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.11
~> 5.0
~> 10.0

Runtime

~> 1.0
~> 1.6
 Project Readme

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.