Skip to content

Commit

Permalink
Merge pull request #1568 from pkuehnel/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
pkuehnel authored Oct 26, 2024
2 parents 30f9386 + 5f44a70 commit 87db477
Show file tree
Hide file tree
Showing 46 changed files with 5,293 additions and 19 deletions.
2 changes: 1 addition & 1 deletion Plugins.Modbus/Plugins.Modbus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageReference Include="FluentModbus" Version="5.3.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.10" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.2" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.4" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion Plugins.SmaEnergymeter/Plugins.SmaEnergymeter.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
<PackageReference Include="Quartz" Version="3.13.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.2" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.4" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Plugins.SolarEdge/Plugins.SolarEdge.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.2" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.4" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion Plugins.Solax/Plugins.Solax.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.10" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.2" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.4" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
<PackageReference Include="Serilog.Sinks.File" Version="6.0.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ public interface ITeslaSolarChargerContext
DbSet<MqttResultConfiguration> MqttResultConfigurations { get; set; }
DbSet<BackendNotification> BackendNotifications { get; set; }
DbSet<LoggedError> LoggedErrors { get; set; }
DbSet<CarValueLog> CarValueLogs { get; set; }
void RejectChanges();
}
2 changes: 2 additions & 0 deletions TeslaSolarCharger.Model/Entities/TeslaSolarCharger/Car.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ public class Car
public bool UseBleForWakeUp { get; set; }
public int ApiRefreshIntervalSeconds { get; set; }
public string? BleApiBaseUrl { get; set; }
public bool UseFleetTelemetry { get; set; }

public string? WakeUpCalls { get; set; }
public string? VehicleDataCalls { get; set; }
Expand All @@ -59,4 +60,5 @@ public class Car
public string? OtherCommandCalls { get; set; }

public List<ChargingProcess> ChargingProcesses { get; set; } = new List<ChargingProcess>();
public List<CarValueLog> CarValueLogs { get; set; } = new List<CarValueLog>();
}
20 changes: 20 additions & 0 deletions TeslaSolarCharger.Model/Entities/TeslaSolarCharger/CarValueLog.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using TeslaSolarCharger.Shared.Enums;

namespace TeslaSolarCharger.Model.Entities.TeslaSolarCharger;

public class CarValueLog
{
public int Id { get; set; }
public DateTime Timestamp { get; set; }
public CarValueType Type { get; set; }
public CarValueSource Source { get; set; }
public double? DoubleValue { get; set; }
public int? IntValue { get; set; }
public string? StringValue { get; set; }
public string? UnknownValue { get; set; }
public bool? BooleanValue { get; set; }
public bool? InvalidValue { get; set; }

public int CarId { get; set; }
public Car Car { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class TeslaSolarChargerContext : DbContext, ITeslaSolarChargerContext
public DbSet<MqttResultConfiguration> MqttResultConfigurations { get; set; } = null!;
public DbSet<BackendNotification> BackendNotifications { get; set; } = null!;
public DbSet<LoggedError> LoggedErrors { get; set; } = null!;
public DbSet<CarValueLog> CarValueLogs { get; set; } = null!;
// ReSharper disable once UnassignedGetOnlyAutoProperty
public string DbPath { get; }

Expand Down
Loading

0 comments on commit 87db477

Please sign in to comment.