Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sarin

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sarin

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 29 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc