Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.65 KB

README.md

File metadata and controls

45 lines (26 loc) · 1.65 KB

This repository contains libraries that can be used with the sonnen.de photovoltaics system.

☝️ License
When you use the software provided here you agree to the the Eclipse Public License (EPL) 2.0.

The sonnen-client-rest is a Java based client to access the JSON API of a sonnen battery like the sonnenBatterie 10 performance.

SonnenClientFactory factory = SonnenClientFactory.getInstance();
SonnenClient sonnenClient = factory.create("http://<your_host_or_ip>/api/v2", "<your_api_token>")

Status status = sonnenClient.getStatus();

System.out.println("Erzeugung [W]: " + status.getProductionW());
System.out.println("Verbrauch [W]: " + status.getConsumptionW());
System.out.println("Einspeisung [W]: " + status.getGridFeedInW());
System.out.println("Notstromreserve: " + status.getBackupBuffer());

will output something like this:

Erzeugung [W]: 5864
Verbrauch [W]: 415
Einspeisung [W]: 5392
Notstromreserve: 15

The sonnen-data-logger is a Spring Boot application that retrieves status data from a sonnenBatterie and persists it in a mongodb.

It runs on amd64 and arm/v7 (such as a raspberry pi).

Docker

A Docker image is available at https://hub.docker.com/repository/docker/linkintersystems/sonnen-data-logger.

Setup steps are explained at sonnen-data-logger.