voor de mensen die wat meer tijd hebben en graag een SEMS (goodwe) portal naar PVOUTPUT willen maken. dit gedeelte heb ik reeds ontrafeld.. moet dus enkel nog in PHP gegoten worden en PVOUTPUT gedeelte.
Volgende stap is powerstation id, kun je ook wel retrieven uit de URL op hoofdpage, maar voor de volledigheid.
en dan kunnen we eindelijk de retrieval doen.
{
"language": "en",
"para": "{\"model\":{\"PowerStationId\":\"3eac9f1a-bf1b-45ab-9e07-yyyyyyy\"}}",
"hasError": false,
"msg": "success",
"code": "0",
"data": {
"info": {
"powerstation_id": "3eac9f1a-bf1b-45ab-9e07-yyyyyyy",
"time": "10/07/2018 23:29:53",
"stationname": "stad",
"address": "adres ",
"owner_name": null,
"owner_phone": null,
"owner_email": "email@ttt.com",
"battery_capacity": 0.0,
"turnon_time": "01/29/2018 00:00:00",
"capacity": 2.64,
"longitude": 00.14,
"latitude": 0.942699,
"powerstation_type": "residential",
"status": -1,
"is_stored": false,
"charts_type": 4,
"has_pv": true,
"has_statistics_charts": false,
"only_bps": false,
"only_bpu": false
},
"kpi": {
"pac": 0.0,
"power": 9.3,
"total_power": 3203.0,
"day_income": 0,
"total_income": 0.02,
"yield_rate": 0.24,
"currency": "EUR"
},
"images": [],
"weather": {
"HeWeather6": [
{
"basic": {
"cid": "xxxxx",
"location": "stad",
"cnty": "xxxx",
"lat": "5xx",
"lon": "5xx",
"tz": "+2.00"
},
"update": {
"loc": "2018-09-04 10:44",
"utc": "2018-09-04 08:44"
},
"status": "ok",
"daily_forecast": [
{
"cond_code_d": "305",
"cond_code_n": "305",
"cond_txt_d": "Light Rain",
"cond_txt_n": "Light Rain",
"date": "2018-09-04",
"hum": "96",
"pcpn": "0.0",
"pop": "0",
"pres": "1017",
"tmp_max": "24",
"tmp_min": "15",
"uv_index": "5",
"vis": "18",
"wind_deg": "-1",
"wind_dir": "no direction",
"wind_sc": "1-2",
"wind_spd": "6"
},
{
"cond_code_d": "305",
"cond_code_n": "104",
"cond_txt_d": "Light Rain",
"cond_txt_n": "Overcast",
"date": "2018-09-05",
"hum": "91",
"pcpn": "0.0",
"pop": "0",
"pres": "1017",
"tmp_max": "24",
"tmp_min": "15",
"uv_index": "5",
"vis": "17",
"wind_deg": "78",
"wind_dir": "NE",
"wind_sc": "1-2",
"wind_spd": "6"
},
{
"cond_code_d": "305",
"cond_code_n": "305",
"cond_txt_d": "Light Rain",
"cond_txt_n": "Light Rain",
"date": "2018-09-06",
"hum": "96",
"pcpn": "0.9",
"pop": "10",
"pres": "1013",
"tmp_max": "25",
"tmp_min": "15",
"uv_index": "4",
"vis": "14",
"wind_deg": "33",
"wind_dir": "NE",
"wind_sc": "1-2",
"wind_spd": "7"
},
{
"cond_code_d": "305",
"cond_code_n": "305",
"cond_txt_d": "Light Rain",
"cond_txt_n": "Light Rain",
"date": "2018-09-07",
"hum": "91",
"pcpn": "0.0",
"pop": "0",
"pres": "1013",
"tmp_max": "20",
"tmp_min": "11",
"uv_index": "4",
"vis": "20",
"wind_deg": "277",
"wind_dir": "W",
"wind_sc": "1-2",
"wind_spd": "3"
},
{
"cond_code_d": "305",
"cond_code_n": "104",
"cond_txt_d": "Light Rain",
"cond_txt_n": "Overcast",
"date": "2018-09-08",
"hum": "81",
"pcpn": "0.0",
"pop": "0",
"pres": "1020",
"tmp_max": "18",
"tmp_min": "10",
"uv_index": "5",
"vis": "20",
"wind_deg": "279",
"wind_dir": "W",
"wind_sc": "1-2",
"wind_spd": "11"
},
{
"cond_code_d": "104",
"cond_code_n": "104",
"cond_txt_d": "Overcast",
"cond_txt_n": "Overcast",
"date": "2018-09-09",
"hum": "82",
"pcpn": "0.0",
"pop": "0",
"pres": "1016",
"tmp_max": "20",
"tmp_min": "11",
"uv_index": "5",
"vis": "17",
"wind_deg": "189",
"wind_dir": "S",
"wind_sc": "1-2",
"wind_spd": "6"
},
{
"cond_code_d": "305",
"cond_code_n": "305",
"cond_txt_d": "Light Rain",
"cond_txt_n": "Light Rain",
"date": "2018-09-10",
"hum": "88",
"pcpn": "0.0",
"pop": "0",
"pres": "1022",
"tmp_max": "20",
"tmp_min": "11",
"uv_index": "4",
"vis": "16",
"wind_deg": "231",
"wind_dir": "SW",
"wind_sc": "1-2",
"wind_spd": "8"
}
]
}
]
},
"inverter": [
{
"sn": "93000DSN172xxxx",
"is_stored": false,
"name": "93000DSNxxxxx",
"in_pac": 0.0,
"out_pac": 0.0,
"eday": 9.3,
"emonth": 49.9,
"etotal": 3203.0,
"status": -1,
"turnon_time": "01/30/2018 21:28:00",
"releation_id": "xxxxxxxxx",
"type": "GW3000D-NS",
"capacity": 3.0,
"d": {
"pw_id": "3eac9f1a-bf1b-45ab-9e07-yyyyyyy",
"capacity": "3kW",
"model": "GW3000D-NS",
"output_power": "0W",
"output_current": "0A",
"grid_voltage": "234.3V",
"backup_output": "0V/0W",
"soc": "0%",
"soh": "0%",
"last_refresh_time": "10/08/2018 01:14:19",
"work_mode": "",
"dc_input1": "0V/0A",
"dc_input2": "107.8V/0A",
"battery": "0V/0A/0W",
"bms_status": "No battery",
"warning": "Normal",
"charge_current_limit": "0A",
"discharge_current_limit": "0A",
"firmware_version": 2100502.0,
"creationDate": "10/08/2018 01:14:19",
"eDay": 9.3,
"eTotal": 3203.0,
"pac": 0.0,
"hTotal": 3752.0,
"vpv1": 0.0,
"vpv2": 107.8,
"vpv3": 0.0,
"vpv4": 0.0,
"ipv1": 0.0,
"ipv2": 0.0,
"ipv3": 0.0,
"ipv4": 0.0,
"vac1": 234.3,
"vac2": 0.0,
"vac3": 0.0,
"iac1": 0.0,
"iac2": 0.0,
"iac3": 0.0,
"fac1": 50.01,
"fac2": 0.0,
"fac3": 0.0,
"istr1": 0.0,
"istr2": 0.0,
"istr3": 0.0,
"istr4": 0.0,
"istr5": 0.0,
"istr6": 0.0,
"istr7": 0.0,
"istr8": 0.0,
"istr9": 0.0,
"istr10": 0.0,
"istr11": 0.0,
"istr12": 0.0,
"istr13": 0.0,
"istr14": 0.0,
"istr15": 0.0,
"istr16": 0.0
},
"it_change_flag": false,
"tempperature": 17.9,
"check_code": "061396",
"next": null,
"prev": null,
"next_device": {
"sn": null,
"isStored": false
},
"prev_device": {
"sn": null,
"isStored": false
},
"invert_full": {
"sn": "93000DSNxxxx",
"powerstation_id": "3eac9f1a-bf1b-45ab-9e07-yyyyyyy",
"name": "93000DSN172W0233",
"model_type": "GW3000D-NS",
"change_type": 0,
"capacity": 3.0,
"eday": 9.3,
"iday": 3.1620000000000004,
"etotal": 3203.0,
"itotal": 1089.02,
"hour_total": 3752.0,
"status": -1,
"turnon_time": 1517318880617,
"pac": 0.0,
"tempperature": 17.9,
"vpv1": 0.0,
"vpv2": 107.8,
"vpv3": 0.0,
"vpv4": 0.0,
"ipv1": 0.0,
"ipv2": 0.0,
"ipv3": 0.0,
"ipv4": 0.0,
"vac1": 234.3,
"vac2": 0.0,
"vac3": 0.0,
"iac1": 0.0,
"iac2": 0.0,
"iac3": 0.0,
"fac1": 50.01,
"fac2": 0.0,
"fac3": 0.0,
"istr1": 0.0,
"istr2": 0.0,
"istr3": 0.0,
"istr4": 0.0,
"istr5": 0.0,
"istr6": 0.0,
"istr7": 0.0,
"istr8": 0.0,
"istr9": 0.0,
"istr10": 0.0,
"istr11": 0.0,
"istr12": 0.0,
"istr13": 0.0,
"istr14": 0.0,
"istr15": 0.0,
"istr16": 0.0,
"last_time": 1538932459018,
"vbattery1": 0.0,
"ibattery1": 0.0,
"pmeter": 0.0,
"soc": 0.0,
"soh": 0.0,
"bms_discharge_i_max": 0.0,
"bms_charge_i_max": 0.0,
"bms_warning": 0,
"bms_alarm": 0,
"battary_work_mode": 0,
"workmode": 0,
"vload": 0.0,
"iload": 0.0,
"firmwareversion": 20505.0,
"pbackup": 0.0,
"seller": 0.0,
"buy": 0.0,
"yesterdaybuytotal": null,
"yesterdaysellertotal": null,
"yesterdayetotal": null,
"yesterdayetotalload": null,
"thismonthetotle": 59.199999999999818,
"lastmonthetotle": 3143.8,
"ram": 50002.0,
"outputpower": 0.0,
"fault_messge": 0.0,
"isbuettey": false,
"isbuetteybps": false,
"isbuetteybpu": false,
"isESUOREMU": false
},
"time": "10/07/2018 23:29:53",
"battery": "0V/0A/0W",
"firmware_version": 2100502.0,
"warning_bms": "Normal",
"soh": "0%",
"discharge_current_limit_bms": "0A",
"charge_current_limit_bms": "0A",
"soc": "0%",
"pv_input_2": "107.8V/0A",
"pv_input_1": "0V/0A",
"back_up_output": "0V/0W",
"output_voltage": "234.3V",
"output_current": "0A",
"output_power": "0W",
"total_generation": "3203kWh",
"daily_generation": "9.3kWh",
"battery_charging": "0V/0A/0W",
"last_refresh_time": "10/08/2018 01:14:19",
"bms_status": "No battery",
"pw_id": "3eac9f1a-bf1b-45ab-9e07-yyyyyyy",
"fault_message": "",
"battery_power": 0.0,
"point_index": "2",
"points": [
{
"target_index": 1,
"target_name": "Vpv1",
"display": "Vpv1(V)",
"unit": "V",
"target_key": "Vpv1",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 2,
"target_name": "Vpv2",
"display": "Vpv2(V)",
"unit": "V",
"target_key": "Vpv2",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 5,
"target_name": "Ipv1",
"display": "Ipv1(A)",
"unit": "A",
"target_key": "Ipv1",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 6,
"target_name": "Ipv2",
"display": "Ipv2(A)",
"unit": "A",
"target_key": "Ipv2",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 9,
"target_name": "Vac1",
"display": "Vac1(V)",
"unit": "V",
"target_key": "Vac1",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 12,
"target_name": "Iac1",
"display": "Iac1(A)",
"unit": "A",
"target_key": "Iac1",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 15,
"target_name": "Fac1",
"display": "Fac1(Hz)",
"unit": "Hz",
"target_key": "Fac1",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 18,
"target_name": "Pac",
"display": "Pac(W)",
"unit": "W",
"target_key": "Pac+PacH*65536",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 19,
"target_name": "WorkMode",
"display": "WorkMode()",
"unit": "",
"target_key": "WorkMode",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 20,
"target_name": "Temperature",
"display": "Temperature(℃)",
"unit": "℃",
"target_key": "Tempperature",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 21,
"target_name": "Daily Generation",
"display": "Daily Generation(kWh)",
"unit": "kWh",
"target_key": "EDay",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 22,
"target_name": "Total Generation",
"display": "Total Generation(kWh)",
"unit": "kWh",
"target_key": "ETotal",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 23,
"target_name": "HTotal",
"display": "HTotal(Hrs)",
"unit": "Hrs",
"target_key": "HTotal",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
},
{
"target_index": 36,
"target_name": "RSSI",
"display": "RSSI(%)",
"unit": "%",
"target_key": "Reserved5",
"target_sn_six": null,
"target_sn_seven": null,
"target_type": null
}
]
}
],
"hjgx": {
"co2": 3.193391,
"tree": 175.01192,
"coal": 1.294012
},
"pre_powerstation_id": "",
"nex_powerstation_id": "",
"powerflow": {
"pv": "",
"pvStatus": 0,
"bettery": "",
"betteryStatus": 0,
"load": "",
"loadStatus": 0,
"grid": "",
"soc": 0,
"socText": "",
"hasEquipment": false,
"gridStatus": 0
},
"energeStatisticsCharts": {
"sum": 9.3,
"buy": 0.0,
"buyPercent": 100.0,
"sell": 0.0,
"sellPercent": 100.0,
"selfUseOfPv": 9.3,
"consumptionOfLoad": 9.3,
"chartsType": 4,
"hasPv": true
},
"soc": {
"power": 0,
"status": 0
}
},
"timeSpan": 74,
"api": "http://euapi.sems.com.cn:82/api/v1/PowerStation/GetMonitorDetailByPowerstationId",
"count": 52
}
[
Voor 100% gewijzigd door
Icekiller2k6 op 08-10-2018 09:48
]