GroveStreams

Digi Device Cloud Data into GroveStreams414

MikeMills private msg quote post Address this user
Digi Device Cloud allows developers to create an HTTPS or HTTP connection between the Device Cloud server and another web server, which may be a GroveStreams server, via their HTTP Monitor framework.

Digi HTTP Monitor Connection Example for GroveStreams:
<Monitor>
  <monTopic>DeviceCore,XbeeCore</monTopic>
  <monTransportType>https</monTransportType>
  <monTransportUrl>https://grovestreams.com/api/gtw/dgi/your_api_key_here/data</monTransportUrl>
  <monTransportToken>x:x</monTransportToken>
  <monTransportMethod>PUT</monTransportMethod>
  <monFormatType>json</monFormatType>
  <monBatchSize>100</monBatchSize>
  <monCompression>none</monCompression>
  <monBatchDuration>10</monBatchDuration>
</Monitor> 


* monTrasnportType: Use either http and https. You can append ?compTmplId=your_component_template_id onto the end of the URL to utilize component templates.
* monTrasnportToken (uid/pwd) is ignored by GS so put anything in there like x:x.
* monTransportUrl: Place your GS secret api key in this url between dgi and data.
* monCompression: We support gzip compression. Not sure what Digi is doing. You can try with and without compression to see if it works.

We built a Digi gateway on our servers that accepts data arriving in the Digi Cloud format.

Our Digi gateway logic queues up PUTs and blasts them into GS every 10 seconds so it will take a few seconds for your sample to arrive in GS. We do this to respect the GS 10 second upload limit per source IP. The source IP is a Digi Cloud Server.

Your component will land under the Components folder in Observation Studio. Refresh that folder to see if it has registered.

After the component registers, you can rename things, create events, and visualizations.
Post 1 IP   flag post
Avocadodude private msg quote post Address this user
I just found this (was looking for something else). I may have to change my whole Digi implementation now. Are you running this in a connectport?
Post 2 IP   flag post
MikeMills private msg quote post Address this user
This accepts data from the Digi cloud.

You can configure your Digi cloud account to push data into GS via the instructions above. So, I assume, any device that pushes into the Digi cloud can use the above.
Post 3 IP   flag post
Avocadodude private msg quote post Address this user
Sorry to revisit old thread. Did you have any issues with getting the data timestamp correct? I can't figure out the time offset. I'm -8:44 minutes off...
Post 4 IP   flag post
Avocadodude private msg quote post Address this user
The timestamp in the DIA stream seems to be correct (PDT right now) for me. 04/23/18 09:50:20 AM
Post 5 IP   flag post
2965 5 5
Log in or sign up to compose a reply.