Query the data details of a device for a certain day (pagination)

such as, request: http://api.dessmonitor.com/public/?sign=45a0317337cad1b975b7cc8e6ae35401daa5c356&salt=6799118618252297881&token=5b13e18eaa179d4bdce4cf2cc0e66eaa506c7f27ccac6b9e7beaa190ec0e386f&action=queryDeviceDataOneDayPaging&i18n=zh_CN&pn=J1817101731142&devcode=752&devaddr=1&sn=687484400018&date=2017-04-05&page=0&pagesize=10&source=1&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

parameter description required
action queryDeviceDataOneDayPaging true
i18n International language, seeSupport for multiple languages true
pn Digital collector number true
devcode Device protocol encoding true
devaddr Device Address (485 bus) true
sn Device serial number true
date The date to query, format: yyyy-mm-dd, The date is considered the time zone of the device, If you do not pass this parameter, it defaults to today false
page pagination processing, page number, start at 0, If you do not pass this parameter, it defaults to 0 false
pagesize pagination processing, the number of records per page, 1 ~ 50, If you do not pass this parameter, it defaults to 1 false

response:

parameter description required
total Total number of data records for the day true
page pagination processing, page number true
pagesize pagination processing, the number of records per page true
title[x].title The name of the device protocol field true
title[x].unit The unit of the device protocol field, some fields have units, Such as the electric generation unit W of the inverterW, Others may not have a unit, such as a serial number false
row[x].realtime Whether this piece of data is real-time, true represents real-time data, false represents historical data true
row[x].filed[y] The value of the Device Protocol field, title.size()always equals row[x].filed.size(), they correspond one-to-one true

In particular, it is worth mentioning: row[x].filed[0], row[x].filed[1], Always uniquely identifies the current data row and timestamp when the data occurred (device time zone), timestamp format: yyyy-mm-dd hh:mi:ss.

{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "total":8,
        "page":0,
        "pagesize":1,
        "title":[
            {
                "title":"id"
            },
            {
                "title":"Timestamp"
            },
            {
                "title":"serial number"
            },
            {
                "title":"PV1 input voltage",
                "unit":"V"
            },
            {
                "title":"PV2 input voltage",
                "unit":"V"
            },
            {
                "title":"PV3 input voltage",
                "unit":"V"
            },
            {
                "title":"PV1 input current",
                "unit":"A"
            },
            {
                "title":"PV2 input current",
                "unit":"A"
            },
            {
                "title":"PV3 input current",
                "unit":"A"
            },
            {
                "title":"PV1 input power",
                "unit":"W"
            },
            {
                "title":"PV2 input power",
                "unit":"W"
            },
            {
                "title":"PV3 input power",
                "unit":"W"
            },
            {
                "title":"R-phase grid voltage",
                "unit":"V"
            },
            {
                "title":"S-phase grid voltage",
                "unit":"V"
            },
            {
                "title":"T-phase grid voltage",
                "unit":"V"
            },
            {
                "title":"Grid-connected power",
                "unit":"W"
            },
            {
                "title":"Heat sink temperature",
                "unit":"°C"
            },
            {
                "title":"Module temperature",
                "unit":"°C"
            },
            {
                "title":"Inverter working mode"
            },
            {
                "title":"Elapsed time",
                "unit":"Hour"
            },
            {
                "title":"Power generation time",
                "unit":"Hour"
            },
            {
                "title":"Number of grid connections"
            },
            {
                "title":"Total power generation",
                "unit":"kWh"
            },
            {
                "title":"Power peak after start-up",
                "unit":"W"
            },
            {
                "title":"Power peak of the day",
                "unit":"W"
            }
        ],
        "row":[
            {
                "realtime":true
                "field":[
                    "bcaa940319ac11e7bde91c6f6593e938",
                    "2017-04-05 11:06:40",
                    "687484400018",
                    "608.4",
                    "582.9",
                    "9.8",
                    "1.76",
                    "1.56",
                    "0.07",
                    "1071",
                    "914",
                    "0",
                    "233.1",
                    "240.3",
                    "225.5",
                    "1977",
                    "29.6",
                    "37.4",
                    "normal",
                    "120",
                    "116",
                    "000067",
                    "336",
                    "8668",
                    "3995"
                ]
            },
            Object{...},
            Object{...},
            Object{...}
        ]
    }
}

possible error:

Returns an error code description detailed description
0x0006 ERR_FORMAT_ERROR parameter error
0x000C ERR_NO_RECORD no records(The device has no data)
0x0102 ERR_NOT_FOUND_DEVICE device not found

results matching ""

    No results matching ""