The project provides REST API for getting the current temperature from DS18B20
sensore. The sensore should be set already.
Retrieve all data from the connected sensores
Linux
mix deps.get
iex -S mix
mix release.init
MIX_ENV=prod mix release
mix test
curl 'your_ip_address:8800/get_temperature'
{
"response": {
"status": "ok",
"sensores": [{
"timestamp": 1527852670715,
"status": "ok",
"sensore_resp": 24.4,
"sensore_id": "28-000005e06ac0"
}],
"resp_msg": "ok"
}
}