Пример #1
0
def get_site_inventory(**kwargs):
    """
    Inventory of SolarEdge equipment at the site
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    format_output(response=solaredge_api.get_site_inventory(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #2
0
def get_site_equipment_sensors(**kwargs):
    """
    Sensors in the site and connections
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    format_output(response=solaredge_api.get_site_equipment_sensors(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #3
0
def get_site_data_period(**kwargs):
    """
    Sites(s) start_date and end_date of production
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    format_output(response=solaredge_api.get_site_data_period(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #4
0
def get_site_details(**kwargs):
    """
    Get site details; name, location, status, etc.
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    format_output(response=solaredge_api.get_site_details(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #5
0
def get_site_overview(**kwargs):
    """
    Sites(s) overview data
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    format_output(response=solaredge_api.get_site_overview(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #6
0
def get_site_current_power_flow(**kwargs):
    """
    Current power flow between all elements of the site
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    format_output(response=solaredge_api.get_site_current_power_flow(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #7
0
def get_accounts(**kwargs):
    """
    Get the accessible >sub< accounts.

    NB: the response from this endpoint returns a "Not authorized" message if there are no sub-accounts assigned.
    """
    format_output(response=solaredge_api.get_accounts(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #8
0
def get_site_equipment_change_log(**kwargs):
    """
    Equipment component replacements ordered by date
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    format_output(
        response=solaredge_api.get_site_equipment_change_log(**kwargs),
        output_format=solaredge_cli_config.format)
Пример #9
0
def get_site_environmental_benefits(**kwargs):
    """
    Environmental benefits based on site energy production
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    format_output(
        response=solaredge_api.get_site_environmental_benefits(**kwargs),
        output_format=solaredge_cli_config.format)
Пример #10
0
def get_site_energy(**kwargs):
    """
    Site(s) energy measurements
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    kwargs = arg_helper.end_date(kwargs)
    kwargs = arg_helper.start_date(kwargs, delta_days=-7)
    format_output(response=solaredge_api.get_site_energy(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #11
0
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)
Пример #12
0
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)
Пример #13
0
def get_site_time_frame_energy(**kwargs):
    """
    Site(s) total energy produced for a given period
    """
    kwargs = arg_helper.site_id(kwargs, config=solaredge_cli_config)
    kwargs = arg_helper.end_date(kwargs)
    kwargs = arg_helper.start_date(kwargs, delta_days=-7)
    format_output(response=solaredge_api.get_site_time_frame_energy(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #14
0
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)
Пример #15
0
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)
Пример #16
0
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)
Пример #17
0
def get_version_supported(**kwargs):
    """
    Supported version numbers in <major.minor.revision> format.
    """
    format_output(response=solaredge_api.get_version_supported(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #18
0
def get_version_current(**kwargs):
    """
    Current version in <major.minor.revision> format
    """
    format_output(response=solaredge_api.get_version_current(**kwargs),
                  output_format=solaredge_cli_config.format)
Пример #19
0
def get_sites(**kwargs):
    """
    Get the list of accessible sites
    """
    format_output(response=solaredge_api.get_sites(**kwargs),
                  output_format=solaredge_cli_config.format)