Skip to content

codingsolutions-ninja/solar-edge-api-client

Repository files navigation

solar-edge-api-client

Codacy grade Codecov GitHub GitHub tag (latest SemVer) Maven Central

Usage

import ninja.codingsolutions.solaredgeapiclient.interfaces.SolarEdgeApiClient;

SolarEdgeClientFactory factory = SolarEdgeClientFactory
    .builder()
    .apiKey("YOUR_API_KEY")
    .apiUrl("https://monitoringapi.solaredge.com")
    .httpClient(HttpClient.newHttpClient())
    .build();

SolarEdgeApiClient client = factory.buildClient();

CompletableFuture<OverviewResponse> future = client.getOverviewResponse(YOUR_SITE_NUMBER)
    .toCompletableFuture();

future.thenAcceptAsync(resp -> {
    System.out.println(String.format("Your solar panels are generating %s w/h of power",
        resp.getOverview().getCurrentPower().getPower()));
});
future.join();

Command Support Table

Command Supported Batch/Multi Site Support
Get Current Version ✔️
Get Supported Versions ✔️
Get Site Overview ✔️
Detailed Energy Query ✔️
Get Site List N/A
Get Power Flow
Get Environmental Impact ✔️

About

A simple API that abstracts fetching data from the solar edge api and getting back a POJO.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages