Permalink
Browse files

reformatting

  • Loading branch information...
spier committed Mar 26, 2012
1 parent 11aac21 commit d66c63f3106ee2c997513264ebe64907cafe02af
Showing with 6 additions and 5 deletions.
  1. +6 −5 README.md
View
@@ -1,21 +1,22 @@
# Tesseract for Zugmonitor
-WARNING: If you are looking for Tesseract by Square, please check the [original repository](ttps://github.com/square/tesseract). I have only forked that repository to work on the [gh-pages][] branch, so that I could get the [demo site](http://spier.hu/tesseract) up and running quickly.
+# WARNING
+
+If you are looking for Tesseract by Square, please check the [original repository](ttps://github.com/square/tesseract). I have only forked that repository to work on the [gh-pages][] branch, so that I could get the [demo site](http://spier.hu/tesseract) up and running quickly.
This repository here contains the ruby code for converting the data from Zugmonitor into the CSV format that needed by the [demo site](http://spier.hu/tesseract).
# Steps
1. Create a folder **input_data**
-1. Download some data from the [Zugmonitor API][] and save it in folder **input_data**. e.g. this
+1. Download some data from the [Zugmonitor API][] and save it in folder **input_data**. e.g. this is how I downloaded the data for January - March 2012:
curl "http://zugmonitor.sueddeutsche.de/api/trains/2012-0[1-3]-0[1-9]" -o 2012-0#1-0#2.json
curl "http://zugmonitor.sueddeutsche.de/api/trains/2012-0[1-3]-[10-31]" -o 2012-0#1-#2.json
-
-Then clean up the files that are empty (as e.g. the date 2012-02-31 does does not exist).
-1. run converter
+1. run converter => will create file **trains.csv**
+
bundle install
ruby converter.rb

0 comments on commit d66c63f

Please sign in to comment.