From 6d2b59d6e7e3d3a5bf79faa5014873f99cc4f95b Mon Sep 17 00:00:00 2001 From: Christian Pogea Date: Fri, 2 Feb 2024 18:20:45 +0100 Subject: [PATCH] China support --- TeslaLogger/WebHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/TeslaLogger/WebHelper.cs b/TeslaLogger/WebHelper.cs index e052dc216..da073d0af 100644 --- a/TeslaLogger/WebHelper.cs +++ b/TeslaLogger/WebHelper.cs @@ -38,11 +38,14 @@ public string apiaddress get { if (car.FleetAPI) + { if (String.IsNullOrEmpty(car.FleetApiAddress)) return "https://fleet-api.prd.eu.vn.cloud.tesla.com/"; else return car.FleetApiAddress; - + } + else if (car.oldAPIchinaCar) + return "https://owner-api.vn.cloud.tesla.cn/"; else return "https://owner-api.teslamotors.com/"; }