0
Answered

CSV export examples for every sensor product in shop

KEVIN CAREY 3 months ago in General questions updated by Support Manager 3 months ago 3

Hello

We are interested in the data available in CSV format for every type of sensor in your shop inventory.


We need to know what fields will be reported in the API for each device type so that we can tailor API dashboard reporting for our clients.

For example the CSV report / API fields for:

smart-MAIC D101-2 CT Clip WiFi 1−Line Energy monitor

Water Flow Sensor

Wind Direction Sensor, angle step 360°/16

Solar Radiation Sensor

and for every product ....

We are interested in exploring how to design our business solutions and data analytics around your services.

Regards

Answered

Hello

View the API description in the Knowledge Base

https://support.smart-maic.com/ru/knowledge-bases/2/articles/40-api-dlya-ustrojstv

Using the API, you receive raw data from the D105 device.

There is no description of which sensor is connected to the D105; you must know this yourself.


For example, if to D105 is connected:

Water Flow Sensor - see data [TCh1] and [TCh2]
Wind Direction Sensor - see data [T5]
Solar Radiation Sensor - see data according to your Modbus setup
and so on

Hello


Just trying to understand if I purchased Water Flow Sensor / Wind Direction  Sensor, etc., how would it report here?

Can you provide example screenshot of CSV or JSON from API?

Image 2292

Your screenshot from the energy monitor D101/D103

The sensors are connected to the D105 device, it has other data

Image 2294


Water Flow Sensor - see data [TCh1] and [TCh2]
Wind Direction Sensor - see data [T5]
Solar Radiation Sensor - see data according to your Modbus setup

JSON from API:

{
"devid": "1761607682",
"time": "1721894684",
"pout": "0",
"data": {
"T1": {
"name": "1. CH Return - T3",
"unit": "",
"value": "24.0"
},
"T2": {
"name": "2. CH Flow - T2",
"unit": "",
"value": "23.5"
},
"T3": {
"name": "3. Indoors - T4",
"unit": "",
"value": "25.7"
},
"T4": {
"name": "4. Outside - T1",
"unit": "",
"value": "25.2"
},
"ADC": {
"name": "Analog Input",
"unit": "V",
"value": "1.25"
},
"Battery": {
"name": "Battery",
"unit": "V low battery",
"value": "0.5"
},
"Ch1": {
"name": "Pulse Ch1",
"unit": "imp",
"value": "0"
},
"Ch2": {
"name": "Pulse Ch2",
"unit": "imp",
"value": "0"
},
"TCh1": {
"name": "Total Pulse Ch1",
"unit": "imp",
"value": "2362265"
},
"TCh2": {
"name": "Total Pulse Ch2",
"unit": "imp",
"value": "2362259"
}
}
}