source: README.md@ 8b4d7ab

debian/bullseye
Last change on this file since 8b4d7ab was 8b4d7ab, checked in by Joachim Langenbach <joachim.langenbach@…>, 7 years ago

Improved the README

  • Property mode set to 100644
File size: 4.6 KB
Line 
1# GNUBoat
2
3GNUBoat software suite allows you to
4- measure the water depth on any devices (vessles, ...) with a water depth
5 sensor in an NMEA2000 network
6 (module device)
7- provides a webservice with OpenAPI defined interface to upload and
8 analyse the measurements
9 (module mapservice)
10- a webclient to explore the maps with the analysed water depths on it
11 (module mapservice-webclient)
12
13On top there is a module with common stuff.
14
15## Interoperability
16
17GNUBoat is fully open sourced and free software. To be as interoperable as possible,
18it is designed with a webservice architecture utilizing OpenAPI specifications. This
19specification describes the interfaces provided by the webservices and used by the clients
20in a human readable, but machine parseable way. So any other service or client could be
21easily integrated in the GNUBoat environment. **We like to happliy welcome any new clients and services!**
22You find the API descriptions in the _api_ folder of this repository or via the integrated
23swagger-editor within the webservices. Just call the e.g. [http://localhost:8080/mapservice/v1/ui/]
24after starting the mapservice in development mode like described below. If you have any
25questions, your welcome to contact us.
26
27## Installing the modules
28
29You first need to generate the server stub with help of openapi-generator.
30To be able to do that, you need to have java installed. Than run:
31
32```
33buildhelpers/configure # to generade the all modules from the API specs
34python setup.py install # to install the module
35```
36
37## GNUBoat Device
38
39The GNUBoat Device contains all components to log the data and interact with the
40user through a web interface. To do so, it consists of three components:
41- deviceservice: a webservice serving the webclient and connecting to the mapservice, if
42 a network connection is available
43- gnuboat-daemon: The daemon queriing the NMEA2000 network and GPS dongle, storing the
44 data to the log file and the rrd database, used by te deviceservice
45- The webclient as the user frontend for the gnuboat device. Actually it is served by
46 deviceservice
47
48### Production environment
49
50It is advised to install the provided debian package and configure it afterwards
51with help of the delivered puppet configuration.
52
53### Development environment
54
55In this mode, the deviceservice simulates entries to the rrd database. Therefore
56the webclient is fully functional, without the need of a GPS device or a NMEA2000
57network. gnuboat-device-daemon is not needed for the same reason.
58
59To start it in development mode (with a demo SQLite database):
60```
61export FLASK_ENV='Development'
62gnuboat-dev-deviceservice
63```
64
65If you want to test the interaction with a mapservice instance, run the mapservice
66in development mode as mentioned below in parallel.
67
68Than go to [http://localhost:8090] to visit the client or read the api specification
69via [http://localhost:8090/deviceservice/v1/ui/].
70
71## GNUBoat mapservice
72
73### Production environment
74
75It is advised to install the provided debian package and configure it afterwards
76with help of the delivered puppet configuration.
77
78### Development environment
79
80To start it in development mode (with a demo SQLite database):
81```
82export FLASK_ENV='Development'
83gnuboat-dev-mapservice
84```
85
86To be able to upload logs, you also need to launch
87- the broker rabbitmq
88- the result backend memcached
89- the celery worker
90
91Start them with
92```
93sudo service rabbitmq-server start
94sudo service memcached start
95export FLASK_ENV='Development'
96gnuboat-dev-mapservice-worker
97```
98
99You maay access the api specification via [http://localhost:8090/deviceservice/v1/ui/] now.
100
101## GNUBoat mapservice-webclient
102
103Run the following command in src/mapservice-webclient (you need node.js installed!):
104```
105npm start
106```
107Please start the mapservice also and than visit [http://localhost:8001] in your browser.
108If you started `gnuboat-dev-mapservice` in development mode, as described above, you can
109login with user _jane_ and _testpass_.
110
111## GNUBoat common
112
113GNUBoat common contains some helpful scripts:
114- gnuboat-log-converter: converts logfiles from NMEA0183 text format into different other formats
115- gnuboat-log-analyser: creates raster tiles out of logfiles
116- gnuboat-log-uploader: uploads logfiles to the mapservice
117
118All scripts display a help with _--help_ and have a manpage with additional information about their usage.
119
120## Additional Resources
121
122- [trac.engsas.de/gnuboat]: GNUBoats development area
123- [svn.engsas.de/gnuboat]: GNUBoats git repository
124
125## Related projects
126
127- [http://www.openseamap.org]
128- [http://openstreetmap.org]
129- [https://github.com/canboat/canboat]
130- [https://github.com/zalando/connexion]
Note: See TracBrowser for help on using the repository browser.