def get_site_meters(**kwargs): """ Meter lifetime energy, metadata and connection detail """ kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config) kwargs = arg_helper.end_time(kwargs) kwargs = arg_helper.start_time(kwargs, delta_time=-(3600 * 24 * 7)) format_output(response=solaredge_api.get_site_meters(**kwargs), output_format=solaredge_cli_config.format)
def get_site_equipment_data(**kwargs): """ Get specific inverter data for a given timeframe """ kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config) kwargs = arg_helper.end_time(kwargs) kwargs = arg_helper.start_time(kwargs, delta_time=-(3600 * 24 * 7)) format_output(response=solaredge_api.get_site_equipment_data(**kwargs), output_format=solaredge_cli_config.format)
def get_site_energy_details(**kwargs): """ Detailed site energy measurements from meters """ kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config) kwargs = arg_helper.end_time(kwargs) kwargs = arg_helper.start_time(kwargs, delta_time=-(3600 * 24 * 7)) format_output(response=solaredge_api.get_site_energy_details(**kwargs), output_format=solaredge_cli_config.format)
def get_site_storage_data(**kwargs): """ Detailed storage information from batteries """ kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config) kwargs = arg_helper.end_time(kwargs) kwargs = arg_helper.start_time(kwargs, delta_time=-(3600 * 24 * 7)) format_output(response=solaredge_api.get_site_storage_data(**kwargs), output_format=solaredge_cli_config.format)
def get_site_power(**kwargs): """ Site(s) power measurements """ kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config) kwargs = arg_helper.end_time(kwargs) kwargs = arg_helper.start_time(kwargs, delta_time=-(3600 * 24 * 7)) format_output(response=solaredge_api.get_site_power(**kwargs), output_format=solaredge_cli_config.format)