How do I get a JSON response from Conduit

Conduit is a service running on the AlphaX system that allows simple import and export of data feeds. The conduit service allows users to retrieve data in JSON format by simple GET request from a webpage. See below for example usage.

Conduit Endpoint Location: http://alphax.com.au/conduit
Conduit Parameters:

token: The unique security token for each user. This is available from the User window in AlphaX.
id: The device ID that is used to register and track device in the AlphaX system.
ch: The individual channel ID that is assigned within the AlphaX system.
limit: The total number of records that should be retrieved from the system.
fcdt: From Created Date Time, the starting range timestamp.
tcdt: To Created Date Time, the ending range timestamp.


Returns JSON. Example:
{
   "_id":"5ba2f5b0e64d07f37b7c9e85",
   "channel":4,
   "networkID":"21eea42dd37b",
   "data": {
       "val":0.278,
       "oall":0.1492018,
       "brgs":0.14,
       "mech":0.176,
       "lowf":0.253,
       "date":"1537406384000"
   }
},


Depending on the device configuration the "data" field will contain different fields such as: "

brgs", "mech", "lowf", "lat", "lng", "msgID", "volt", "oall", etc.



Example Usage:

http://alphax.com.au/conduit?id=21xxx42xx37x&limit=50&ch=1&token=xxxxxxxxxxxxxxxxxxxxxx

Returns latest 50 data values for Device: 21xxx42xx37x



http://alphax.com.au/conduit?token=xxxxxxxxxxxxxxxxxxxxxx&fcdt=1539792000&tcdt=1539840604


Returns all data values from date 1539792000 to 1539840604 for all devices the user has site access to.


http://alphax.com.au/conduit?token=xxxxxxxxxxxxxxxxxxxxxx&limit=100


Returns latest 100 data values for each device the user has site access to.








1 Star 2 Star 3 Star 4 Star 5 Star