diff --git a/TeslaLogger/Properties/AssemblyInfo.cs b/TeslaLogger/Properties/AssemblyInfo.cs index c6b9b980d..c7afc2435 100644 --- a/TeslaLogger/Properties/AssemblyInfo.cs +++ b/TeslaLogger/Properties/AssemblyInfo.cs @@ -32,8 +32,8 @@ // Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, // übernehmen, indem Sie "*" eingeben: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.60.2.0")] -[assembly: AssemblyFileVersion("1.60.2.0")] +[assembly: AssemblyVersion("1.60.3.0")] +[assembly: AssemblyFileVersion("1.60.3.0")] [assembly: InternalsVisibleTo("UnitTestsTeslaloggerNET8")] [assembly: InternalsVisibleTo("UnitTestsTeslalogger")] \ No newline at end of file diff --git a/TeslaLogger/TelemetryConnection.cs b/TeslaLogger/TelemetryConnection.cs index c17a446ad..c7104a991 100644 --- a/TeslaLogger/TelemetryConnection.cs +++ b/TeslaLogger/TelemetryConnection.cs @@ -693,6 +693,11 @@ private void handleLoginResponse(dynamic j) { Thread.Sleep(10 * 60 * 1000); } + else if (response.ToString().Contains("token expired")) + { + Log("Login Error: token expired!"); + car.webhelper.GetToken(); + } } } catch (Exception ex) diff --git a/TeslaLogger/WebHelper.cs b/TeslaLogger/WebHelper.cs index efea16751..287618e80 100644 --- a/TeslaLogger/WebHelper.cs +++ b/TeslaLogger/WebHelper.cs @@ -4860,6 +4860,13 @@ internal async Task GetOdometerAsync() public async Task GetCommand(string cmd, bool noMemcache = false) { + if (car.FleetAPI) + { + Log("*** FleetAPI no Datacalls allowed! ***"); + return ""; + } + + string resultContent = ""; try { diff --git a/TeslaLogger/bin/TeslaLogger.exe b/TeslaLogger/bin/TeslaLogger.exe index 9deadccc9..3b84fd5c2 100644 Binary files a/TeslaLogger/bin/TeslaLogger.exe and b/TeslaLogger/bin/TeslaLogger.exe differ diff --git a/TeslaLogger/bin/changelog.md b/TeslaLogger/bin/changelog.md index cb2ea7a5b..63c8a9a42 100644 --- a/TeslaLogger/bin/changelog.md +++ b/TeslaLogger/bin/changelog.md @@ -1,3 +1,6 @@ +# Version 1.60.3 +- don't use data commands at all for fleet api cars + # Version 1.60.2 - don't use nearby_charging_sites anymore in fleet api because it is a paid feature