Hapi.js API plugin for sensor data
- Requires mongodb *
Return an array of board objects. Returns all available boards in the database.
Create or update a board. Expects the following payload:
{
name,
version,
battery
}
Retrieve the data for an individual board.
Create or update data for an addon. Expects the following payload:
{
type,
name
}
Retrieve all data for an addon
Create a reading for an addon. Expects the following payload:
{
type,
value,
time
}
Create a command to send to an addon. Expects the following payload:
{
type, // optional
value
}
Create a log message. Expects the following payload:
{
message,
time,
boardId, // optional
}
Get a log message.