Changeset 8ab397c for doc


Ignore:
Timestamp:
Feb 7, 2021, 12:16:17 PM (6 years ago)
Author:
Joachim Langenbach <joachim.langenbach@…>
Branches:
debian/bullseye, master
Children:
b1f0e30
Parents:
4c267d7
Message:

Improved and adapted documentation for angular 11 and angular cli build

Location:
doc/app
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • doc/app/components.rst

    r4c267d7 r8ab397c  
    11GNUBoat Components
    2 ==================
     2------------------
    33
    44The whole GNUBoat software suite consists of several components. This are
    … …  
    66- :doc:`./components/common`: Common applications and shared code
    77- :doc:`./components/device`: Everything, running on a GNUBoat device
    8 - :doc:`./components/mapservice`: Components used to handle uploaded logs and serve the :doc:`./components/mapservice-webclient`:
    9 - :doc:`./components/mapservice-webclient`: Webclient for uploading logfiles, manage devices and surf the generated maps with water depths
     8- :doc:`./components/mapservice`: Components used to handle uploaded logs
     9  and serve the :doc:`./components/mapservice-webclient`:
     10- :doc:`./components/mapservice-webclient`: Webclient for uploading logfiles,
     11  manage devices and surf the generated maps with water depths
    1012
    1113.. toctree::
  • doc/app/components/common.rst

    r4c267d7 r8ab397c  
    11Common
    2 ==============
     2======
    33
    44GNUBoat common contains some helpful scripts:
    55
    6 * :doc:`../executables/gnuboat-log-converter`: converts logfiles from NMEA0183 text format into different other formats
    7 * :doc:`../executables/gnuboat-log-analyser`: creates raster tiles out of logfiles
    8 * :doc:`../executables/gnuboat-log-uploader`: uploads logfiles to the mapservice
     6* :doc:`../executables/gnuboat-log-converter`: converts logfiles from NMEA0183
     7  text format into different other formats
     8* :doc:`../executables/gnuboat-log-analyser`: creates raster tiles out of
     9  logfiles
     10* :doc:`../executables/gnuboat-log-uploader`: uploads logfiles to the
     11  mapservice
    912
    10 All scripts display a help with ``--help`` and have a manpage with additional information about their usage.
     13All scripts display a help with ``--help`` and have a manpage with additional
     14information about their usage.
  • doc/app/components/device.rst

    r4c267d7 r8ab397c  
    11Device
    2 ==============
     2======
    33
    4 The GNUBoat Device contains all components to log the data and interact with the
    5 user through a web interface. To do so, it consists of three components:
     4The GNUBoat Device contains all components to log the data and interact with
     5the user through a web interface. To do so, it consists of three components:
    66
    7 * deviceservice: a webservice serving the webclient and connecting to the mapservice, if a network connection is available
    8 * 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
    9 * The webclient as the user frontend for the gnuboat device. Actually it is served by deviceservice
     7* deviceservice: a webservice serving the webclient and connecting to the
     8  mapservice, if a network connection is available
     9* gnuboat-daemon: The daemon queriing the NMEA2000 network and GPS dongle,
     10  storing the data to the log file and the rrd database, used by te
     11  deviceservice
     12* The webclient as the user frontend for the gnuboat device. Actually it is
     13  served by deviceservice
    1014
    1115Production environment
    1216----------------------
    1317
    14 It is advised to install the provided debian package and configure it afterwards
    15 with help of the delivered puppet configuration.
     18It is advised to install the provided debian package and configure it
     19afterwards with help of the delivered puppet configuration.
    1620
    1721Development environment
    1822-----------------------
    1923
    20 In this mode, the deviceservice simulates entries to the rrd database. Therefore
    21 the webclient is fully functional, without the need of a GPS device or a NMEA2000
    22 network. gnuboat-device-daemon is not needed for the same reason.
     24If not already done, you need to build and install the python module.
     25Make sure, that all needed dependencies are installed.
    2326
    24 To start it in development mode see :doc:`../executables/gnuboat-dev-deviceservice`.
     27.. code-block:: console
    2528
    26 If you want to test the interaction with a mapservice instance, run the mapservice
    27 in development mode as mentioned below in parallel.
     29  python setup.py install
    2830
    29 Than go to [http://localhost:8090] to visit the client or read the api specification
    30 via [http://localhost:8090/deviceservice/v1/ui/].
     31In this mode, the deviceservice simulates entries to the rrd database.
     32Therefore the webclient is fully functional, without the need of a GPS
     33device or a NMEA2000 network. gnuboat-device-daemon is not needed for the
     34same reason.
     35
     36To start it in development mode see
     37:doc:`../executables/gnuboat-dev-deviceservice`.
     38
     39If you want to test the interaction with a mapservice instance, run the
     40mapservice in development mode as mentioned below in parallel.
     41
     42Than go to http://localhost:8090 to visit the client or read the api
     43specification via http://localhost:8090/deviceservice/v1/ui/.
  • doc/app/components/mapservice-webclient.rst

    r4c267d7 r8ab397c  
    11Mapservice Webclient
    2 ============================
     2====================
    33
    4 Run the following command in src/mapservice-webclient (you need node.js installed!):
     4Production environment
     5----------------------
     6
     7The process to install the webapp in production mode contains the steps
     8 1. build the nodejs app
     9 2. copy the result to a webserver
     10 3. configure the webserver to serve the webapp
     11
     12Building the webapp
     13*******************
     14
     15We recommend to use our debian package. If it is not applicable for you,
     16follow this instructions to set it up on your own.
     17
     18For this commands to work, you need node.js to be installed.
     19
     20At first you need to install all node dependencies. To do so, execute the
     21following code in ``src/mapservice-webclient``:
    522
    623.. code-block:: console
    724
    8   npm start
     25  npm install
    926
    10 Please start the mapservice also and than visit [http://localhost:8001] in your browser.
    11 If you started :doc:`../executables/gnuboat-dev-mapservice` in development mode, as described above, you can
    12 login with user ``jane`` and ``testpass``.
     27To build the webapp run the following code in the same folder:
     28
     29.. code-block:: console
     30
     31  ng build --prod
     32
     33Copy the result to a webserver
     34******************************
     35
     36Configure the webserver
     37***********************
     38
     39Development environment
     40-----------------------
     41
     42The first step is to install all the needed dependencies. To do so run the
     43following command in ``src/mapservice-webclient`` (you need node.js
     44installed!) to install all node dependencies:
     45
     46.. code-block:: console
     47
     48  npm install
     49
     50To start the development server run:
     51
     52.. code-block:: console
     53
     54  ng serve
     55 
     56Please start the mapservice also and than visit http://localhost:4200
     57in your browser. If you started :doc:`../executables/gnuboat-dev-mapservice`
     58in development mode, you can login with user ``jane`` and ``testpass``.
  • doc/app/components/mapservice.rst

    r4c267d7 r8ab397c  
    11Mapservice
    2 ==================
     2==========
    33
    44Production environment
    55----------------------
    66
    7 It is advised to install the provided debian package and configure it afterwards
    8 with help of the delivered puppet configuration.
     7It is advised to install the provided debian package and configure it
     8afterwards with help of the delivered puppet configuration.
    99
    1010Development environment
    1111-----------------------
    1212
    13 To start it in development mode see :doc:`../executables/gnuboat-dev-mapservice`.
     13If not already done, you need to build and install the python module.
     14Make sure, that all needed dependencies are installed.
    1415
    15 You may access the api specification via [http://localhost:8090/deviceservice/v1/ui/] afterwards.
     16.. code-block:: console
     17
     18  python setup.py install
     19
     20To start it in development mode see
     21:doc:`../executables/gnuboat-dev-mapservice`.
     22
     23You may access the api specification via
     24http://localhost:8090/deviceservice/v1/ui/ afterwards.
  • doc/app/executables.rst

    r4c267d7 r8ab397c  
    11Executables
    2 ===========
     2-----------
    33
    44.. toctree::
  • doc/app/executables/gnuboat-data-generator.rst

    r4c267d7 r8ab397c  
    44Name
    55----
     6
    67**gnuboat-data-generator** \- Fills the rrd_database with random generated data
    78
    89Synopsis
    910--------
    10 **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]**
     11
     12**gnuboat-data-generator [-h] [-f rrd_database] [-lat-min lat_min]
     13[-lat-max lat_max] [-lon-min lon_min] [-lon-max lon_max] [-l logperiod]**
    1114
    1215Description
    1316-----------
     17
    1418**gnuboat-data-generator**
    15 Fills the rrd_database with random generated data within the specified geographical bounds.
     19Fills the rrd_database with random generated data within the specified
     20geographical bounds.
    1621
    1722Options
    1823-------
     24
    1925-h, --help
    2026  Shows the help
     27
    2128-f rrd_database, --file rrd_database
    2229  File path of the rrd database to fill
     30
    2331-lat-min lat_min, --latitude-min lat_min
    2432  Minimum latitude generated
     33
    2534-lat-max lat_max, --latitude-max lat_max
    2635  Maximum latitude generated
     36
    2737-lon-min lon_min, --longitude-min lon_min
    2838  Minimum longitude generated
     39
    2940-lon-max lon_max, --longitude-max lon_max
    3041  Maximum longitude generated
     42
    3143-l logperiod, --logperiod logperiod
    3244  Period of data generation (seconds between two values)
    … …  
    3446Examples
    3547--------
    36 ''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''
     48
     49''gnuboat-data-generator -f /var/lib/gnuboat/gnuboat.rrd -lon-min 10.71
     50-lon-max 10.77 -lat-min 47.51 -lat-max 47.6''
  • doc/app/executables/gnuboat-dev-deviceservice.rst

    r4c267d7 r8ab397c  
    44Name
    55----
    6 **gnuboat-dev-deviceservice** - Runs the gnuboat device service (for development purposes only)
     6
     7**gnuboat-dev-deviceservice** - Runs the gnuboat device service (for
     8development purposes only)
    79
    810Synopsis
    911--------
     12
    1013**gnuboat-dev-deviceservice [-h]**
    1114
    1215Description
    1316-----------
    14 In this mode, the deviceservice simulates entries to the rrd database. Therefore
    15 the webclient is fully functional, without the need of a GPS device or a NMEA2000
    16 network. gnuboat-device-daemon is not needed for the same reason.
     17
     18In this mode, the deviceservice simulates entries to the rrd database.
     19Therefore the webclient is fully functional, without the need of a GPS
     20device or a NMEA2000 network. gnuboat-device-daemon is not needed for
     21the same reason.
    1722
    1823To start it in development mode (with a demo SQLite database):
    1924
    20 If you want to test the interaction with a mapservice instance, run the mapservice
    21 in development mode as mentioned below in parallel.
     25If you want to test the interaction with a mapservice instance, run the
     26mapservice in development mode as mentioned below in parallel.
    2227
    23 Than go to [http://localhost:8090] to visit the client or read the api specification
    24 via [http://localhost:8090/deviceservice/v1/ui/].
     28Than go to http://localhost:8090 to visit the client or read the api
     29specification via http://localhost:8090/deviceservice/v1/ui/.
    2530
    2631Examples
    2732--------
     33
    2834.. code-block:: console
    2935
    … …  
    3339See Also
    3440--------
     41
    3542 * :doc:`gnuboat-dev-mapservice`
  • doc/app/executables/gnuboat-dev-mapservice-worker.rst

    r4c267d7 r8ab397c  
    44Name
    55----
     6
    67**gnuboat-dev-mapservice-worker** - Runs the gnuboat mapservice worker
    78
    89Synopsis
    910--------
     11
    1012**gnuboat-dev-mapservice-worker [-h]**
    1113
    1214Description
    1315-----------
     16
    1417To be able to upload logs, you need to launch
    1518- the broker rabbitmq
    … …  
    2932Examples
    3033--------
     34
    3135.. code-block:: console
    3236
    … …  
    3842See Also
    3943--------
     44
    4045 * :doc:`gnuboat-dev-mapservice`
  • doc/app/executables/gnuboat-dev-mapservice.rst

    r4c267d7 r8ab397c  
    44Name
    55----
    6 **gnuboat-dev-mapservice** - Runs the gnuboat mapservice (for development purposes only)
     6
     7**gnuboat-dev-mapservice** - Runs the gnuboat mapservice (for development
     8purposes only)
    79
    810Synopsis
    911--------
     12
    1013**gnuboat-dev-mapservice [-h]**
    1114
    1215Description
    1316-----------
     17
    1418To start it in development mode (with a demo SQLite database):
    1519
    … …  
    3640Examples
    3741--------
     42
    3843.. code-block:: console
    3944
    … …  
    4348See Also
    4449--------
     50
    4551 - :doc:`gnuboat-dev-deviceservice`
    4652 - :doc:`gnuboat-dev-mapservice-worker`
  • doc/app/executables/gnuboat-device-daemon.rst

    r4c267d7 r8ab397c  
    44Name
    55----
    6 **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.
     6
     7**gnuboat** \- Daemon application, which gathers needed data, fills the rrd
     8database for the gnuboat_webservice and logs all the data into the NMEA 0183
     9logfile.
    710
    811Synopsis
    912--------
    10 **gnuboat [-h] [-r rrd_file] [-s shutdown_file] [-lp log_period] [-lv] [-ls] [-d display_period] [-o output]**
     13
     14**gnuboat [-h] [-r rrd_file] [-s shutdown_file] [-lp log_period] [-lv] [-ls]
     15[-d display_period] [-o output]**
    1116or just run it with systemd
    1217**service gnuboat start**
    … …  
    1520Description
    1621-----------
     22
    1723**gnuboat**
    18 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
     24gnuboat daemon collects all needed data from gpsd and n2kd. It writes the data
     25into the rrd database file (for the webservice) and also to the NMEA 0183 log
     26file. Per default, the log files could be found at /var/log/gnuboat and the
     27rrd database file is located in /var/lib/gnuboat
    1928
    2029Options
    2130-------
    22 -h --help
     31
     32-h, --help
    2333  Shows the help
     34
    2435-r rrd_file, --rrdfile rrd_file
    25   The file path to the rrd database file used to store the data for the webservice
     36  The file path to the rrd database file used to store the data for the
     37  webservice
     38
    2639-s shutdown_file, --shutdownfile shutdown_file
    27   Path to the shutdown request file, used by the webservice to request a shutdown of the system running gnuboat
     40  Path to the shutdown request file, used by the webservice to request a
     41  shutdown of the system running gnuboat
     42
    2843-lp log_period, --logperiod log_period
    2944  Time in seconds to update the logs. (Normally you do not need to change this)
     45
    3046-lv, --log-verbose
    31   Log verbose information to NMEA 0183 log file (Enables -ls and adds RMC sentences, with invalid GPS state, on non fixes (Default off)
     47  Log verbose information to NMEA 0183 log file (Enables -ls and adds RMC
     48  sentences, with invalid GPS state, on non fixes (Default off)
     49
    3250-ls, --log-system-time
    3351  Add to enable prefixing every logline with the system time (Default off)
     52
    3453-d display_period, --displayperiod display_period
    35   Time in seconds to update the display (Normally you do not need to change this)
     54  Time in seconds to update the display (Normally you do not need to change
     55  this)
     56
    3657-o output, --output output
    3758  Directory where the log files are stored (e.g. the NMEA 0183 log files)
  • doc/app/executables/gnuboat-log-analyser.rst

    r4c267d7 r8ab397c  
    44Name
    55----
    6 **gnuboat-log-analyser** \- Generates the digital terrain model from gnuboat logfiles
     6
     7**gnuboat-log-analyser** \- Generates the digital terrain model from gnuboat
     8logfiles
    79
    810Synopsis
    911--------
    10 **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**
     12
     13**gnuboat-log-analyser [-h] [-v] [-p POINTS_MIN] [-z ZOOM_RANGE ZOOM_RANGE]
     14[--high-res] [-m RASTER_FILE_SIZE_MAX] [-k] input_file_path output_directory**
    1115
    1216Description
    1317-----------
     18
    1419**gnuboat-log-analyser**
    1520Generates the digital terrain model from gnuboat logfiles
    … …  
    1722Options
    1823-------
     24
    1925input_file_path
    2026  JSON file with logfiles and correction data to be processed
     27
    2128output_directory
    2229  Write the Digital Terrain Model into this directory (output)
     30
    2331-h, --help
    2432  show this help message and exit
     33
    2534-v, --verbose
    2635  Print some statistics of the input and result datasets
     36
    2737-p POINTS_MIN, --points-min POINTS_MIN
    2838  Minimum points per 100 squaremetre is needed to create
    2939  a valid depth information
     40
    3041-z ZOOM_RANGE ZOOM_RANGE, --zoomlevels ZOOM_RANGE ZOOM_RANGE
    3142  Creates tiles for the specified range of zoomlevels
     43
    3244--high-res
    33   Creates tiles with 512 pixel per tile additionally to the 256 pixel per tile tiles
     45  Creates tiles with 512 pixel per tile additionally to the 256 pixel per tile
     46  tiles
     47
    3448-m RASTER_FILE_SIZE_MAX, --raster_file_max RASTER_FILE_SIZE_MAX
    3549  Maximum size of temporary raster Tifs for tile generation in MB
     50
    3651-k, --keep-empty
    37   Do not skip empty tiles (=move only one empty tile into place), when moving tiles into target directory
     52  Do not skip empty tiles (=move only one empty tile into place), when moving
     53  tiles into target directory
  • doc/app/executables/gnuboat-log-converter.rst

    r4c267d7 r8ab397c  
    33
    44Name
    5 -----
    6 **gnuboat-log-converter** \- Converts NMEA 0183 logs (e.g. provided by gnuboat) into other formats
     5----
     6
     7**gnuboat-log-converter** \- Converts NMEA 0183 logs (e.g. provided by
     8gnuboat) into other formats
    79
    810Synopsis
    911--------
    10 **gnuboat-log-converter [-h] [-f output_format] [-i errors_ignore] [--strip-time] input_file_path output_file_path**
     12
     13**gnuboat-log-converter [-h] [-f output_format] [-i errors_ignore]
     14[--strip-time] input_file_path output_file_path**
    1115
    1216Description
    1317-----------
     18
    1419**gnuboat-log-converter**
    15 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)
     20Converts NMEA 0183 logs into other formats (e.g. CSV, GPX) or could be used to
     21remove the timestamp in front of the NMEA sentences (NMEA0183 to NMEA0183
     22conversion)
    1623
    1724Options
    1825-------
     26
    1927input_file_path
    2028  File to be converted (input)
     29
    2130output_file_path
    2231  Write the converted content to this file (output)
     32
    2333-h, --help
    2434  Shows the help
     35
    2536-f output_format, --format output_format
    2637  Format to convert the input content to
     38
    2739-i, --ignore-errors
    2840  Ignore any errors reading the log file
     41
    2942--strip-time
    3043  Removes timestamp in front of the nmea sentence, if it is there
    … …  
    3245Examples
    3346--------
     47
    3448``gnuboat-log-converter -f CSV nmea0183-2017-09-11.log  /tmp/2017-09-11.csv``
    3549
    3650``gnuboat-log-converter -f GPX nmea0183-2017-09-11.log  /tmp/2017-09-11.gpx``
    3751
    38 ``gnuboat-log-converter --strip-time -f NMEA0183 nmea0183-2017-09-11.log  /tmp/2017-09-11.log``
     52``gnuboat-log-converter --strip-time -f NMEA0183 nmea0183-2017-09-11.log
     53/tmp/2017-09-11.log``
  • doc/app/executables/gnuboat-log-uploader.rst

    r4c267d7 r8ab397c  
    44Name
    55----
     6
    67**gnuboat-log-uploader** \- Uploads logfiles to GNUBoat server
    78
    89Synopsis
    910--------
     11
    1012**gnuboat-log-uploader [-h] [-b BASE_URL] [-k API_KEY] [-d] [input_file_path]**
    1113
    1214Description
    1315-----------
     16
    1417**gnuboat-log-uploader**
    1518Uploads logfiles to GNUBoat server
    … …  
    1720Options
    1821-------
     22
    1923input_file_path
    2024  JSON file with water, gauge, device, logfiles and correction data to be processed
  • doc/app/executables/gnuboat-splashscreen.rst

    r4c267d7 r8ab397c  
    44Name
    55----
     6
    67**gnuboat-splashscreen** \- Used to display an image on an EPD driven display during boot and shutdown
    78
    89Synopsis
    910--------
     11
    1012**gnuboat-splashscreen [-h] -i PATH_TO_IMAGE_TO_DISPLAY**
    1113
    1214Description
    1315-----------
     16
    1417**gnuboat-splashscreen**
    1518Used 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.
    … …  
    1720Options
    1821-------
     22
    1923-h, --help
    2024  Shows the help
  • doc/app/index.rst

    r4c267d7 r8ab397c  
    2323----------------
    2424
    25 GNUBoat is fully open sourced and free software. To be as interoperable as possible,
    26 it is designed with a webservice architecture utilizing OpenAPI specifications. This
    27 specification describes the interfaces provided by the webservices and used by the clients
    28 in a human readable, but machine parseable way. So any other service or client could be
    29 easily integrated in the GNUBoat environment. **We like to happliy welcome any new clients and services!**
    30 You find the API descriptions in the _api_ folder of this repository or via the integrated
    31 swagger-editor within the webservices. Just call the e.g. [http://localhost:8080/mapservice/v1/ui/]
    32 after starting the mapservice in development mode like described below. If you have any
    33 questions, your welcome to contact us.
     25GNUBoat is fully open sourced and free software. To be as interoperable as
     26possible, it is designed with a webservice architecture utilizing OpenAPI
     27specifications. This specification describes the interfaces provided by the
     28webservices and used by the clients in a human readable, but machine parseable
     29way. So any other service or client could be easily integrated in the GNUBoat
     30environment. **We like to happliy welcome any new clients and services!**
     31You find the API descriptions in the _api_ folder of this repository or via the
     32integrated swagger-editor within the webservices. Just call the e.g.
     33http://localhost:8080/mapservice/v1/ui/ after starting the mapservice in
     34development mode like described below. If you have any questions, your welcome
     35to contact us.
    3436
    3537.. toctree::
    … …  
    6264- https://github.com/canboat/canboat
    6365- https://github.com/zalando/connexion
    64 
  • doc/app/install.rst

    r4c267d7 r8ab397c  
    11Installation
    22============
     3
     4Production Environment
     5----------------------
     6
     7It is adviced to use the puppet environment for production installations. You
     8have to options to install the
     9
     10Development
     11-----------
     12
     13First step is to checkout the sources:
     14
     15.. code-block:: console
     16
     17  git clone https://svn.engsas.de/gnuboat
    318
    419You first need to generate the server stub with help of openapi-generator.
    … …  
    924  # to generade the all modules from the API specs
    1025  buildhelpers/configure
    11   # to install the module
    12   python setup.py install
     26
     27Than you need to install the python module (s. :doc:`../components/mapservice`
     28or :doc:`../components/device`) and build the
     29:doc:`../components/mapservice-webclient`. To do that, refer to each of the
     30manuals.
Note: See TracChangeset for help on using the changeset viewer.