-
Notifications
You must be signed in to change notification settings - Fork 4
Trips
Luigi Saetta edited this page Feb 6, 2018
·
4 revisions
In release 0.9 I have added "TRIPS". A TRIP is a voyage done with the CAR.
To enable analysis of data, for example for calculating gasoline consumption, we need to keep track of beginning and end of TRIPS.
In the MySQL DB I have added a table, called TRIPS, where we register the ID of the first (START_TRIP) and last (STOP_TRIP) msgs of the trip. This information are used, for example, by the Jupyter Notebook developed to analyze TRIP data, or by the REST API.
A new MQTT topic has been added (caralerts). When a trip starts, the RPI send a START_TRIP msg. When the TRIP end a STOP_TRIP msg. Handling is implemented, as always, by NodeRED flows.