Integration with Médisanté devices.
Prerequisites: Node v8+, Yarn v1+
| Task | Command |
|---|---|
| Setup | yarn |
| Run API server | yarn start |
| Run it through process manager | yarn pm |
| Print logs in pm | yarn pm-logs |
| Restart in pm | yarn pm-restart |
While running, logs are written in bridge-medisante.log.
You can test it with the following cURL:
curl -X POST -H 'content-type: application/json' -d '{
"metadata":{"measurementType":"BodyWeightComposition"},
"measurements": {
"timestamp":1618927736,
"bodyWeight":{"value":80}
}}' "https://bridge-medisante.pryv.net/data"curl -X POST -H 'content-type: application/json' -d '{
"metadata":{"measurementType":"BodyWeightComposition"},
"measurements": {
"timestamp":1618927736,
"bodyWeight":{"value":80}
}}' "http://localhost:6437/data"