Index: doc/app/Makefile
===================================================================
--- doc/app/Makefile	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/Makefile	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,20 @@
+# Minimal makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS    =
+SPHINXBUILD   = sphinx-build
+SPHINXPROJ    = GNUBoat
+SOURCEDIR     = .
+BUILDDIR      = _build
+
+# Put it first so that "make" without argument is like "make help".
+help:
+	@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
+
+.PHONY: help Makefile
+
+# Catch-all target: route all unknown targets to Sphinx using the new
+# "make mode" option.  $(O) is meant as a shortcut for $(SPHINXOPTS).
+%: Makefile
+	@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Index: doc/app/components.rst
===================================================================
--- doc/app/components.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/components.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,16 @@
+GNUBoat Components
+===========
+
+The whole GNUBoat software suite consists of several components. This are
+
+- :doc:`./components/common`: Common applications and shared code
+- :doc:`./components/device`: Everything, running on a GNUBoat device
+- :doc:`./components/mapservice`: Components used to handle uploaded logs and serve the :doc:`./components/mapservice-webclient`:
+- :doc:`./components/mapservice-webclient`: Webclient for uploading logfiles, manage devices and surf the generated maps with water depths
+
+.. toctree::
+   :maxdepth: 1
+   :caption: Contents:
+   :glob:
+   
+   components/*
Index: doc/app/components/common.rst
===================================================================
--- doc/app/components/common.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/components/common.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,11 @@
+Common
+==============
+
+GNUBoat common contains some helpful scripts:
+
+* :doc:`../executables/gnuboat-log-converter`: converts logfiles from NMEA0183 text format into different other formats
+* :doc:`../executables/gnuboat-log-analyser`: creates raster tiles out of logfiles
+* :doc:`../executables/gnuboat-log-uploader`: uploads logfiles to the mapservice
+* :doc:`../executables/gnuboat-data-generator`: creates dummy data to fill the device rrd database
+
+All scripts display a help with ``--help`` and have a manpage with additional information about their usage.
Index: doc/app/components/device.rst
===================================================================
--- doc/app/components/device.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/components/device.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,30 @@
+Device
+==============
+
+The GNUBoat Device contains all components to log the data and interact with the
+user through a web interface. To do so, it consists of three components:
+
+* deviceservice: a webservice serving the webclient and connecting to the mapservice, if a network connection is available
+* gnuboat-daemon: The daemon queriing the NMEA2000 network and GPS dongle, storing the data to the log file and the rrd database, used by te deviceservice
+* The webclient as the user frontend for the gnuboat device. Actually it is served by deviceservice
+
+Production environment
+----------------------
+
+It is advised to install the provided debian package and configure it afterwards
+with help of the delivered puppet configuration.
+
+Development environment
+-----------------------
+
+In this mode, the deviceservice simulates entries to the rrd database. Therefore
+the webclient is fully functional, without the need of a GPS device or a NMEA2000
+network. gnuboat-device-daemon is not needed for the same reason.
+
+To start it in development mode see :doc:`../executables/gnuboat-dev-deviceservice`.
+
+If you want to test the interaction with a mapservice instance, run the mapservice
+in development mode as mentioned below in parallel.
+
+Than go to [http://localhost:8090] to visit the client or read the api specification
+via [http://localhost:8090/deviceservice/v1/ui/].
Index: doc/app/components/mapservice-webclient.rst
===================================================================
--- doc/app/components/mapservice-webclient.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/components/mapservice-webclient.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,12 @@
+Mapservice Webclient
+============================
+
+Run the following command in src/mapservice-webclient (you need node.js installed!):
+
+.. code-block:: console
+
+  npm start
+
+Please start the mapservice also and than visit [http://localhost:8001] in your browser.
+If you started :doc:`../executables/gnuboat-dev-mapservice`` in development mode, as described above, you can
+login with user ``jane`` and ``testpass``.
Index: doc/app/components/mapservice.rst
===================================================================
--- doc/app/components/mapservice.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/components/mapservice.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,15 @@
+Mapservice
+==================
+
+Production environment
+----------------------
+
+It is advised to install the provided debian package and configure it afterwards
+with help of the delivered puppet configuration.
+
+Development environment
+-----------------------
+
+To start it in development mode see :doc:`../executables/gnuboat-dev-mapservice`.
+
+You may access the api specification via [http://localhost:8090/deviceservice/v1/ui/] afterwards.
Index: doc/app/conf.py
===================================================================
--- doc/app/conf.py	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/conf.py	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,176 @@
+# -*- coding: utf-8 -*-
+#
+# Configuration file for the Sphinx documentation builder.
+#
+# This file does only contain a selection of the most common options. For a
+# full list see the documentation:
+# http://www.sphinx-doc.org/en/master/config
+
+# -- Path setup --------------------------------------------------------------
+
+# If extensions (or modules to document with autodoc) are in another directory,
+# add these directories to sys.path here. If the directory is relative to the
+# documentation root, use os.path.abspath to make it absolute, like shown here.
+#
+# import os
+# import sys
+# sys.path.insert(0, os.path.abspath('.'))
+
+
+# -- Project information -----------------------------------------------------
+
+project = 'GNUBoat'
+copyright = '2020, Joachim Langenbach'
+author = 'Joachim Langenbach'
+
+# The short X.Y version
+version = ''
+# The full version, including alpha/beta/rc tags
+release = ''
+
+
+# -- General configuration ---------------------------------------------------
+
+# If your documentation needs a minimal Sphinx version, state it here.
+#
+# needs_sphinx = '1.0'
+
+# Add any Sphinx extension module names here, as strings. They can be
+# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
+# ones.
+extensions = [
+    'sphinx.ext.todo',
+]
+
+# Add any paths that contain templates here, relative to this directory.
+templates_path = ['_templates']
+
+# The suffix(es) of source filenames.
+# You can specify multiple suffix as a list of string:
+#
+# source_suffix = ['.rst', '.md']
+source_suffix = '.rst'
+
+# The master toctree document.
+master_doc = 'index'
+
+# The language for content autogenerated by Sphinx. Refer to documentation
+# for a list of supported languages.
+#
+# This is also used if you do content translation via gettext catalogs.
+# Usually you set "language" from the command line for these cases.
+language = None
+
+# List of patterns, relative to source directory, that match files and
+# directories to ignore when looking for source files.
+# This pattern also affects html_static_path and html_extra_path .
+exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
+
+# The name of the Pygments (syntax highlighting) style to use.
+pygments_style = 'sphinx'
+
+
+# -- Options for HTML output -------------------------------------------------
+
+# The theme to use for HTML and HTML Help pages.  See the documentation for
+# a list of builtin themes.
+#
+html_theme = 'alabaster'
+
+# Theme options are theme-specific and customize the look and feel of a theme
+# further.  For a list of options available for each theme, see the
+# documentation.
+#
+# html_theme_options = {}
+
+# Add any paths that contain custom static files (such as style sheets) here,
+# relative to this directory. They are copied after the builtin static files,
+# so a file named "default.css" will overwrite the builtin "default.css".
+html_static_path = ['_static']
+
+# Custom sidebar templates, must be a dictionary that maps document names
+# to template names.
+#
+# The default sidebars (for documents that don't match any pattern) are
+# defined by theme itself.  Builtin themes are using these templates by
+# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
+# 'searchbox.html']``.
+#
+# html_sidebars = {}
+
+
+# -- Options for HTMLHelp output ---------------------------------------------
+
+# Output file base name for HTML help builder.
+htmlhelp_basename = 'GNUBoatdoc'
+
+
+# -- Options for LaTeX output ------------------------------------------------
+
+latex_elements = {
+    # The paper size ('letterpaper' or 'a4paper').
+    #
+    # 'papersize': 'letterpaper',
+
+    # The font size ('10pt', '11pt' or '12pt').
+    #
+    # 'pointsize': '10pt',
+
+    # Additional stuff for the LaTeX preamble.
+    #
+    # 'preamble': '',
+
+    # Latex figure (float) alignment
+    #
+    # 'figure_align': 'htbp',
+}
+
+# Grouping the document tree into LaTeX files. List of tuples
+# (source start file, target name, title,
+#  author, documentclass [howto, manual, or own class]).
+latex_documents = [
+    (master_doc, 'GNUBoat.tex', 'GNUBoat Documentation',
+     'Joachim Langenbach', 'manual'),
+]
+
+
+# -- Options for manual page output ------------------------------------------
+
+# One entry per manual page. List of tuples
+# (source start file, name, description, authors, manual section).
+man_pages = [
+    ('executables/gnuboat-log-converter', 'gnuboat-log-converter', 'GNUBoat Manual',
+     [author], 1),
+    ('executables/gnuboat-data-generator', 'gnuboat-data-generator', 'GNUBoat Manual',
+     [author], 1),
+    ('executables/gnuboat-device-daemon', 'gnuboat-device-daemon', 'GNUBoat Manual',
+     [author], 1),
+    ('executables/gnuboat-log-analyser', 'gnuboat-log-analyser', 'GNUBoat Manual',
+     [author], 1),
+    ('executables/gnuboat-log-uploader', 'gnuboat-log-uploader', 'GNUBoat Manual',
+     [author], 1),
+    ('executables/gnuboat-dev-deviceservice', 'gnuboat-dev-deviceservice', 'GNUBoat Manual',
+     [author], 1),
+    ('executables/gnuboat-dev-mapservice', 'gnuboat-dev-mapservice', 'GNUBoat Manual',
+     [author], 1),
+]
+
+
+# -- Options for Texinfo output ----------------------------------------------
+
+# Grouping the document tree into Texinfo files. List of tuples
+# (source start file, target name, title, author,
+#  dir menu entry, description, category)
+texinfo_documents = [
+    (master_doc, 'GNUBoat', 'GNUBoat Documentation',
+     author, 'GNUBoat', 'One line description of project.',
+     'Miscellaneous'),
+]
+
+
+# -- Extension configuration -------------------------------------------------
+
+# -- Options for todo extension ----------------------------------------------
+
+# If true, `todo` and `todoList` produce output, else they produce nothing.
+todo_include_todos = True
Index: doc/app/executables.rst
===================================================================
--- doc/app/executables.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,9 @@
+Executables
+===========
+
+.. toctree::
+   :maxdepth: 1
+   :caption: Contents:
+   :glob:
+   
+   executables/*
Index: doc/app/executables/gnuboat-data-generator.rst
===================================================================
--- doc/app/executables/gnuboat-data-generator.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-data-generator.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,36 @@
+gnuboat-data-generator
+======================
+
+Name
+----
+**gnuboat-data-generator** \- Fills the rrd_database with random generated data
+
+Synopsis
+--------
+**gnuboat-data-generator [-h] [-f rrd_database] [-lat-min lat_min] [-lat-max lat_max] [-lon-min lon_min] [-lon-max lon_max] [-l logperiod]**
+
+Description
+-----------
+**gnuboat-data-generator**
+Fills the rrd_database with random generated data within the specified geographical bounds.
+
+Options
+-------
+-h, --help
+  Shows the help
+-f rrd_database, --file rrd_database
+  File path of the rrd database to fill
+-lat-min lat_min, --latitude-min lat_min
+  Minimum latitude generated
+-lat-max lat_max, --latitude-max lat_max
+  Maximum latitude generated
+-lon-min lon_min, --longitude-min lon_min
+  Minimum longitude generated
+-lon-max lon_max, --longitude-max lon_max
+  Maximum longitude generated
+-l logperiod, --logperiod logperiod
+  Period of data generation (seconds between two values)
+
+Examples
+--------
+''gnuboat-data-generator -f /var/lib/gnuboat/gnuboat.rrd -lon-min 10.71 -lon-max 10.77 -lat-min 47.51 -lat-max 47.6''
Index: doc/app/executables/gnuboat-dev-deviceservice.rst
===================================================================
--- doc/app/executables/gnuboat-dev-deviceservice.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-dev-deviceservice.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,35 @@
+gnuboat-dev-deviceservice
+=========================
+
+Name
+----
+**gnuboat-dev-deviceservice** - Runs the gnuboat device service (for development purposes only)
+
+Synopsis
+--------
+**gnuboat-dev-deviceservice [-h]**
+
+Description
+-----------
+In this mode, the deviceservice simulates entries to the rrd database. Therefore
+the webclient is fully functional, without the need of a GPS device or a NMEA2000
+network. gnuboat-device-daemon is not needed for the same reason.
+
+To start it in development mode (with a demo SQLite database):
+
+If you want to test the interaction with a mapservice instance, run the mapservice
+in development mode as mentioned below in parallel.
+
+Than go to [http://localhost:8090] to visit the client or read the api specification
+via [http://localhost:8090/deviceservice/v1/ui/].
+
+Examples
+--------
+.. code-block:: console
+
+  export FLASK_ENV='Development'
+  gnuboat-dev-deviceservice
+
+See Also
+--------
+ * :doc:`gnuboat-dev-mapservice`
Index: doc/app/executables/gnuboat-dev-mapservice-worker.rst
===================================================================
--- doc/app/executables/gnuboat-dev-mapservice-worker.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-dev-mapservice-worker.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,40 @@
+gnuboat-dev-mapservice-worker
+=============================
+
+Name
+----
+**gnuboat-dev-mapservice-worker** - Runs the gnuboat mapservice worker
+
+Synopsis
+--------
+**gnuboat-dev-mapservice-worker [-h]**
+
+Description
+-----------
+To be able to upload logs, you need to launch
+- the broker rabbitmq
+- the result backend memcached
+- the celery worker
+in addition to the :doc:`gnuboat-dev-mapservice`.
+
+Start them with
+.. code-block:: console
+
+  sudo service rabbitmq-server start
+  sudo service memcached start
+  export FLASK_ENV='Development'
+  gnuboat-dev-mapservice-worker
+
+
+Examples
+--------
+.. code-block:: console
+
+  sudo service rabbitmq-server start
+  sudo service memcached start
+  export FLASK_ENV='Development'
+  gnuboat-dev-mapservice-worker
+
+See Also
+--------
+ * :doc:`gnuboat-dev-mapservice`
Index: doc/app/executables/gnuboat-dev-mapservice.rst
===================================================================
--- doc/app/executables/gnuboat-dev-mapservice.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-dev-mapservice.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,46 @@
+gnuboat-dev-mapservice
+=========================
+
+Name
+----
+**gnuboat-dev-mapservice** - Runs the gnuboat mapservice (for development purposes only)
+
+Synopsis
+--------
+**gnuboat-dev-mapservice [-h]**
+
+Description
+-----------
+To start it in development mode (with a demo SQLite database):
+
+.. code-block:: console
+
+  export FLASK_ENV='Development'
+  gnuboat-dev-mapservice
+
+
+To be able to upload logs, you also need to launch
+- the broker rabbitmq
+- the result backend memcached
+- the celery worker
+
+Start them with
+
+.. code-block:: console
+
+  sudo service rabbitmq-server start
+  sudo service memcached start
+  export FLASK_ENV='Development'
+  gnuboat-dev-mapservice-worker
+
+Examples
+--------
+.. code-block:: console
+
+  export FLASK_ENV='Development'
+  gnuboat-dev-mapservice
+
+See Also
+--------
+ - :doc:`gnuboat-dev-deviceservice`
+ - :doc:`gnuboat-dev-mapservice-worker`
Index: doc/app/executables/gnuboat-device-daemon.rst
===================================================================
--- doc/app/executables/gnuboat-device-daemon.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-device-daemon.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,37 @@
+gnuboat-device-daemon
+=====================
+
+Name
+----
+**gnuboat** \- Daemon application, which gathers needed data, fills the rrd database for the gnuboat_webservice and logs all the data into the NMEA 0183 logfile.
+
+Synopsis
+--------
+**gnuboat [-h] [-r rrd_file] [-s shutdown_file] [-lp log_period] [-lv] [-ls] [-d display_period] [-o output]**
+or just run it with systemd
+**service gnuboat start**
+you can configure the daemon with help of the service config file.
+
+Description
+-----------
+**gnuboat**
+gnuboat daemon collects all needed data from gpsd and n2kd. It writes the data into the rrd database file (for the webservice) and also to the NMEA 0183 log file. Per default, the log files could be found at /var/log/gnuboat and the rrd database file is located in /var/lib/gnuboat
+
+Options
+-------
+-h --help
+  Shows the help
+-r rrd_file, --rrdfile rrd_file
+  The file path to the rrd database file used to store the data for the webservice
+-s shutdown_file, --shutdownfile shutdown_file
+  Path to the shutdown request file, used by the webservice to request a shutdown of the system running gnuboat
+-lp log_period, --logperiod log_period
+  Time in seconds to update the logs. (Normally you do not need to change this)
+-lv, --log-verbose
+  Log verbose information to NMEA 0183 log file (Enables -ls and adds RMC sentences, with invalid GPS state, on non fixes (Default off)
+-ls, --log-system-time
+  Add to enable prefixing every logline with the system time (Default off)
+-d display_period, --displayperiod display_period
+  Time in seconds to update the display (Normally you do not need to change this)
+-o output, --output output
+  Directory where the log files are stored (e.g. the NMEA 0183 log files)
Index: doc/app/executables/gnuboat-log-analyser.rst
===================================================================
--- doc/app/executables/gnuboat-log-analyser.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-log-analyser.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,37 @@
+gnuboat-log-analyser
+====================
+
+Name
+----
+**gnuboat-log-analyser** \- Generates the digital terrain model from gnuboat logfiles
+
+Synopsis
+--------
+**gnuboat-log-analyser [-h] [-v] [-p POINTS_MIN] [-z ZOOM_RANGE ZOOM_RANGE] [--high-res] [-m RASTER_FILE_SIZE_MAX] [-k] input_file_path output_directory**
+
+Description
+-----------
+**gnuboat-log-analyser**
+Generates the digital terrain model from gnuboat logfiles
+
+Options
+-------
+input_file_path
+  JSON file with logfiles and correction data to be processed
+output_directory
+  Write the Digital Terrain Model into this directory (output)
+-h, --help
+  show this help message and exit
+-v, --verbose
+  Print some statistics of the input and result datasets
+-p POINTS_MIN, --points-min POINTS_MIN
+  Minimum points per 100 squaremetre is needed to create
+  a valid depth information
+-z ZOOM_RANGE ZOOM_RANGE, --zoomlevels ZOOM_RANGE ZOOM_RANGE
+  Creates tiles for the specified range of zoomlevels
+--high-res
+  Creates tiles with 512 pixel per tile additionally to the 256 pixel per tile tiles
+-m RASTER_FILE_SIZE_MAX, --raster_file_max RASTER_FILE_SIZE_MAX
+  Maximum size of temporary raster Tifs for tile generation in MB
+-k, --keep-empty
+  Do not skip empty tiles (=move only one empty tile into place), when moving tiles into target directory
Index: doc/app/executables/gnuboat-log-converter.rst
===================================================================
--- doc/app/executables/gnuboat-log-converter.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-log-converter.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,38 @@
+gnuboat-log-converter
+=====================
+
+Name
+-----
+**gnuboat-log-converter** \- Converts NMEA 0183 logs (e.g. provided by gnuboat) into other formats
+
+Synopsis
+--------
+**gnuboat-log-converter [-h] [-f output_format] [-i errors_ignore] [--strip-time] input_file_path output_file_path**
+
+Description
+-----------
+**gnuboat-log-converter**
+Converts NMEA 0183 logs into other formats (e.g. CSV, GPX) or could be used to remove the timestamp in front of the NMEA sentences (NMEA0183 to NMEA0183 conversion)
+
+Options
+-------
+input_file_path
+  File to be converted (input)
+output_file_path
+  Write the converted content to this file (output)
+-h, --help
+  Shows the help
+-f output_format, --format output_format
+  Format to convert the input content to
+-i, --ignore-errors
+  Ignore any errors reading the log file
+--strip-time
+  Removes timestamp in front of the nmea sentence, if it is there
+
+Examples
+--------
+``gnuboat-log-converter -f CSV nmea0183-2017-09-11.log  /tmp/2017-09-11.csv``
+
+``gnuboat-log-converter -f GPX nmea0183-2017-09-11.log  /tmp/2017-09-11.gpx``
+
+``gnuboat-log-converter --strip-time -f NMEA0183 nmea0183-2017-09-11.log  /tmp/2017-09-11.log``
Index: doc/app/executables/gnuboat-log-uploader.rst
===================================================================
--- doc/app/executables/gnuboat-log-uploader.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-log-uploader.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,28 @@
+gnuboat-log-uploader
+====================
+
+Name
+----
+**gnuboat-log-uploader** \- Uploads logfiles to GNUBoat server
+
+Synopsis
+--------
+**gnuboat-log-uploader [-h] [-b BASE_URL] [-k API_KEY] [-d] [input_file_path]**
+
+Description
+-----------
+**gnuboat-log-uploader**
+Uploads logfiles to GNUBoat server
+
+Options
+-------
+input_file_path
+  JSON file with water, gauge, device, logfiles and correction data to be processed
+-h, --help
+  Show this help message and exit
+-b BASE_URL, --base BASE_URL
+  Server base url to upload the logsfiles to
+-k API_KEY, --api-key API_KEY
+  API Key for authorisation
+-d, --devices
+  Display a list of your devices on the server
Index: doc/app/executables/gnuboat-splashscreen.rst
===================================================================
--- doc/app/executables/gnuboat-splashscreen.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/executables/gnuboat-splashscreen.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,22 @@
+gnuboat-splashscreen
+====================
+
+Name
+----
+**gnuboat-splashscreen** \- Used to display an image on an EPD driven display during boot and shutdown
+
+Synopsis
+--------
+**gnuboat-splashscreen [-h] -i PATH_TO_IMAGE_TO_DISPLAY**
+
+Description
+-----------
+**gnuboat-splashscreen**
+Used to display an image on a display supported by the EPD driver during startup and shutdown of the system. It is handled by an according systemd service gnuboat-splashscreen.
+
+Options
+-------
+-h, --help
+  Shows the help
+-i --image image
+  Path to the image, which should be displayed
Index: doc/app/index.rst
===================================================================
--- doc/app/index.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/index.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,64 @@
+.. GNUBoat documentation master file, created by
+   sphinx-quickstart on Wed Dec 30 12:53:11 2020.
+   You can adapt this file completely to your liking, but it should at least
+   contain the root `toctree` directive.
+
+Welcome to GNUBoat's documentation!
+===================================
+
+GNUBoat software suite allows you to
+
+- measure the water depth on any devices (vessles, ...) with a water depth
+  sensor in an NMEA2000 network
+  (component :doc:`./components/device`)
+- provides a webservice with OpenAPI defined interface to upload and
+  analyse the measurements
+  (component :doc:`./components/mapservice`)
+- a webclient to explore the maps with the analysed water depths on it
+  (component :doc:`./components/mapservice-webclient`)
+
+On top there is a component with common stuff (:doc:`./components/common`).
+
+Interoperability
+----------------
+
+GNUBoat is fully open sourced and free software. To be as interoperable as possible,
+it is designed with a webservice architecture utilizing OpenAPI specifications. This
+specification describes the interfaces provided by the webservices and used by the clients
+in a human readable, but machine parseable way. So any other service or client could be
+easily integrated in the GNUBoat environment. **We like to happliy welcome any new clients and services!**
+You find the API descriptions in the _api_ folder of this repository or via the integrated
+swagger-editor within the webservices. Just call the e.g. [http://localhost:8080/mapservice/v1/ui/]
+after starting the mapservice in development mode like described below. If you have any
+questions, your welcome to contact us.
+
+.. toctree::
+   :maxdepth: 2
+   :caption: Contents:
+
+   install
+   components
+   executables
+
+
+Indices and tables
+------------------
+
+* :ref:`genindex`
+* :ref:`modindex`
+* :ref:`search`
+
+Additional Resources
+--------------------
+
+- `GNUBoats development area <https://trac.engsas.de/gnuboat>`_
+- `GNUBoats git repository <https://svn.engsas.de/gnuboat>`_
+
+Related projects
+----------------
+
+- http://www.openseamap.org
+- http://openstreetmap.org
+- https://github.com/canboat/canboat
+- https://github.com/zalando/connexion
+
Index: doc/app/install.rst
===================================================================
--- doc/app/install.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/install.rst	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,12 @@
+Installation
+============
+
+You first need to generate the server stub with help of openapi-generator.
+To be able to do that, you need to have java installed. Than run:
+
+.. code-block:: console
+
+  # to generade the all modules from the API specs
+  buildhelpers/configure 
+  # to install the module
+  python setup.py install
Index: doc/app/make.bat
===================================================================
--- doc/app/make.bat	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
+++ doc/app/make.bat	(revision 8b538689a888d5a00b49b5ea0c1e9c679d7012fd)
@@ -0,0 +1,36 @@
+@ECHO OFF
+
+pushd %~dp0
+
+REM Command file for Sphinx documentation
+
+if "%SPHINXBUILD%" == "" (
+	set SPHINXBUILD=sphinx-build
+)
+set SOURCEDIR=.
+set BUILDDIR=_build
+set SPHINXPROJ=GNUBoat
+
+if "%1" == "" goto help
+
+%SPHINXBUILD% >NUL 2>NUL
+if errorlevel 9009 (
+	echo.
+	echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
+	echo.installed, then set the SPHINXBUILD environment variable to point
+	echo.to the full path of the 'sphinx-build' executable. Alternatively you
+	echo.may add the Sphinx directory to PATH.
+	echo.
+	echo.If you don't have Sphinx installed, grab it from
+	echo.http://sphinx-doc.org/
+	exit /b 1
+)
+
+%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
+goto end
+
+:help
+%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS%
+
+:end
+popd
Index: doc/app/man/man1/gnuboat-data-generator.1
===================================================================
--- doc/app/man/man1/gnuboat-data-generator.1	(revision f0ec72402a00a25e5a71a662c0843236359d399c)
+++ 	(revision )
@@ -1,33 +1,0 @@
-.TH gnuboat-data-generator 1 "September 2017" "GnuBoat Manual" "GnuBoat Manual"
-
-.SH NAME
-gnuboat-data-generator \- Fills the rrd_database with random generated data
-
-.SH SYNOPSIS
-.B gnuboat-data-generator [-h] [-f rrd_database] [-lat-min lat_min] [-lat-max lat_max] [-lon-min lon_min] [-lon-max lon_max] [-l logperiod]
-
-.SH DESCRIPTION
-.B gnuboat-data-generator
-Fills the rrd_database with random generated data within the specified geographical bounds.
-
-.SH OPTIONS
-.IP "-h, --help"
-Shows the help
-.IP "-f rrd_database, --file rrd_database"
-File path of the rrd database to fill
-.IP "-lat-min lat_min, --latitude-min lat_min"
-Minimum latitude generated
-.IP "-lat-max lat_max, --latitude-max lat_max"
-Maximum latitude generated
-.IP "-lon-min lon_min, --longitude-min lon_min"
-Minimum longitude generated
-.IP "-lon-max lon_max, --longitude-max lon_max"
-Maximum longitude generated
-.IP "-l logperiod, --logperiod logperiod"
-Period of data generation (seconds between two values)
-
-.SH EXAMPLES
-.IP "gnuboat-data-generator -f /var/lib/gnuboat/gnuboat.rrd -lon-min 10.71 -lon-max 10.77 -lat-min 47.51 -lat-max 47.6"
-
-.SH AUTHOR
-EngSaS - Langenbach <info@engsas.de>
Index: doc/app/man/man1/gnuboat-log-converter.1
===================================================================
--- doc/app/man/man1/gnuboat-log-converter.1	(revision f0ec72402a00a25e5a71a662c0843236359d399c)
+++ 	(revision )
@@ -1,33 +1,0 @@
-.TH gnuboat-log-converter 1 "September 2017" "GnuBoat Manual" "GnuBoat Manual"
-
-.SH NAME
-gnuboat-log-converter \- Converts NMEA 0183 logs (e.g. provided by gnuboat) into other formats
-
-.SH SYNOPSIS
-.B gnuboat-log-converter [-h] [-f output_format] [-i errors_ignore] [--strip-time] input_file_path output_file_path
-
-.SH DESCRIPTION
-.B gnuboat-log-converter
-Converts NMEA 0183 logs into other formats (e.g. CSV, GPX) or could be used to remove the timestamp in front of the NMEA sentences (NMEA0183 to NMEA0183 conversion)
-
-.SH OPTIONS
-.IP "input_file_path"
-File to be converted (input)
-.IP "output_file_path"
-Write the converted content to this file (output)
-.IP "-h, --help"
-Shows the help
-.IP "-f output_format, --format output_format"
-Format to convert the input content to
-.IP "-i, --ignore-errors"
-Ignore any errors reading the log file
-.IP "--strip-time"
-Removes timestamp in front of the nmea sentence, if it is there
-
-.SH EXAMPLES
-.IP "gnuboat-log-converter -f CSV nmea0183-2017-09-11.log  /tmp/2017-09-11.csv"
-.IP "gnuboat-log-converter -f GPX nmea0183-2017-09-11.log  /tmp/2017-09-11.gpx"
-.IP "gnuboat-log-converter --strip-time -f NMEA0183 nmea0183-2017-09-11.log  /tmp/2017-09-11.log"
-
-.SH AUTHOR
-EngSaS - Langenbach <info@engsas.de>
Index: doc/app/man/man1/gnuboat-splashscreen.1
===================================================================
--- doc/app/man/man1/gnuboat-splashscreen.1	(revision f0ec72402a00a25e5a71a662c0843236359d399c)
+++ 	(revision )
@@ -1,20 +1,0 @@
-.TH gnuboat-splashscreen 1 "September 2017" "GnuBoat Manual" "GnuBoat Manual"
-
-.SH NAME
-gnuboat-splashscreen \- Used to display an image on an EPD driven display during boot and shutdown
-
-.SH SYNOPSIS
-.B gnuboat-splashscreen [-h] -i PATH_TO_IMAGE_TO_DISPLAY
-
-.SH DESCRIPTION
-.B gnuboat-splashscreen
-Used to display an image on a display supported by the EPD driver during startup and shutdown of the system. It is handled by an according systemd service gnuboat-splashscreen.
-
-.SH OPTIONS
-.IP "-h, --help"
-Shows the help
-.IP "-i --image image"
-Path to the image, which should be displayed
-
-.SH AUTHOR
-EngSaS - Langenbach <info@engsas.de>
Index: doc/app/man/man1/gnuboat.1
===================================================================
--- doc/app/man/man1/gnuboat.1	(revision f0ec72402a00a25e5a71a662c0843236359d399c)
+++ 	(revision )
@@ -1,35 +1,0 @@
-.TH gnuboat 1 "September 2017" "GnuBoat Manual" "GnuBoat Manual"
-
-.SH NAME
-gnuboat \- Daemon application, which gathers needed data, fills the rrd database for the gnuboat_webservice and logs all the data into the NMEA 0183 logfile.
-
-.SH SYNOPSIS
-.B gnuboat [-h] [-r rrd_file] [-s shutdown_file] [-lp log_period] [-lv] [-ls] [-d display_period] [-o output]
-or just run it with systemd
-.B service gnuboat start
-you can configure the daemon with help of the service config file.
-
-.SH DESCRIPTION
-.B gnuboat
-gnuboat daemon collects all needed data from gpsd and n2kd. It writes the data into the rrd database file (for the webservice) and also to the NMEA 0183 log file. Per default, the log files could be found at /var/log/gnuboat and the rrd database file is located in /var/lib/gnuboat
-
-.SH OPTIONS
-.IP "-h --help"
-Shows the help
-.IP "-r rrd_file, --rrdfile rrd_file"
-The file path to the rrd database file used to store the data for the webservice
-.IP "-s shutdown_file, --shutdownfile shutdown_file"
-Path to the shutdown request file, used by the webservice to request a shutdown of the system running gnuboat
-.IP "-lp log_period, --logperiod log_period"
-Time in seconds to update the logs. (Normally you do not need to change this)
-.IP "-lv, --log-verbose"
-Log verbose information to NMEA 0183 log file (Enables -ls and adds RMC sentences, with invalid GPS state, on non fixes (Default off)
-.IP "-ls, --log-system-time"
-Add to enable prefixing every logline with the system time (Default off)
-.IP "-d display_period, --displayperiod display_period"
-Time in seconds to update the display (Normally you do not need to change this)
-.IP "-o output, --output output"
-Directory where the log files are stored (e.g. the NMEA 0183 log files)
-
-.SH AUTHOR
-EngSaS - Langenbach <info@engsas.de>
