Query the daily power generation of the Plant for a certain month

fo example: http://api.shinemonitor.com/public/?sign=45a0317337cad1b975b7cc8e6ae35401daa5c356&salt=6799118618252297881&token=5b13e18eaa179d4bdce4cf2cc0e66eaa506c7f27ccac6b9e7beaa190ec0e386f&action=queryPlantEnergyMonthPerDay&plantid=1&date=2017-06&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action queryPlantEnergyMonthPerDay True
plantid Plant id True
date Date to query, format: yyyy-mm, The date is considered to be the time zone where the Plant is located,If this parameter is not passed, it will be defaulted to current month False
startDate The start date to query (this parameter does not need to be passed if date is passed) False
endDate The end date to query (this parameter does not need to be passed if date is passed) False
customizePeriod Customized query identifier for Golden Platform (this parameter does not need to be passed if date is passed) False

response:

  • The interface always returns the daily electricity generation for the entire month. If this day has not yet arrived, it returns 0
Parameter Description Required
perday[x].val Electricity generation on a certain day in a certain month, Standardized units of electricity generation True
perday[x].ts A certain day in a certain month, foemat: yyyy-mm-dd hh:mi:ss, The 'hh: mi: ss' part is meaningless True
energyTotal Accumulated power generation calculated based on custom dates (customized by Jinlang) False
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "perday":[
            {
                "val":"0.00",
                "ts":"2017-06-01 00:00:00"
            },
            {
                "val":"0.01",
                "ts":"2017-06-02 00:00:00"
            }
        ]
    }
}

Possible errors:

Response error code Description Details
0x0006 ERR_FORMAT_ERROR Parameter error
0x000B ERR_NO_PERMISSION No permission (the user does not have permission to operate the Plant)
0x0104 ERR_NOT_FOUND_PLANT Unable to find the Plant
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 10:21:02

results matching ""

    No results matching ""