HOW TO: Add a Digi Remote Manager DataStream Containing a Location

Adding a Digi Remote Manager DataStream Containing the Location Coordinates
 
The following examples show how to add a Digi Remote Manager DataStream with the location where the data value may have been captured:

API Example:

POST to /ws/v1/streams/history

{
  "stream_id": "testLoc",
  "stream_type": "DOUBLE",
  "value": "42",
  "geoposition":{ 
    "coordinates":[ -92.5, 44.0, 0.0 ]
  }
}

XML Example (using curl):

curl -u user:pass -X POST --header "Content-Type: text/xml" -d @location.xml http://devicecloud.digi.com/ws/v1/streams/history.xml

Here's an example send for JSON:

curl -u user:pass -X POST --header "Content-Type: application/json" -d @location.json http://devicecloud.digi.com/ws/v1/streams/history.json

Last updated: Jan 02, 2024

Filed Under

Digi Remote Manager

Recently Viewed

No recently viewed articles

Did you find this article helpful?