
http://www.projetpoissonpilote.com/api
- Position GPS triangulé
- Position estimée
- Profondeur
- Réserve d'oxygène
- Compteur de pédale (interpolé)
- Humeur de l'équipage
- Capteur physiologique?
Vu que certaines données seront transmises à la voix par le téléphone sonique, ce serait intéressant d'avoir un système qui interpole les donnée (qui calcule en direct une valeur estimée qu'on affine avec de vrais chiffres une fois par jour.
{
"<boat-id>": [
{
"position_id":"<uuid>",
"point":{"x":<lat>,"y":<lon>},
"depth":"<depth (meters)>",
"datetime": "<iso8601 date>"
}
]
}Where boat-id is in ["boat-1", "boat-2", "sub"].
Available structured data:
x: latitude of the vessely: longitude of the vesseldepth: depth in metersoxygen: Percentage of oxygenpaddle: Paddling counthumor: Humor of the crewdata: Any other kind of data in the form{type=<type>, value=<value>
curl http://www.projetpoissonpilote.com/api/path \
--data '<data>' \
--user <user>:<password>
With the body in JSON:
[{
"boat-1": { // Optional, one for each boat
"x": 49.3, // Optional
"y": -2.0, // Optional
"depth": 0, // Optional depth in meters. Overriden with 0 for the boats
},
"paddle": 0, // Optional number of paddle cycles since the start
"oxygen": 45, // Optional percentage of available oxygen in the sub
"data": [{"type": "type", "value": <value>}], // Optional unstructured data
"datetime": "2016-07-18T00:00:00Z" // Optional ISO 8601 datetime (preferably UTC). Default: now()
}]npm install
npm run dev # run in dev mode with hot reload
npm start # start a regular server