| 1 | # GNUBoat
|
|---|
| 2 |
|
|---|
| 3 | GNUBoat 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 |
|
|---|
| 13 | On top there is a module with common stuff.
|
|---|
| 14 |
|
|---|
| 15 | ## Installing the modules
|
|---|
| 16 |
|
|---|
| 17 | You first need to generate the server stub with help of openapi-generator.
|
|---|
| 18 | To be able to do that, you need to have java installed. Than run:
|
|---|
| 19 |
|
|---|
| 20 | ```
|
|---|
| 21 | buildhelpers/code_generator # to generade the server stub
|
|---|
| 22 | python setup.py install # to install the module
|
|---|
| 23 | ```
|
|---|
| 24 |
|
|---|
| 25 | ## GNUBoat Device
|
|---|
| 26 |
|
|---|
| 27 | ## GNUBoat mapservice
|
|---|
| 28 |
|
|---|
| 29 | ### Development mode
|
|---|
| 30 |
|
|---|
| 31 | To start it in development mode (with a demo SQLite database):
|
|---|
| 32 | ```
|
|---|
| 33 | export FLASK_ENV='Development'
|
|---|
| 34 | gnuboat_mapservice
|
|---|
| 35 | ```
|
|---|
| 36 |
|
|---|
| 37 | To be able to upload logs, you also need to launch
|
|---|
| 38 | - the broker rabbitmq
|
|---|
| 39 | - the result backend memcached
|
|---|
| 40 | - the celery worker
|
|---|
| 41 |
|
|---|
| 42 | Start them with
|
|---|
| 43 | ```
|
|---|
| 44 | sudo service rabbitmq-server start
|
|---|
| 45 | sudo service memcached start
|
|---|
| 46 | export FLASK_ENV='Development'
|
|---|
| 47 | gnuboat_mapservice_worker
|
|---|
| 48 | ```
|
|---|
| 49 |
|
|---|
| 50 | ## GNUBoat mapservice-webclient
|
|---|
| 51 |
|
|---|
| 52 | Run the following command in src/mapservice-webclient (you need node.js installed!):
|
|---|
| 53 | ```
|
|---|
| 54 | npm start
|
|---|
| 55 | ```
|
|---|
| 56 | Please start the mapservice also and than visit [http://localhost:8001] in your browser.
|
|---|
| 57 |
|
|---|
| 58 | ## Additional Resources
|
|---|
| 59 |
|
|---|
| 60 | - [trac.engsas.de/gnuboat]: GNUBoats development area
|
|---|
| 61 | - [svn.engsas.de/gnuboat]: GNUBoats git repository
|
|---|
| 62 |
|
|---|
| 63 | ## Related projects
|
|---|
| 64 |
|
|---|
| 65 | - [http://www.openseamap.org]
|
|---|
| 66 | - [http://openstreetmap.org]
|
|---|
| 67 | - [https://github.com/canboat/canboat]
|
|---|
| 68 | - [https://github.com/zalando/connexion]
|
|---|