Data Output
Device Data Retrieval from AtlatoDB
Live Data
1.
2.
3.
NodeJS
Python
Socket Data
data
object
required
raw
object
required
converted
object
required
err
object
required
serial
string
required
deviceId
string
required
timestamp
string
required
dId
string
required
Historical Data
1.
/data/past
2.
Include the following parameters in the JSON body of your POST request:
{
"deviceId": "string",
"fromDate": "YYYY-MM-DD HH:mm:ss",
"toDate": "YYYY-MM-DD HH:mm:ss",
}
deviceId
: (Required) The ID of the device for which you want to retrieve historical data.fromDate
: The start time for the historical data range in "YYYY-MM-DD HH:mm" format.toDate
: The end time for the historical data range in "YYYY-MM-DD HH:mm" format.WARNING
3.
data
: Array containing historical data filtered by the specified start and end times.message
: A string message providing additional information about the request or any errors.NodeJS
Python
History Data
data
array [object {4}]
required
raw
object
required
converted
object
optional
err
object
optional
timestamp
string
required
message
string
required
Definitions
Term | Definition |
---|---|
deviceId | The deviceId serves as a unique identifier assigned to each device upon its installation within our system. This identifier is generated by the Atlato system during the device registration process. It is essential for specifying the particular device for which data retrieval or operational commands are intended in API requests. |
JWT Token | "JWT Token" stands for JSON Web Token. It is a compact and self-contained method for securely transmitting information between parties as a JSON object. JWTs can be used to authenticate users and securely transmit information over the network. They consist of three parts: a header, a payload, and a signature, which are encoded and can be digitally signed. |
INFO
INFO
INFO
Modified at 2024-10-09 11:41:37