curl --request POST \
--url https://api.eddy.engineer/v1/motion.plot \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"quantity": "<string>",
"alert": {},
"at": 123,
"component": "<string>",
"criterion": "<string>",
"element": "<string>",
"point": [
123
],
"points": [
{
"component": "<string>",
"point": [
123
]
}
],
"reference": "<string>",
"x": "<unknown>"
}
'import requests
url = "https://api.eddy.engineer/v1/motion.plot"
payload = {
"key": "<string>",
"quantity": "<string>",
"alert": {},
"at": 123,
"component": "<string>",
"criterion": "<string>",
"element": "<string>",
"point": [123],
"points": [
{
"component": "<string>",
"point": [123]
}
],
"reference": "<string>",
"x": "<unknown>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
key: '<string>',
quantity: '<string>',
alert: {},
at: 123,
component: '<string>',
criterion: '<string>',
element: '<string>',
point: [123],
points: [{component: '<string>', point: [123]}],
reference: '<string>',
x: '<unknown>'
})
};
fetch('https://api.eddy.engineer/v1/motion.plot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/motion.plot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '<string>',
'quantity' => '<string>',
'alert' => [
],
'at' => 123,
'component' => '<string>',
'criterion' => '<string>',
'element' => '<string>',
'point' => [
123
],
'points' => [
[
'component' => '<string>',
'point' => [
123
]
]
],
'reference' => '<string>',
'x' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/motion.plot"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"quantity\": \"<string>\",\n \"alert\": {},\n \"at\": 123,\n \"component\": \"<string>\",\n \"criterion\": \"<string>\",\n \"element\": \"<string>\",\n \"point\": [\n 123\n ],\n \"points\": [\n {\n \"component\": \"<string>\",\n \"point\": [\n 123\n ]\n }\n ],\n \"reference\": \"<string>\",\n \"x\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/motion.plot")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"quantity\": \"<string>\",\n \"alert\": {},\n \"at\": 123,\n \"component\": \"<string>\",\n \"criterion\": \"<string>\",\n \"element\": \"<string>\",\n \"point\": [\n 123\n ],\n \"points\": [\n {\n \"component\": \"<string>\",\n \"point\": [\n 123\n ]\n }\n ],\n \"reference\": \"<string>\",\n \"x\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/motion.plot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"<string>\",\n \"quantity\": \"<string>\",\n \"alert\": {},\n \"at\": 123,\n \"component\": \"<string>\",\n \"criterion\": \"<string>\",\n \"element\": \"<string>\",\n \"point\": [\n 123\n ],\n \"points\": [\n {\n \"component\": \"<string>\",\n \"point\": [\n 123\n ]\n }\n ],\n \"reference\": \"<string>\",\n \"x\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}A motion result series (MO8)
One series over the frames (MO10: the seat’s result categories): position | velocity | acceleration | angular_velocity | angular_acceleration | orientation | com_position | com_velocity (a component, optionally a point on it and a reference component whose frame the quantity is expressed in — the alternate coordinate system; components x | y | z | mag | radial | tangential | normal about the reference’s origin and z axis; orientation: w | x | y | z | angle | euler_1..3 (ZXZ) | yaw | pitch | roll (Z, −Y, X) | bryant_1..3 (XYZ) | rodrigues_x..z | projection_x..z), reaction_force | reaction_torque (a mate), motor_value | motor_rate | motor_effort | motor_power | reflected_inertia (a motor; 2·KE / rate²), contact_force | contact_friction | penetration (a contact set), applied_force (a force / torque element’s law), spring_force | spring_length (a spring), kinetic_energy | translational_kinetic_energy | rotational_kinetic_energy | potential_energy | potential_energy_delta | total_energy | linear_momentum | angular_momentum | drift_position | drift_velocity. x picks the abscissa (time, frame, or another series spec); at / alert / criterion are the motion-data sensor’s criteria (max | min | average | rms | value_at) with the alert state.
curl --request POST \
--url https://api.eddy.engineer/v1/motion.plot \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"key": "<string>",
"quantity": "<string>",
"alert": {},
"at": 123,
"component": "<string>",
"criterion": "<string>",
"element": "<string>",
"point": [
123
],
"points": [
{
"component": "<string>",
"point": [
123
]
}
],
"reference": "<string>",
"x": "<unknown>"
}
'import requests
url = "https://api.eddy.engineer/v1/motion.plot"
payload = {
"key": "<string>",
"quantity": "<string>",
"alert": {},
"at": 123,
"component": "<string>",
"criterion": "<string>",
"element": "<string>",
"point": [123],
"points": [
{
"component": "<string>",
"point": [123]
}
],
"reference": "<string>",
"x": "<unknown>"
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
key: '<string>',
quantity: '<string>',
alert: {},
at: 123,
component: '<string>',
criterion: '<string>',
element: '<string>',
point: [123],
points: [{component: '<string>', point: [123]}],
reference: '<string>',
x: '<unknown>'
})
};
fetch('https://api.eddy.engineer/v1/motion.plot', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/motion.plot",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '<string>',
'quantity' => '<string>',
'alert' => [
],
'at' => 123,
'component' => '<string>',
'criterion' => '<string>',
'element' => '<string>',
'point' => [
123
],
'points' => [
[
'component' => '<string>',
'point' => [
123
]
]
],
'reference' => '<string>',
'x' => '<unknown>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/motion.plot"
payload := strings.NewReader("{\n \"key\": \"<string>\",\n \"quantity\": \"<string>\",\n \"alert\": {},\n \"at\": 123,\n \"component\": \"<string>\",\n \"criterion\": \"<string>\",\n \"element\": \"<string>\",\n \"point\": [\n 123\n ],\n \"points\": [\n {\n \"component\": \"<string>\",\n \"point\": [\n 123\n ]\n }\n ],\n \"reference\": \"<string>\",\n \"x\": \"<unknown>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/motion.plot")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"<string>\",\n \"quantity\": \"<string>\",\n \"alert\": {},\n \"at\": 123,\n \"component\": \"<string>\",\n \"criterion\": \"<string>\",\n \"element\": \"<string>\",\n \"point\": [\n 123\n ],\n \"points\": [\n {\n \"component\": \"<string>\",\n \"point\": [\n 123\n ]\n }\n ],\n \"reference\": \"<string>\",\n \"x\": \"<unknown>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/motion.plot")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"<string>\",\n \"quantity\": \"<string>\",\n \"alert\": {},\n \"at\": 123,\n \"component\": \"<string>\",\n \"criterion\": \"<string>\",\n \"element\": \"<string>\",\n \"point\": [\n 123\n ],\n \"points\": [\n {\n \"component\": \"<string>\",\n \"point\": [\n 123\n ]\n }\n ],\n \"reference\": \"<string>\",\n \"x\": \"<unknown>\"\n}"
response = http.request(request)
puts response.read_body{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}{
"error": {
"code": "INVALID_GEOMETRY",
"message": "<string>"
}
}Body
Response
t, values, unit, min, max, x / x_label / x_unit, stats {max, min, average, rms, max_at, min_at, value_at}, criterion, criterion_value, alert