Sign inSign up

larmic/sonnen-batterie-api

By larmic

•Updated over 1 year ago

Sonnen batterie rest api. See https://github.com/larmic-iot/sonnenBatterie-api

Image
0

4.4K

larmic/sonnen-batterie-api repository overview

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⁠.

⁠Versioning

Semantic Versioning 2.x⁠ is used. Version number MAJOR.MINOR.PATCH with

  • MAJOR version increase on incompatible API changes
  • MINOR version increase on adding new functionality in a backwards compatible manner
  • PATCH version increase on backwards compatible bug fixes or documentation

⁠Usage

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

⁠Example requests

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)

Tag summary

Content type

Image

Digest

sha256:1bf11a121…

Size

7 MB

Last updated

over 1 year ago

docker pull larmic/sonnen-batterie-api