Query the annual power generation of all Plant
Parameter | Description | Required |
---|---|---|
action | queryPlantsEnergyTotalPerYear | True |
response:
Parameter | Description | Required |
---|---|---|
peryear[x].val | Electricity generation in a certain year, Standardized units of electricity generation | True |
peryear[x].ts | a certain year, format为: yyyy-mm-dd hh:mi:ss, mm-dd is always January 1st of the year, and the hh: mi: ss part is meaningless |
True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"peryear":[
{
"val":"0.00",
"ts":"2016-01-01 00:00:00"
},
{
"val":"0.01",
"ts":"2017-01-01 00:00:00"
}
]
}
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0104 | ERR_NOT_FOUND_PLANT | Unable to find Plant |
0x000C | ERR_NO_RECORD | No records (no data found or no data generated for that day) |