Very Minimalistic Webapi for Kostal Plenticore Plus Photovoltaics Appliance
My Goal was to create a very barebones WebApi with which i could create a nice Frontend with some simple html, css and js:
You can build you own frontend for your WebApi, you can take this Repository as a Reference:
Minimalistic Frontend for KostalWebApi by NIEI
curl -X GET https://solarapi.niei.net/data
{
"production":"0 W",
"consumption":"952 W",
"grid":"952 W",
"feedIn":false
}
You can deploy this WebApi via a Docker compose script:
version: "3.9"
services:
web:
image: niei/kostalwebapi:latest
container_name: kostalwebapi
network_mode: bridge
ports:
- 1024:80
volumes:
- ./data/appsettings.json:/app/appsettings.json:ro
restart: always
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*",
"KostalPlenticoreIpAddress" : "192.168.1.123"
}