Login & Get data
Uploading data

1. Login to get a token

Address: https://www.iammeter.com/api/v1/user/login

Method: Post

Data

image-20210507160204396

Result

{
    "data": {
        "id": 2025,
        "token": "349df48ccfd3415b885ca86252ac5169",
        "refreshToken": "8adf75e5da10424985f3b83855133982"
    },
    "successful": true,
    "message": null
}

In order to identify the current user, all subsequent requests need to set the header as below:

image-20210507160252974

Api Test

Coming soon....

2. Get real-time data by meter SN

Address: https://www.iammeter.com/api/v1/site/meterdata/{sn}

Method: GET

Header:

image-20210507160432030

Result

Single Phase Meter

{
    "data": {
        "values": [
            [
                230.220,
                1.300,
                119.000,
                1766.590,
                0.000
            ]
        ],
        "localTime": "2020/8/28 15:27:33",
        "gmtTime": "2020/8/28 5:27:33"
    },
    "successful": true,
    "message": null
}

**Three Phase Meter **

{
    "data": {
        "values": [
            [
                242.600,
                1.000,
                216.000,
                32354.600,
                0.000
            ],
            [
                242.600,
                1.000,
                1986.000,
                30536.410,
                17704.720
            ],
            [
                0.000,
                0.000,
                0.000,
                0.000,
                0.000
            ]
        ],
        "localTime": "2020/8/28 15:30:48",
        "gmtTime": "2020/8/28 5:30:48"
    },
    "successful": true,
    "message": null
}

Description: The data are voltage, current, active power, power consumption, feed-in energy. The data sequence of the three-phase meter is A,B,C.

Api Test

Coming soon....