## EMS Kazi Farms Habibpur ## BASE URL: https://scubetech.xyz/kazi-habibpur ## 1. REB **(i) REB Load** ```json GET {{BASE_URL}}/reb-load/ Description: All REB load data of today Response: [ { "timedate": "2024-03-24T23:59:09.993000Z", "power": 157.8985595703125, "power_factor": 0.9842031002044678, "voltage_l1": 250.69000244140625, "voltage_l2": 251.9499969482422, "voltage_l3": 251.33999633789062, "current_l1": 191.96800231933594, "current_l2": 215.11199951171875, "current_l3": 232.343994140625, "cost": 1539.510986328125, "frequency": 50.6728515625, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "cost_mod": 1539.510986328125 }, { "timedate": "2024-03-25T00:00:10.097000Z", "power": 157.8985595703125, "power_factor": 0.9842031002044678, "voltage_l1": 250.69000244140625, "voltage_l2": 251.9499969482422, "voltage_l3": 251.33999633789062, "current_l1": 191.96800231933594, "current_l2": 215.11199951171875, "current_l3": 232.343994140625, "cost": 1539.510986328125, "frequency": 50.6728515625, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "cost_mod": 1539.510986328125 } ] ``` **(ii) REB Single Load (Live)** ```json GET {{BASE_URL}}/single-reb-power/ Description: REB load data live Response: { "timedate": "2024-03-25T15:16:47.603000Z", "power": 36.64410400390625, "power_factor": 0.6520624756813049, "voltage_l1": 252.85000610351562, "voltage_l2": 250.13999938964844, "voltage_l3": 255.77000427246094, "current_l1": 81.7959976196289, "current_l2": 71.47599792480469, "current_l3": 70.7040023803711, "cost": 357.280029296875, "frequency": 50.248046875, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "cost_mod": 357.280029296875 } ``` **(iii) Total REB Energy** ```json GET {{BASE_URL}}/total-reb-energy/ Description: Total Energy of whole day Response: { "total_reb_energy_absolute": 1760.9933949859812, "total_reb_energy": 1760.046255885375 } ``` **(iv) Today's REB Power** ```json GET {{BASE_URL}}/todays-reb-power/ Description: REB Load of Today Response: { "reb_today_data": [ { "timedate": "2024-03-05T00:00:05.457000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 }, { "timedate": "2024-03-05T00:01:05.530000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 }, { "timedate": "2024-03-05T00:02:05.613000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 }, { "timedate": "2024-03-05T00:03:05.713000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 } } ``` **(v) Today's REB Energy** ```json GET {{BASE_URL}}/todays-reb-energy/ Description: Summation of REB Power and Energy today Response: { "reb_power_sum": 105580.8021513708, "reb_energy": 1759.68003585618 } ``` **(vi) Today's REB Runtime** ```json GET {{BASE_URL}}/reb-runtime-today/ Description: REB total runtime of today Response: { "reb_runtime_today": "219:57" } ``` **(vii) REB Cost Live** ```json GET {{BASE_URL}}/reb-cost-live/ Desctription: Total REB cost of today Response: { "reb_cost": 17190.726304626463, "reb_cost_mod": 17199.960910930236 } ``` **(viii) Monitor All Live Load** ```json GET {{BASE_URL}}/monitor-load-reb/ Description: Monitor all the loads live Response: { "live_power": 50.86100769042969, "live_frequency": 50.50390625, "live_voltage_l1": 252.22999572753906, "live_voltage_l2": 252.21499633789062, "live_voltage_l3": 257.760009765625, "live_current_l1": 82.73999786376953, "live_current_l2": 74.38400268554688, "live_current_l3": 86.18930053710938, "average_current_harmonics": 0.0, "average_voltage_harmonics": 0.0, "todays_energy": 1763.9990663000071, "todays_energy_mod": 1764.9462054006135 } ``` **(ix) Today's REB Carbon Emission** ```json GET {{BASE_URL}}/today-reb-carbon-emission/ Description: Total carbon emission of today Response: { "reb_carbon_emission": 1.004471959059162 } ``` **(x) Net Meter Status** ```json GET {{BASE_URL}}/net-meter-status/ Descritption: Provides net meter status Response: [ { "date": "1990-01-01", "identifier": false } ] ``` **(xi) Net meter on** ```json PUT {{BASE_URL}}/net-meter-on/ Description: Turns off net meter if it is off ``` **(xii) Net meter off** ```json PUT {{BASE_URL}}/net-meter-off/ Description: Turns off net meter if it is on ``` ## 2. Generator 1 **(i) Generator 1 load** ```json GET {{BASE_URL}}/generator1-load/ Description: Monitors all the load of Generator 1 Response: [ { "timedate": "2024-03-24T23:59:09.993000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 }, { "timedate": "2024-03-25T00:00:10.097000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 } ] ``` **(ii) Generator 1 Load (Live)** ```json GET {{BASE_URL}}/single-generator1-power/ Description: Live Generator 1 load Response: { "timedate": "2024-03-25T15:37:49.940000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 } ``` **(iii)Total Generator 1 Energy** ```json GET {{BASE_URL}}/total-generator1-energy/ Description: Generator 1 total energy today Response: { "total_power_sum": 0.0, "total_generator1_energy": 0.0 } ``` **(iv) Generator 1 load of today** ```json GET {{BASE_URL}}/total-generator1-power/ Description: Generator 1 load of today Response: { "generator1_today_data": [ { "timedate": "2024-03-25T00:00:10.097000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 }, { "timedate": "2024-03-25T00:01:10.213000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 } ] ``` **(v) Total Generator 1 Energy of Today** ```json GET {{BASE_URL}}/todays-generator1-energy/ Description: Total Generatpr 1 energy of today Response: { "generator1_power_sum": 0.0, "generator1_energy": 0.0 } ``` **(vi) Generator 1 Runtime Today** ```json GET {{BASE_URL}}/generator1-runtime-today/ Description: Total runtime of Generator 1 today Response: { "generator1_runtime_today": "0:0" } ``` **(vii) Generator 1 Cost Live** ```json GET {{BASE_URL}}/generator1-cost-live/ Description: Live runtime of generator 1 Response: { "generator1_cost": 0.0 } ``` **(viii) Monitor All Load Live** ```json GET {{BASE_URL}}/monitor-load-generator1/ Description: Monitor all the laod live Response: { "live_power": 0.0, "live_frequency": 0.0, "live_voltage_l1": 0.0, "live_voltage_l2": 0.0, "live_voltage_l3": 0.0, "live_current_l1": 0.0, "live_current_l2": 0.0, "live_current_l3": 0.0, "average_current_harmonics": 0.0, "average_voltage_harmonics": 0.0, "todays_energy": 0.0 } ``` **(ix) Total Generator 1 Carbon Emission** ```json GET {{BASE_URL}}/today-generator1-carbon-emission/ Description: Total carbon emission from Generator 1 Response: { "generator1_carbon_emission": 0.0 } ``` **(x) Total Generator 1 Fuel Consumption** ```json GET {{BASE_URL}}/today-generator1-fuel-consumption/ Description: provides the fuel consumption of Generator 1 today Response: { "today_fuel_consumption": 0.0 } ``` ## 2. Generator 2 **(i) Generator 2 load** ```json GET {{BASE_URL}}/generator2-load/ Description: Monitors all the load of Generator 1 Response: [ { "timedate": "2024-03-26T23:59:12.660000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 } ] ``` **(ii) Generator 2 Load (Live)** ```json GET {{BASE_URL}}/single-generator2-power/ Description: Live Generator 2 load Response: { "timedate": "2024-03-27T10:21:18Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 } ``` **(iii)Total Generator 2 Energy** ```json GET {{BASE_URL}}/total-generator2-energy/ Description: Generator 2 total energy today Response: { "total_power_sum": 0.0, "total_generator2_energy": 0.0 } ``` **(iv) Generator 2 load of today** ```json GET {{BASE_URL}}/todays-generator2-power/ Description: Generator 2 load of today Response: { "generator2_today_data": [ { "timedate": "2024-03-27T00:00:12.783000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 }, { "timedate": "2024-03-27T00:01:12.897000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0, "fuel_consumption": 0.0 } ] } ``` **(v) Total Generator 2 Energy of Today** ```json GET {{BASE_URL}}/todays-generator2-energy/ Description: Total Generatpr 2 energy of today Response: { "generator2_power_sum": 0.0, "generator2_energy": 0.0 } ``` **(vi) Generator 2 Runtime Today** ```json GET {{BASE_URL}}/generator2-runtime-today/ Description: Total runtime of Generator 2 today Response: { "generator2_runtime_today": "5:10" } ``` **(vii) Generator 2 Cost Live** ```json GET {{BASE_URL}}/generator2-cost-live/ Description: Live runtime of generator 2 Response: { "generator2_cost": 44363.912426757815 } ``` **(viii) Monitor All Load Live From Generator 2** ```json GET {{BASE_URL}}/monitor-load-generator2/ Description: Monitor all the load live Response: { "live_power": 0.0, "live_frequency": 0.0, "live_voltage_l1": 0.0, "live_voltage_l2": 0.0, "live_voltage_l3": 0.0, "live_current_l1": 0.0, "live_current_l2": 0.0, "live_current_l3": 0.0, "average_current_harmonics": 0.0, "average_voltage_harmonics": 0.0, "todays_energy": 0.0 } ``` **(ix) Total Generator 2 Carbon Emission** ```json GET {{BASE_URL}}/today-generator2-carbon-emission/ Description: Total carbon emission from Generator 2 Response: { "generator2_carbon_emission": 0.0 } ``` **(x) Today Generator 2 fuel consumption** ```json GET {{BASE_URL}}/today-generator2-fuel-consumption/ Description: Generatro 2 fuel consumption for the whole day Response: { "today_fuel_consumption_generator2": 0.0 } ``` ## 3. Inverters **(i) Get all data for specific inverter** ```json GET {{BASE_URL}}/inverter-all/{{meter_Id}}/ Description: Monitor all data for a specific inverter Response: [ { "timedate": "2024-03-27T10:42:37.363000Z", "pv01_voltage": 0.0, "pv01_current": 0.0, "pv02_voltage": 0.0, "pv02_current": 0.0, "pv03_voltage": 0.0, "pv03_current": 0.0, "pv04_voltage": 0.0, "pv04_current": 0.0, "pv05_voltage": 0.0, "pv05_current": 0.0, "pv06_voltage": 0.0, "pv06_current": 0.0, "pv07_voltage": 0.0, "pv07_current": 0.0, "pv08_voltage": 0.0, "pv08_current": 0.0, "pv09_voltage": 0.0, "pv09_current": 0.0, "pv10_voltage": 0.0, "pv10_current": 0.0, "pv11_voltage": 0.0, "pv11_current": 0.0, "pv12_voltage": 0.0, "pv12_current": 0.0, "pv13_voltage": 0.0, "pv13_current": 0.0, "pv14_voltage": 0.0, "pv14_current": 0.0, "pv15_voltage": 0.0, "pv15_current": 0.0, "pv16_voltage": 0.0, "pv16_current": 0.0, "pv17_voltage": 0.0, "pv17_current": 0.0, "pv18_voltage": 0.0, "pv18_current": 0.0, "pv19_voltage": 0.0, "pv19_current": 0.0, "pv20_voltage": 0.0, "pv20_current": 0.0, "input_power": 0.0, "phase_a_voltage": 0.0, "phase_b_voltage": 0.0, "phase_c_voltage": 0.0, "phase_a_current": 0.0, "phase_b_current": 0.0, "phase_c_current": 0.0, "active_power": 0.0, "grid_frequency": 0.0, "efficiency": 0.0, "internal_temperature": 0.0, "total_energy_yield": 0.0, "daily_energy_yield": 0.0 } ] ``` **(ii) Get live data from specific inverter** ```json GET {{BASE_URL}}/inverter-live/{{meter_Id}}/ Description: Monitor all data for a specific inverter Response: { "timedate": "2024-03-27T10:42:37.363000Z", "pv01_voltage": 0.0, "pv01_current": 0.0, "pv02_voltage": 0.0, "pv02_current": 0.0, "pv03_voltage": 0.0, "pv03_current": 0.0, "pv04_voltage": 0.0, "pv04_current": 0.0, "pv05_voltage": 0.0, "pv05_current": 0.0, "pv06_voltage": 0.0, "pv06_current": 0.0, "pv07_voltage": 0.0, "pv07_current": 0.0, "pv08_voltage": 0.0, "pv08_current": 0.0, "pv09_voltage": 0.0, "pv09_current": 0.0, "pv10_voltage": 0.0, "pv10_current": 0.0, "pv11_voltage": 0.0, "pv11_current": 0.0, "pv12_voltage": 0.0, "pv12_current": 0.0, "pv13_voltage": 0.0, "pv13_current": 0.0, "pv14_voltage": 0.0, "pv14_current": 0.0, "pv15_voltage": 0.0, "pv15_current": 0.0, "pv16_voltage": 0.0, "pv16_current": 0.0, "pv17_voltage": 0.0, "pv17_current": 0.0, "pv18_voltage": 0.0, "pv18_current": 0.0, "pv19_voltage": 0.0, "pv19_current": 0.0, "pv20_voltage": 0.0, "pv20_current": 0.0, "input_power": 0.0, "phase_a_voltage": 0.0, "phase_b_voltage": 0.0, "phase_c_voltage": 0.0, "phase_a_current": 0.0, "phase_b_current": 0.0, "phase_c_current": 0.0, "active_power": 0.0, "grid_frequency": 0.0, "efficiency": 0.0, "internal_temperature": 0.0, "total_energy_yield": 0.0, "daily_energy_yield": 0.0 } ``` **(iii) Live Sensor Data** ```json GET {{BASE_URL}}/live-sensor-data/ Descritpion: Provides the live sensor data Response: { "timedate": "2024-03-27T10:45:38.067000Z", "module_temperature": 0.0, "radiation": 0.0 } ``` ## 3. Solar 1 **(i) Solar 1 Load** ```json GET {{BASE_URL}}/solar1-load/ Description: Solar 1 load all data Response: [ { "timedate": "2024-03-26T23:59:12.660000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 }, { "timedate": "2024-03-27T00:00:12.783000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 } ] ``` **(ii) Solar 1 Live Load** ```json GET {{BASE_URL}}/single-solar1-power/ Description: Solar 1 live load Response: { "timedate": "2024-03-27T10:52:21.240000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 } ``` **(iii) Solar 1 Total Energy** ```json GET {{BASE_URL}}/total-solar1-energy/ Description: Solar 1 total load today Response: { "total_power_sum": 0.0, "total_solar1_energy": 0.0 } ``` **(iv) Today Solar 1 Load** ```json GET {{BASE_URL}}/todays-solar1-power/ Description: Solar 1 data of today Response: { "solar1_today_data": [ { "timedate": "2024-03-27T00:00:12.783000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 }, { "timedate": "2024-03-27T00:01:12.897000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 } ] } ``` **(v) Total Solar 1 Energy** ```json GET {{BASE_URL}}/todays-solar1-energy/ Description: Total energyh from Solar 1 today Response: { "solar1_power_sum": 2419.297119140625, "solar1_energy": 40.32161865234375 } ``` **(vi) Solar 1 Runtime Today** ```json GET {{BASE_URL}}/solar1-runtime-today/ Description: Total runtime of the solar 1 today Response: { "solar1_runtime_today": "0:0" } ``` **(vii) Solar 1 cost** ```json GET {{BASE_URL}}/solar1-cost-live/ Description: Solar 1 cost Response: { "solar1_cost": 0.0 } ``` **(viii) All Monitor Solar 1** ```json GET {{BASE_URL}}/monitor-load-solar1/ Description: Monitor all live data of solar 1 Response: { "live_power": 0.0, "live_frequency": 0.0, "live_voltage_l1": 0.0, "live_voltage_l2": 0.0, "live_voltage_l3": 0.0, "live_current_l1": 0.0, "live_current_l2": 0.0, "live_current_l3": 0.0, "average_current_harmonics": 0.0, "average_voltage_harmonics": 0.0, "todays_energy": 0.0 } ``` **(ix) Solar 1 Carbon Emission** ```json GET {{BASE_URL}}/today-solar1-carbon-emission/ Description: Total Solar 1 Carbon Emission Today Response: { "solar1_carbon_emission": 0.033492641967773434 } ``` ## 4. Solar 2 **(i) Solar 2 Load** ```json GET {{BASE_URL}}/solar2-load/ Description: Solar 2 load all data Response: [ { "timedate": "2024-03-26T23:59:12.660000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 }, { "timedate": "2024-03-27T00:00:12.783000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 } ] ``` **(ii) Solar 2 Live Load** ```json GET {{BASE_URL}}/single-solar2-power/ Description: Solar 2 live load Response: { "timedate": "2024-03-27T11:00:22.093000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 } ``` **(iii) Solar 2 Total Energy** ```json GET {{BASE_URL}}/total-solar2-energy/ Description: Solar 2 total load today Response: { "total_power_sum": 0.0, "total_solar2_energy": 0.0 } ``` **(iv) Today Solar 2 Load** ```json GET {{BASE_URL}}/todays-solar2-power/ Description: Solar 2 data of today Response: { "solar2_today_data": [ { "timedate": "2024-03-27T00:00:12.783000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 }, { "timedate": "2024-03-27T00:01:12.897000Z", "power": 0.0, "power_factor": 0.0, "voltage_l1": 0.0, "voltage_l2": 0.0, "voltage_l3": 0.0, "current_l1": 0.0, "current_l2": 0.0, "current_l3": 0.0, "cost": 0.0, "frequency": 0.0, "current_harmonics": 0.0, "voltage_harmonics": 0.0 } ] } ``` **(v) Total Solar 2 Energy** ```json GET {{BASE_URL}}/todays-solar1-energy/ Description: Total energyh from Solar 2 today Response: { "solar2_power_sum": 2419.297119140625, "solar2_energy": 40.32161865234375 } ``` **(vi) Solar 2 Runtime Today** ```json GET {{BASE_URL}}/solar2-runtime-today/ Description: Total runtime of the solar 2 today Response: { "solar2_runtime_today": "0:35" } ``` **(vii) Solar 2 cost** ```json GET {{BASE_URL}}/solar2-cost-live/ Description: Solar 2 cost Response: { "solar2_cost": 0.0 } ``` **(viii) All Monitor Solar 2** ```json GET {{BASE_URL}}/monitor-load-solar2/ Description: Monitor all live data of solar 2 Response: { "live_power": 0.0, "live_frequency": 0.0, "live_voltage_l1": 0.0, "live_voltage_l2": 0.0, "live_voltage_l3": 0.0, "live_current_l1": 0.0, "live_current_l2": 0.0, "live_current_l3": 0.0, "average_current_harmonics": 0.0, "average_voltage_harmonics": 0.0, "todays_energy": 0.0 } ``` **(ix) Solar 2 Carbon Emission** ```json GET {{BASE_URL}}/today-solar1-carbon-emission/ Description: Total Solar 2 Carbon Emission Today Response: { "solar2_carbon_emission": 0.033492641967773434 } ``` ## 5. Total **(i) Monthly Total Energy** ```json GET {{BASE_URL}}/monthly-total-energy/ Description: Total energy of this month Response: [ { "date": "2024-03-16", "reb_energy": 1795.4042052710274, "generator_1_energy": 103.05428746541341, "generator_2_energy": 175.996390914917, "solar1_energy": 794.2070645774327, "solar2_energy": 392.4618742843275, "generator_hr": 32, "power_cuts_gen1": 1, "power_cuts_gen2": 1, "total_load_energy": 3260.3732608795167, "generator2_hr": 76, "reb_energy_mod": 1799.8138904293821 }, { "date": "2024-03-17", "reb_energy": 1700.0634795338847, "generator_1_energy": 209.369979985555, "generator_2_energy": 15.80491434733073, "solar1_energy": 1038.342113895233, "solar2_energy": 516.5766244587954, "generator_hr": 93, "power_cuts_gen1": 1, "power_cuts_gen2": 1, "total_load_energy": 3478.3528519948322, "generator2_hr": 12, "reb_energy_mod": 1704.888115329265 } ] ``` **(ii) This Month Total Energy** ```json GET {{BASE_URL}}/this-monthly-total-energy/ Description: This month total energy Response: { "sum_generator_1_energy": 1983.3038219451903, "sum_generator_2_energy": 795.0466588859757, "sum_generator_1_cost": 55446.404964192705, "sum_generator_2_cost": 22708.799945195515, "sum_generator1_fuel_consumption": 508.68262640635174, "sum_generator2_fuel_consumption": 208.3494207938512, "sum_generator_hr": "20:13", "sum_generator2_hr": "6:41" } ``` **(iii) This Year Total Energy** ```json GET {{BASE_URL}}/this-yearly-total-energy/ Description: This this total energy Response: { "sum_generator_1_energy": 1983.3038219451903, "sum_generator_2_energy": 795.0466588859757, "sum_generator_1_cost": 55446.404964192705, "sum_generator_2_cost": 22708.799945195515, "sum_generator1_fuel_consumption": 508.68262640635174, "sum_generator2_fuel_consumption": 208.3494207938512, "sum_generator_hr": "20:13", "sum_generator2_hr": "6:41" } ``` **(iii) Monthly Total Cost** ```json GET {{BASE_URL}}/monthly-total-cost/ Description: This month's total cost Response: [ { "date": "2024-03-16", "reb_cost": 17505.1909842516, "generator_1_cost": 2798.471183268229, "generator_2_cost": 5002.637353515625, "solar1_cost": 9135.710514123986, "solar2_cost": 4538.365482398386, "generator1_fuel_consumption": 1540.4428615570068, "generator2_fuel_consumption": 2754.453722000122, "total_load_cost": 39048.984393310544, "reb_cost_mod": 10521.539571027954 }, { "date": "2024-03-17", "reb_cost": 16575.61896917919, "generator_1_cost": 5759.988065592448, "generator_2_cost": 459.1072021484375, "solar1_cost": 12291.030985304651, "solar2_cost": 6123.98759204348, "generator1_fuel_consumption": 3170.6356296539307, "generator2_fuel_consumption": 252.71956253051758, "total_load_cost": 41164.40536295573, "reb_cost_mod": 16622.161384245752 } ] ``` **(iv) Yearly Total Energy** ```json GET {{BASE_URL}}/yearly-total-energy/ Description: Current year's total energy Response: [ { "date": "2024-03-31", "reb_energy": 26649.133238101706, "generator_1_energy": 1983.3038219451903, "generator_2_energy": 795.0466588859757, "solar1_energy": 5700.921339878156, "solar2_energy": 2805.7533488408644, "generator_hr": 1213.0, "power_cuts_gen1": 10.0, "power_cuts_gen2": 8.0, "total_load_energy": 37911.35232039951, "generator2_hr": 401, "reb_energy_mod": 26662.4827916344 } ] ``` **(v) Yearly Total Cost** ```json GET {{BASE_URL}}/yearly-total-cost/ Description: Total cost of current year Response: [ { "date": "2024-03-31", "reb_cost": 259829.52296028746, "generator_1_cost": 55446.404964192705, "generator_2_cost": 22708.799945195515, "solar1_cost": 62304.55662324318, "solar2_cost": 30710.6833651145, "generator1_fuel_consumption": 30520.957584381104, "generator2_fuel_consumption": 12500.965247631073, "total_load_cost": 433727.0038291524, "reb_cost_mod": 252603.8273353759 } ] ``` **(vi) Yearly Filter Generator** ```json POST {{BASE_URL}}/yearly-filter-generator/ Decription: Provides yearly generator data based on the user input Request: { "year": "2024" } Response: { "sum_generator_fuel_intake": 0, "sum_generator_1_energy": 1983.3038219451903, "sum_generator_2_energy": 795.0466588859757, "sum_generator_1_cost": 55446.404964192705, "sum_generator_2_cost": 22708.799945195515, "sum_generator_1_fuel_consumption": 508.68262640635174, "sum_generator_2_fuel_consumption": 208.3494207938512, "sum_generator_hr": "20:13", "sum_generator2_hr": "6:41" } ``` **(vii) Yearly Filter Energy** ```json POST {{BASE_URL}}/yearly-filter-energy/ Decription: Provides yearly REB Energy based on the user input Request: { "year":2024 } Response: { "yearly_reb_energy": null, "yearly_generator_1_energy": null, "yearly_generator_2_energy": null, "yearly_solar1_energy": null, "yearly_solar2_energy": null } ``` **(viii) Filter DGR Energy** ```json POST {{BASE_URL}}/filter-dgr-data/ Decription: Provides filtered DGR data based on the user input Request: { "start": "2024-03-23 00:00:00.000000", "end": "2024-03-24 23:59:59.999999" } Response: { "dgr_data": [ { "timedate": "2024-03-24T23:59:09.993000Z", "reb_power": 157.8985595703125, "generator_1_power": 0.0, "generator_2_power": 0.0, "solar1_power": 21.389450073242188, "solar2_power": 10.362924575805664, "reb_cost": 1539.510986328125, "generator_1_cost": 0.0, "generator_2_cost": 0.0, "solar1_cost": 208.54713439941406, "solar2_cost": 101.03851318359375, "total_load": 191.57481384277344, "total_load_cost": 1867.8544921875, "fuel_consumption_gen1": 0.0, "fuel_consumption_gen2": 0.0 }, { "timedate": "2024-03-24T23:58:09.877000Z", "reb_power": 157.8985595703125, "generator_1_power": 0.0, "generator_2_power": 0.0, "solar1_power": 21.389450073242188, "solar2_power": 10.362924575805664, "reb_cost": 1539.510986328125, "generator_1_cost": 0.0, "generator_2_cost": 0.0, "solar1_cost": 208.54713439941406, "solar2_cost": 101.03851318359375, "total_load": 191.57481384277344, "total_load_cost": 1867.8544921875, "fuel_consumption_gen1": 0.0, "fuel_consumption_gen2": 0.0 } ] } ``` **(ix) Filter Monthly Data** ```json GET, POST {{BASE_URL}}/filter-monthly-data/ Desription: Provides data filtering monthly Request: { "month":"3", "year":"2024" } Response: { "dgr_data": [ { "date": "2024-03-16", "reb_cost": 17505.1909842516, "reb_cost_mod": 10521.539571027954, "generator_1_cost": 2798.471183268229, "generator_2_cost": 5002.637353515625, "solar1_cost": 9135.710514123986, "solar2_cost": 4538.365482398386, "generator1_fuel_consumption": 25.0, "generator2_fuel_consumption": 45.0, "total_load_cost": 39048.984393310544, "water_flow_cost": 0, "reb_energy": 1795.4042052710274, "reb_energy_mod": 1799.8138904293821, "generator_1_energy": 103.05428746541341, "generator_2_energy": 175.996390914917, "solar1_energy": 794.2070645774327, "solar2_energy": 392.4618742843275, "total_load_energy": 3260.3732608795167, "generator_fuel_intake": 0, "generator_hr": 32, "generator2_hr": 76 }, { "date": "2024-03-17", "reb_cost": 16575.61896917919, "reb_cost_mod": 16622.161384245752, "generator_1_cost": 5759.988065592448, "generator_2_cost": 459.1072021484375, "solar1_cost": 12291.030985304651, "solar2_cost": 6123.98759204348, "generator1_fuel_consumption": 52.0, "generator2_fuel_consumption": 4.0, "total_load_cost": 41164.40536295573, "water_flow_cost": 0, "reb_energy": 1700.0634795338847, "reb_energy_mod": 1704.888115329265, "generator_1_energy": 209.369979985555, "generator_2_energy": 15.80491434733073, "solar1_energy": 1038.342113895233, "solar2_energy": 516.5766244587954, "total_load_energy": 3478.3528519948322, "generator_fuel_intake": 0, "generator_hr": 93, "generator2_hr": 12 } ] } ``` **(x) Filter Yearly Data** ```json GET, POST {{BASE_URL}}/filter-yearly-data/ Desription: Provides data filtering monthly Request: { "year": 2024 } Response: { "dgr_data": [ { "date": "2024-03-31", "reb_cost": 259829.52296028746, "reb_cost_mod": 252603.8273353759, "generator_1_cost": 55446.404964192705, "generator_2_cost": 22708.799945195515, "solar1_cost": 62304.55662324318, "solar2_cost": 30710.6833651145, "generator1_fuel_consumption": 508.68262640635174, "generator2_fuel_consumption": 208.3494207938512, "total_load_cost": 433727.0038291524, "reb_energy": 26649.133238101706, "reb_energy_mod": 26662.4827916344, "generator_1_energy": 1983.3038219451903, "generator_2_energy": 795.0466588859757, "solar1_energy": 5700.921339878156, "solar2_energy": 2805.7533488408644, "total_load_energy": 37911.35232039951, "generator_hr": 1213.0 } ] } ``` **(xi) Whole Year Energy Sum** ```json GET {{BASE_URL}}/whole-year-energy-sum/ Description: Summation of energy of the whole year Response: { "reb_energy_sum": 26649.133238101706, "generator_1_energy_sum": 1983.3038219451903, "generator_2_energy_sum": 795.0466588859757, "solar1_energy_sum": 5700.921339878156, "solar2_energy_sum": 2805.7533488408644, "total_load_energy_sum": 37911.35232039951, "reb_energy_mod_sum": 26662.4827916344 } ``` **(xii) Whole Year Cost Sum** ```json GET {{BASE_URL}}/whole-year-cost-sum/ Description: Total cost of the whole year Response: { "reb_cost_sum": 259829.52296028746, "generator_1_cost_sum": 55446.404964192705, "generator_2_cost_sum": 22708.799945195515, "solar1_cost_sum": 62304.55662324318, "solar2_cost_sum": 30710.6833651145, "total_load_cost_sum": 433727.0038291524, "reb_cost_mod_sum": 252603.8273353759 } ``` **(xiii) Filter By Date Total Energy** ```json POST {{BASE_URL}}/filter-by-date-energy/ Description: Total Enery within the filtered date Request: { "start": "2024-03-23", "end": "2024-03-24" } Response: { "reb_energy_sum": 5840.710488093892, "reb_energy_mod_sum": 5840.742183537264, "generator_1_energy_sum": 0.0, "generator_2_energy_sum": 0.0012662773331006368, "solar1_energy_sum": 1386.9220851288487, "solar2_energy_sum": 680.5011346307738, "generator_1_cost_sum": 0.0, "generator_2_cost_sum": 1.939854049682617, "generator1_fuel_consumption_sum": 0.0, "generator2_fuel_consumption_sum": 0.017796826362609864, "generator_hr_sum": "0:0", "generator2_hr_sum": "0:1" } ``` **(xiv) Power Usage In Percentage** ```json GET {{BASE_URL}}/power-usage-in-percentage/ Details: Power usage percentage of REBN, Generator 1, Generator 2, solar 1, solar 2 Response: { "percentage_reb": 0, "percentage_generator_1": 0, "percentage_generator_2": 0, "percentage_solar1": 0, "percentage_solar2": 0 } ``` **(xv) Power cuts in minutes** ```json GET {{BASE_URL}}/power-cuts-in-minutes/ Description: Provides the power cuts in minutes Response: { "3": { "0-10_min": 3, "11-30_min": 9, "31-60_min": 3, "1-2_hr": 2, "2-3_hr": 0, "3hr_higher": 2 } } ``` **(xvi) Yearly Filter Energy** ```json POST {{BASE_URL}}/yearly-filter-energy/ Description: Provides Yearly energy based on the filterd body Request: { "year":"2024" } Response: { "yearly_total_energy": 26649.133238101706, "yearly_dpdc_energy": 1983.3038219451903, "yearly_light_energy": 795.0466588859757, "yearly_heavy_energy": 5700.921339878156, "yearly_generator_energy": 2805.7533488408644, "yearly_reb_energy_mod": 26662.4827916344 } ``` **(xvii) Energy contrtibution percentage** ```json GET {{BASE_URL}}/energy-usage-in-percentage/ Description: Provides the energy contribution percentage Response: { "reb_energy_percentage": 0, "generator_1_energy_percentage": 0, "generator_2_energy_percentage": 0, "solar1_energy_percentage": 0, "solar2_energy_percentage": 0 } ``` **(xviii) Today's Total Cost** ```json GET {{BASE_URL}}/todays-total-cost/ Description: Provides the total cost of current date Response: { "reb_cost": 0.0, "generator1_cost": 0.0, "generaotr2_cost": 0.0, "solar1_cost": 0.0, "solar2_cost": 0.0, "total_load_cost": 0.0, "reb_cost_mod": 0.0 } ``` **(xix)Time usage in percentage** ```json GET {{BASEW_URL}}/time-usage-in-percentage/ Description: Provdies the time usage in percentage Response: { "Percentage_reb": 0, "Percentage_generator": 0, "Percentage_solar": 100 } ``` **(xx) Last Two Entries With Percentage** ```json GET {{BASE_URL}}/last-two-entries-with-pecrentage/ Description: Provides the last two entries in percentage Response: { "previous_two_entries": [], "percentage_diff": null } ``` **(xxi) Generation Time and Power Cuts in year** ```json GET {{BASE_URL}/generation-time-and-power-cuts-by-year/ Description: Provides the time and power cuts of the generator in year Response: ``` ## 6. Total Load **(i) Total Load** ```json GET {{BASE_URL}}/total-load/ Description: Total load based on the time Response: [ { "timedate": "2024-03-26T23:59:12.660000Z", "total_load": 0.0, "total_load_cost": 0.0 }, { "timedate": "2024-03-27T00:00:12.783000Z", "total_load": 0.0, "total_load_cost": 0.0 }, { "timedate": "2024-03-27T00:01:12.897000Z", "total_load": 0.0, "total_load_cost": 0.0 } ] ``` **(ii) Total Load Energy** ```json GET {{BASE_URL}}/total-load-energy/ Description: Total Power and Total Load Energy Response: { "total_power_sum": 36006.8892288208, "total_load_energy": 600.1148204803467 } ``` **(iii) Total Load (Live)** ```json GET {{BASE_URL}}/single-total-load/ Description: Live total load Response: { "timedate": "2024-03-27T15:27:50.073000Z", "total_load": 0.0, "total_load_cost": 0.0 } ``` **(iv) Total Load Cost Live** ```json GET {{BASE_URL}}/total-load-cost-live/ Description: Provide the live total cost Response: { "generator1_cost": 0.0 } ``` ## 7. User Register **(i) Self register** ```json POST {{BASE_URL}}/register/ Description: Create user from UI Request: { "first_name":"Muhib", "email":"muhibh22@gmail.com", "password":"123456", "phone_no":"01305306177", "company_name":"Scube Technoliges", "address":"Dhaka" } Response: { "token": "*******************" } ``` **(ii) Login** ```json POST {{BASE_URL}}/login/ Description: Login System Request: { "email":"muhibh22@gmail.com", "password":"123456" } Response: { "token": "*******************", "role": "super_admin" } ``` **(iii) Forget Password** ***Procedure 1:*** ```json POST {{BASE_URL}}/forget-password/ Description: Forget password Request: { "email":"muhibh22@gmail.com" } Response: { "resent_link": "http://192.168.68.185/reset-password/**/*************/", "otp": 720865 } ``` ***Procedure 2:*** ```json POST {{BASE_URL}}/reset-password/**/*************/ Description: After getting the reset_link and the otp from the above link to change the password user have to follow this process Request: { "password":"******", "otp":"720865" } Response: { "message": "Password has been reset successfully." } ``` **(iv) User Profile** ```json GET {{BASE_URL}}/user-profile/ Description: Send User profile response Response: { "email": "muhibh22@gmail.com", "first_name": "Muhib", "phone_no": "01305306177", "company_name": "Scube Technoliges", "address": "Dhaka" } ``` **(v) Pending User** ```json GET {{BASE_URL}}/pending-user/ Description: Provides user approval list to the admin and super user Response: [ { "id": 2, "username": "Araf@gmail.com", "email": "Araf@gmail.com", "first_name": "Araf", "is_superuser": false, "is_staff": false } ] ``` **(vi) Admin Approval** ```json PUT {{BASE_URL}}/pending-user/<str:user_id>/ Description: User approve by Super User or Admin. <str:user_id> = user id which can be foun from the pending users Response: { "message": "User 2 approval status set to True" } ``` **(vii) Register Done by Admin** ```json POST {{BASE_URL}}/register-by-admin/ Description: A user account is created by admin Request: { "first_name":"Zaivs", "email":"zaivsguitars@gmail.com", "phone_no":"01928272244", "company_name":"Scube Technoliges", "address":"Dhaka" } Response: { "message": "Account created and password has been sent." } ``` **(viii) Approved Users** ```json GET {{BASE_URL}}/approved-user/ Description: Admin and the super user can see the approved users Response: [ { "id": 1, "username": "muhibh22@gmail.com", "email": "muhibh22@gmail.com", "first_name": "Muhib", "is_superuser": true, "is_staff": true }, { "id": 2, "username": "araf@gmail.com", "email": "Araf@gmail.com", "first_name": "Araf", "is_superuser": false, "is_staff": false }, { "id": 3, "username": "muhibjeckel@gmail.com", "email": "zaivsguitars@gmail.com", "first_name": "Zaivs", "is_superuser": false, "is_staff": false } ] ``` **(ix) Update User Profile** ```json PUT {{BASE_URL}}/update-profile/ Description: Update the user profile Request: { "first_name":"", "phone_no": "", "company_name":"", "address":"" } Response: { "message":"User profile updated successfully" } ``` **(x) Delete User** ```json DELETE {{BASE_URL}}/delete-user/{{USER_ID}}/ Description: Delete user Response: { "message": "User was deleted successfully" } ``` **(xi) Grant Admin Permission** ```json PUT {{BASE_URL}}/grant-superuser/<int:user_id>/ Description: Grant Super User Response: { "message": "staff permission granted successfully" } ``` **(xii)Log out** ```json POST {{BASE_URL}}/logout/ Description: Log out user Response: { "message":"Logged out successfully" } ``` **(xiii) Change Password** ```json POST {{BASE_URL}}/change-password/ Description: Change user password Request: { "old_password":"***********", "new_password":"***********" } Response: { message": "Successfully changed password" } ```