An authenticated Realino-compliant control device can execute authorized requests to send feed data to the Realer platform. This feed data is used to inform users on Realer and for further processing.
Note: The feed data that a control device can send depends on the sensors and actuators attached to that device as registered on Realer.
curl "https://www.therealer.com/control_devices/12345/feeds.realino" \
-X PUT \
-H 'Content-Type: application/json' \
-H 'Authorization: Token b11db7f6c816568eb3b156df3aeaa5' \
-d '{"sensors":[{"sensor_id":"1","value":"18.49"},{"sensor_id":"2","value":"5.59"}],"commands":[{"command_id":"1","value":"0"},{"command_id":"2","value":"1"}]}'
Send control feed and command data to Realer.
The authorization token to access resources on behalf of the control device. You get this at the time of authentication.
Type: String
Example: Token b11db7f6c816568eb3b156df3aeaa5
ID of control device that needs to feed data. You get this at the time of authentication.
Type: Integer
Example: 12345
The sensors feed data.
Type: JSON
Example: [{"sensor_id":"1", "value":"18.49"}, {"sensor_id":"2", "value":"5.59"}]
The commands feed data.
Type: JSON
Example: [{"command_id":"1", "value":"0"}, {"command_id":"2", "value":"1"}]
Example value (application/json)
{
"sensors": [
{"sensor_id":"1", "value":"18.49"},
{"sensor_id":"2", "value":"5.59"}
],
"commands": [
{"command_id":"1", "value":"0"},
{"command_id":"2", "value":"1"}
]
}
Code | Description |
---|---|
200 |
OK (Success) Example value (application/json)
|
400 |
Bad Request (Client Error) Example value (application/json)
|
403 |
Forbidden (Client Error) Example value (application/json)
Example value (application/json)
Example value (application/json)
|