Skip to content

Readings for one unit on a point

POST
/GetExtraValues
curl --request POST \
--url https://api.eianalytic.com/ApiWeb.svc/GetExtraValues \
--header 'Content-Type: application/json' \
--data '{ "machinecode": 1, "pointindex": 1, "unit": 1, "StartDate": "2019-10-10", "EndDate": "2019-10-10", "Token": "example" }'
Media typeapplication/json
object
machinecode
required
integer
pointindex
required
integer
unit
required

Unit id, from GetUnits.

integer
StartDate

yyyy-MM-dd for a whole day, or yyyy-MM-dd HH:mm:ss (24-hour clock) for an instant. A date-only value returns everything in that range.

string
EndDate

yyyy-MM-dd for a whole day, or yyyy-MM-dd HH:mm:ss (24-hour clock) for an instant. A date-only value returns everything in that range.

string
Token
required

The database token returned by Login. Sent in the request body, not in a header.

string

Values for the requested unit.

Media typeapplication/json
Array<object>
object
Key

The Key half of every response envelope.

object
StatusNumber
required

0 means OK. See the Conventions page for the full table.

integer
Description
required
string
Configs

Present on some responses; empty in the documented examples.

Array<object>
object
Value
Array<object>
object
date
string
value
number format: float
unit
integer
descUnit
string
Example
[
{
"Key": {
"StatusNumber": 0,
"Description": "OK"
},
"Value": [
{
"date": "2021/02/03 15:01:48",
"descUnit": "Temperature"
}
]
}
]