Skip to content

Commit

Permalink
Merge pull request #1332 from pkuehnel/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
pkuehnel authored Jul 7, 2024
2 parents 9a38dc5 + 4703bae commit 67a8bfb
Show file tree
Hide file tree
Showing 55 changed files with 2,460 additions and 293 deletions.
2 changes: 1 addition & 1 deletion Plugins.SmaEnergymeter/Plugins.SmaEnergymeter.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.20.1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.2" />
<PackageReference Include="Quartz" Version="3.9.0" />
<PackageReference Include="Quartz" Version="3.10.0" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
<PackageReference Include="Serilog.Settings.Configuration" Version="8.0.1" />
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1213,9 +1213,12 @@ If you get an error like `Error: No such container:` you can look up the contain
docker ps
```


As the new Tesla Fleet API requires a domain and external Token creation from version 2.23.0 onwards, TSC transfers some data to the owner of this repository. By using this software, you accept the transfer of this data. As this is open source, you can see which data is transferred. For now (6th December 2023), the following data is transferred:
## Privacy notes
As the new Tesla Fleet API requires a domain and external Token creation from version 2.23.0 onwards, TSC transfers some data to the owner of this repository. By using this software, you accept the transfer of this data. As this is open source, you can see which data is transferred. For now (4th July 2024), the following data is transferred:
- Your access code is used to get the access token from Tesla (Note: the token itself is only stored locally in your TSC installation. It is only transferred via my server, but the token only exists in memory on the server itself. It is not stored in a database or log file)
- Your installation ID (GUID) is at the bottom of the page. Do not post this GUID in public forums, as it is used to deliver the Tesla access token to your installation. Note: There is only a five-minute time window between requesting and providing the token using the installation ID. After these 5 minutes, all requests are blocked.)
- Your installed version.
- Error and warning logs
- Your VIN and if using the Fleet API the data for each request (e.g. change-charging-amp to 7A)
- A statistic of your Fleet API and BLE API usage (e.g. changed car amps 58 times including Timestamps of the request)
- Your configuration regarding using BLE API, the configured Fleet API Refresh Interval, if getting Data from TeslaMate is enabled
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ public interface ITeslaSolarChargerContext
DbSet<ModbusResultConfiguration> ModbusResultConfigurations { get; set; }
DbSet<MqttConfiguration> MqttConfigurations { get; set; }
DbSet<MqttResultConfiguration> MqttResultConfigurations { get; set; }
DbSet<BackendNotification> BackendNotifications { get; set; }
void RejectChanges();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using TeslaSolarCharger.Shared.Enums;

namespace TeslaSolarCharger.Model.Entities.TeslaSolarCharger;

public class BackendNotification
{
public int Id { get; set; }
public int BackendIssueId { get; set; }
public BackendNotificationType Type { get; set; }
public string Headline { get; set; }
public string DetailText { get; set; }
public DateTime? ValidFromDate { get; set; }
public DateTime? ValidToDate { get; set; }
public string? ValidFromVersion { get; set; }
public string? ValidToVersion { get; set; }
public bool IsConfirmed { get; set; }
}
1 change: 1 addition & 0 deletions TeslaSolarCharger.Model/Entities/TeslaSolarCharger/Car.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public class Car
public DateTime? RateLimitedUntil { get; set; }
public bool UseBle { get; set; }
public int ApiRefreshIntervalSeconds { get; set; }
public string? BleApiBaseUrl { get; set; }

public List<ChargingProcess> ChargingProcesses { get; set; } = new List<ChargingProcess>();
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class TeslaSolarChargerContext : DbContext, ITeslaSolarChargerContext
public DbSet<ModbusResultConfiguration> ModbusResultConfigurations { get; set; } = null!;
public DbSet<MqttConfiguration> MqttConfigurations { get; set; } = null!;
public DbSet<MqttResultConfiguration> MqttResultConfigurations { get; set; } = null!;
public DbSet<BackendNotification> BackendNotifications { get; set; } = null!;
// ReSharper disable once UnassignedGetOnlyAutoProperty
public string DbPath { get; }

Expand Down
Loading

0 comments on commit 67a8bfb

Please sign in to comment.