Query Plant list
Parameter | Description | Required |
---|---|---|
action | queryPlants | True |
status | Plant status, If you do not pass this parameter, it means that you do not care about | False |
orderBy | Sort rules, possible values include: ascPlantName, In order of Plant name descPlantName, In reverse order by Plant name ascInstall, In order of installation time of the Plant descInstall, In reverse order of installation time of the Plant ascStatus, In order of Plant status descStatus, In reverse order of Plant status ,If this parameter is not passed, it defaults to ascPlantName |
False |
plantName | Plant name, fuzzy search | False |
page | Paging processing, page number, starting from 0. If this parameter is not passed, it is defaulted to 0 | False |
pagesize | Paging processing, with 1 to 50 records per page. If this parameter is not passed, it defaults to 1 | False |
response:
Parameter | Description | Required |
---|---|---|
total | Total number of records | True |
page | Paging processing, which page | True |
pagesize | Paging processing, number of records per page | True |
plant[x] | refer to Query Plant information | True |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"total":8,
"page":0,
"pagesize":1,
"plant":[
{
"pid":1,
"uid":1,
"name":"PLANT",
"status":1,
"address":{
"country":"中国",
"province":"湖南省",
"city":"益阳市",
"county":"安化县",
"town":"梅城镇",
"village":"南街村",
"address":"南街村8组",
"lon":"111.651442",
"lat":"28.144826",
"timezone":28800
},
"profit":{
"unitProfit":"1.12",
"currency":"¥",
"currencyCountry":"CNY",
"coal":"0.221",
"co2":"0.031",
"so2":"0.023"
},
"nominalPower":"50000",
"energyYearEstimate":"5000000",
"designCompany":"EYBOND",
"picBig":"http://img.shinemonitor.com/picBig.png",
"picSmall":"http://img.shinemonitor.com/picSmall.png",
"install":"2017-06-29 02:16:21",
"gts":"2017-06-29 02:16:21"
}
]
}
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0006 | ERR_FORMAT_ERROR | Parameter error |
0x0104 | ERR_NOT_FOUND_PLANT | Unable to find Plant |
0x0008 | ERR_FORBIDDEN | Reject (Plant owner or Dealer or Device manufacturer calls, other roles reject) |