Historical readings for one axis
const url = 'https://api.eianalytic.com/ApiWeb.svc/GetHistoryMeasures';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"machinecode":1,"pointindex":1,"axis":1,"StartDate":"2019-10-10","EndDate":"2019-10-10","getRMS":true,"Token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.eianalytic.com/ApiWeb.svc/GetHistoryMeasures \ --header 'Content-Type: application/json' \ --data '{ "machinecode": 1, "pointindex": 1, "axis": 1, "StartDate": "2019-10-10", "EndDate": "2019-10-10", "getRMS": true, "Token": "example" }'Deprecated — use GetAllHistoryMeasures.
Returns the same readings as typed SignalApi objects rather than the
column/row table the replacement uses.
Request Bodyrequired
Section titled “Request Bodyrequired”object
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.
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.
true also returns the internal RMS the sensor calculates, expressed as velocity in mm/s.
The database token returned by Login. Sent in the request body, not
in a header.
Responses
Section titled “Responses”Readings in the requested range.
object
The Key half of every response envelope.
object
0 means OK. See the Conventions page for the full table.
Present on some responses; empty in the documented examples.
object
One processed reading for an axis.
object
Identifies the stored measurement; feed it to GetFFT_Base64.
Why the measurement was taken. See the Reason table.
Unit of AccelRMS, typically G. Always a string, but either the readable label ("G", from GetHistoryMeasures) or the SignalTypeOut code as a string ("0", from GetCurrentMeasures). Both mean the same thing — see the Conventions page.
Unit of VelRMS, typically mm/s. Always a string, but either the readable label ("mm/s", from GetHistoryMeasures) or the SignalTypeOut code as a string ("2", from GetCurrentMeasures). Both mean the same thing — see the Conventions page.
Unit of EnvRMS, typically GE. Always a string, but either the readable label ("GE", from GetHistoryMeasures) or the SignalTypeOut code as a string ("6", from GetCurrentMeasures). Both mean the same thing — see the Conventions page.
Example
[ { "Key": { "StatusNumber": 0, "Description": "OK" }, "Value": [ { "Date": "2021-06-18 09:16:51", "AccelUnit": "G", "VelUnit": "G", "EnvUnit": "G" } ] }]