Code Monkey home page Code Monkey logo

siva's Introduction

SIVA

Satellites may send gps data using pink laser beams...

Overview

SIVA stands for Simple Interface to Visualize your Activities. It's also the French translation of VALIS, the title of a Philip K. Dick novel.

This program parses a *.fit file, and outputs a html file. It uses:

  • fit-parser ruby gem for parsing
  • flot JavaScript library for graphe rendering
  • Leaflet JavaScript library for map rendering

WARNING

SIVA is still a work in progress. Keep a backup of your *.fit files somewhere else if you try this program.

Requirement

  • install ruby with your package manager (tested with ruby 2.1)
  • install the gem fit-parser:
# gem install fit-parser

Installation

Clone the SIVA repository:

$ cd ~ && git clone https://github.com/Leaflet/Leaflet.git

Clone the flot repository:

cd ~/SIVA/data/js && git clone https://github.com/flot/flot.git

Configuration

Edit the file ~/SIVA/bin/parser.rb, and modify the variable workouts_dir, e.g.:

# directory where the workouts will be saved
workouts_dir = "~/my_awesome_workout_dir"

Usage

~/SIVA/bin/parser.rb <fit_file> <suffix>

e.g.

~/SIVA/bin/parser.rb /mnt/my-file.fit Paris

This will create a directory named my-file_Paris in workouts_dir, containing all files needed to display the workout.

You can open workouts_dir/my-file_Paris/index.html in any modern browser (please avoid IE6).

Demonstration page

A demonstration page is available here.

siva's People

Contributors

st3rk avatar

Stargazers

François FANUEL avatar

Watchers

 avatar

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.