| [8b53868] | 1 | Device
|
|---|
| [8ab397c] | 2 | ======
|
|---|
| [8b53868] | 3 |
|
|---|
| [8ab397c] | 4 | The GNUBoat Device contains all components to log the data and interact with
|
|---|
| 5 | the user through a web interface. To do so, it consists of three components:
|
|---|
| [8b53868] | 6 |
|
|---|
| [8ab397c] | 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
|
|---|
| [8b53868] | 14 |
|
|---|
| 15 | Production environment
|
|---|
| 16 | ----------------------
|
|---|
| 17 |
|
|---|
| [8ab397c] | 18 | It is advised to install the provided debian package and configure it
|
|---|
| 19 | afterwards with help of the delivered puppet configuration.
|
|---|
| [8b53868] | 20 |
|
|---|
| 21 | Development environment
|
|---|
| 22 | -----------------------
|
|---|
| 23 |
|
|---|
| [8ab397c] | 24 | If not already done, you need to build and install the python module.
|
|---|
| 25 | Make sure, that all needed dependencies are installed.
|
|---|
| [8b53868] | 26 |
|
|---|
| [8ab397c] | 27 | .. code-block:: console
|
|---|
| [8b53868] | 28 |
|
|---|
| [8ab397c] | 29 | python setup.py install
|
|---|
| [8b53868] | 30 |
|
|---|
| [8ab397c] | 31 | In this mode, the deviceservice simulates entries to the rrd database.
|
|---|
| 32 | Therefore the webclient is fully functional, without the need of a GPS
|
|---|
| 33 | device or a NMEA2000 network. gnuboat-device-daemon is not needed for the
|
|---|
| 34 | same reason.
|
|---|
| 35 |
|
|---|
| 36 | To start it in development mode see
|
|---|
| 37 | :doc:`../executables/gnuboat-dev-deviceservice`.
|
|---|
| 38 |
|
|---|
| 39 | If you want to test the interaction with a mapservice instance, run the
|
|---|
| 40 | mapservice in development mode as mentioned below in parallel.
|
|---|
| 41 |
|
|---|
| 42 | Than go to http://localhost:8090 to visit the client or read the api
|
|---|
| 43 | specification via http://localhost:8090/deviceservice/v1/ui/.
|
|---|