Replace pistache solar-server with .net solar api

This commit is contained in:
2022-12-28 19:16:26 +01:00
parent cb2aef0674
commit 756435ae2a
28 changed files with 599 additions and 469 deletions

View File

@@ -0,0 +1,4 @@
namespace Solar.Api.Models;
public record DayResponse(ZeverDayLog[] ZeverLogs, EnvoyDayLog[] EnvoyLogs);

View File

@@ -0,0 +1,3 @@
namespace Solar.Api.Models;
public record DaySummaryLog(DateOnly Date, int ZeverTotalWatts, int EnvoyTotalWatts);

View File

@@ -0,0 +1,3 @@
namespace Solar.Api.Models;
public record DaysResponse(DaySummaryLog[] DayLogs);

View File

@@ -0,0 +1,3 @@
namespace Solar.Api.Models;
public record EnvoyDayLog(TimeOnly TimeUtc, int CurrentWatts, int TotalWatts);

View File

@@ -0,0 +1,3 @@
namespace Solar.Api.Models;
public record MonthLog(int Year, int Month, int ZeverTotalWatts, int EnvoyTotalWatts);

View File

@@ -0,0 +1,3 @@
namespace Solar.Api.Models;
public record MonthSummariesResponse(MonthLog[] MonthLogs);

View File

@@ -0,0 +1,3 @@
namespace Solar.Api.Models;
public record ZeverDayLog(TimeOnly TimeUtc, int CurrentWatts, int TotalWatts);