Sonnen batterie rest api. See https://github.com/larmic-iot/sonnenBatterie-api
4.4K
A REST api client (adapter) for the SonnenBatterie. The default Sonnen-API (with token) provides too little information. This application does not need the token, but use the normal access to the SonnenBatterie. REST endpoints documented in open api 3.1.
Semantic Versioning 2.x is used. Version number MAJOR.MINOR.PATCH with
The easiest way is to use the docker image. Otherwise, the artifact will have to be built by yourself.
$ docker pull larmic/sonnen-batterie-api
$ docker run -d -p 8080:8080 --rm \
-e SONNENBATTERIE_IP='<my-battery-ip>' \
-e SONNENBATTERIE_USER_NAME='User' \
-e SONNENBATTERIE_USER_PASSWORD='<my-password>' \
--name larmic-sonnen-batterie-api larmic/sonnen-batterie-api
See open api 3 specification for further information.
$ curl http://localhost:8080/sonnen-api # Open Api 3.1 specification
$ curl http://localhost:8080/sonnen-api/api/consumption # Energy consumption
$ curl http://localhost:8080/sonnen-api/api/status # Battery status (incl. greed feed in, production and charge level)
Content type
Image
Digest
sha256:1bf11a121…
Size
7 MB
Last updated
over 1 year ago
docker pull larmic/sonnen-batterie-api