Skip to content

[GET] charger

/api/graphs/charger

ChargerMeterGraphRequestDTO

Attributes:

Name Type Description
site_id int

assigned site id

start datetime

start datetime in the format of %Y-%m-%d %H:%M:%S

end datetime

end datetime in the format of %Y-%m-%d %H:%M:%S

graph_type str

bar or graph

ChargerMeterGraphStatisticsDTO

Attributes:

Name Type Description
total_energy list

monthly total energy in kWh

peak_value list

the peak power generated in the given datetime range

peak_time list

time of which the peak power occurred

load_factor list

the average load divided by the peak load in a specified time period

latest list

latest reading from the selected device in kW

ChargerMeterGraphResponseDTO

Attributes:

Name Type Description
charger_meter_data list

datapoints for the graph

order list

order of the datapoints in the graph. First index will always be the datetime

statistics Union[dict, ChargerMeterGraphStatisticsDTO]

statistics based on the given date range in the format of ChargerMeterGraphStatisticsDTO