gps2htmlReport 0.3 → 0.3.1
raw patch · 3 files changed
+15/−17 lines, 3 filesdep +GPXdep ~gpsPVP ok
version bump matches the API change (PVP)
Dependencies added: GPX
Dependency ranges changed: gps
API changes (from Hackage documentation)
Files
- Data/GPS/Gps2HtmlReport/HTMLGenerator.hs +3/−1
- README.md +10/−14
- gps2htmlReport.cabal +2/−2
Data/GPS/Gps2HtmlReport/HTMLGenerator.hs view
@@ -63,7 +63,9 @@ in center tbl -- | The CSS style text to format the rendering of the HTML page. It would be good to replace with Haskell HTML combinator library functions-cssContent = "h1 {font-size: 22px;color: #335577;font-weight: bold; margin-top: 20px;margin-left: 70px;font-family: New Century Schoolbook, serif;} div { width: 900px; margin-top: 50px; margin:0 auto;} table {border-spacing: 20px 0px;} footer {text-align:right; background-color:#EEEEEE; width:900px; margin:0 auto; margin-top: 30px}"++cssContent = "h1 {color: #2C558A; font-weight: normal; font-size: x-large; text-shadow: white 0px 1px 1px; letter-spacing: 0.1em; font-family: 'Gill Sans', 'PT Sans', 'Arial', sans-serif; text-transform: uppercase;} div { width: 900px; margin-top: 50px; margin:0 auto;} table {border-spacing: 20px 0px;} footer {text-align:right; background-color:#EEEEEE; width:900px; margin:0 auto; margin-top: 30px}"+ -- | The area holding the Cairo charts chartTable =
README.md view
@@ -15,21 +15,24 @@ Installation -------------A user first of all needs to install the Haskell Platform. For+A user first of all needs to install the Haskell Platform, and a few additional system packages - **GraphcsMagick** and **Cairo** . For exmaple, on an RPM-based machine, as root:+ ```-># yum install haskell-platform+># yum install haskell-platform GraphicsMagick cairo gtk2hs-buildtools ``` -The **recommended** way to install the `gps2HtmlReport' program, is to-grab it via http://hackage.haskell.org:+The **recommended** way to install the gps2HtmlReport program, is to+grab it via hackage:+ ``` cabal update cabal install gps2htmlReport ``` Or to install the version in the github repository:+ ``` git clone git://github.com/robstewart57/Gps2HtmlReport.git cd Gps2HtmlReport@@ -38,26 +41,18 @@ cabal install ``` -This Haskell program also makes use of the bindings to-**GraphcsMagick** and **Cairo**, and so the necessary system packages-need to be installed, via a Linux package manager.--On an RPM-based package manager, run this command as root:-```-># yum install GraphicsMagick cairo gtk2hs-buildtools-```- Prerequisites ------------- First of all, you need to have your GPS date in a GPX file. There are many gpx exporters available. I use my Android phone to take GPX tracks, with a great application, [OSMTracker](https://code.google.com/p/osmtracker-android/). This-application allows you to export your GPS tracks to GPX.+application allows you to export your GPS tracks to GPX. I am sure that there are plenty of good applications for iOS to perform the same function. And I'm aware that GPS devices allow .gpx files to be extracted from GPS logs. Usage ----- The program will search for all files ending in ".gpx", and for each one, generate a HTML report.+ ``` $ cd $location_of_gpx_files $ ls@@ -84,6 +79,7 @@ ----- If you receive this error when trying to run the program:+ ``` can't load .so/.DLL for: stdc++ (libstdc++.so: cannot open shared object file: No such file or directory) ```
gps2htmlReport.cabal view
@@ -1,5 +1,5 @@ Name: gps2htmlReport-Version: 0.3+Version: 0.3.1 Cabal-Version: >=1.6 Description: Generate a HTML summary report of GPS tracks synopsis: GPS to HTML Summary Report@@ -19,7 +19,7 @@ Main-is: Data/GPS/Gps2HtmlReport/Main.hs library- Build-Depends: base >= 4 && < 5, html, gps >= 0.8.4, time, cairo, Chart, random, data-accessor, colour, xsd >= 0.3.5, filepath, directory, process, gd >= 3000.7.1, bytestring, http-enumerator, hsmagick, cmdargs, tar+ Build-Depends: base >= 4 && < 5, html, gps >= 0.8.4 && < 0.9, time, cairo, Chart, random, data-accessor, colour, xsd >= 0.3.5, filepath, directory, process, gd >= 3000.7.1, bytestring, http-enumerator, hsmagick, cmdargs, tar, GPX == 0.5 Exposed-Modules: Data.GPS.Gps2HtmlReport.HTMLGenerator, Data.GPS.Gps2HtmlReport.JourneyStats, Data.GPS.Gps2HtmlReport.JourneyCharts, Data.GPS.Gps2HtmlReport.DrawOsm source-repository head