hyundai-kia-connect-api 3.23.1__py2.py3-none-any.whl → 3.23.3__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- hyundai_kia_connect_api/ApiImplType1.py +10 -2
- hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py +4 -3
- hyundai_kia_connect_api/Vehicle.py +2 -2
- {hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/METADATA +1 -1
- {hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/RECORD +9 -9
- {hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/AUTHORS.rst +0 -0
- {hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/LICENSE +0 -0
- {hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/WHEEL +0 -0
- {hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/top_level.txt +0 -0
@@ -49,9 +49,17 @@ class ApiImplType1(ApiImpl):
|
|
49
49
|
def _update_vehicle_properties_ccs2(self, vehicle: Vehicle, state: dict) -> None:
|
50
50
|
if get_child_value(state, "Date"):
|
51
51
|
# `Date` field is in UTC time
|
52
|
-
vehicle.last_updated_at
|
52
|
+
if vehicle.last_updated_at:
|
53
|
+
vehicle.last_updated_at = parse_datetime(
|
54
|
+
get_child_value(state, "Date"), dt.timezone.utc
|
55
|
+
)
|
56
|
+
elif vehicle.last_updated_at < parse_datetime(
|
53
57
|
get_child_value(state, "Date"), dt.timezone.utc
|
54
|
-
)
|
58
|
+
):
|
59
|
+
vehicle.last_updated_at = parse_datetime(
|
60
|
+
get_child_value(state, "Date"), dt.timezone.utc
|
61
|
+
)
|
62
|
+
|
55
63
|
else:
|
56
64
|
vehicle.last_updated_at = dt.datetime.now(self.data_timezone)
|
57
65
|
|
@@ -479,11 +479,12 @@ class HyundaiBlueLinkAPIUSA(ApiImpl):
|
|
479
479
|
trips = []
|
480
480
|
for trip in tripDetails:
|
481
481
|
yyyymmdd_hhmmss = trip["startdate"] # remember full date
|
482
|
-
drive_time = get_child_value(trip["mileagetime"], "value")
|
482
|
+
drive_time = int(get_child_value(trip["mileagetime"], "value"))
|
483
|
+
idle_time = int(get_child_value(trip["duration"], "value")) - drive_time
|
483
484
|
processed_trip = TripInfo(
|
484
485
|
hhmmss=yyyymmdd_hhmmss,
|
485
|
-
drive_time=int(drive_time),
|
486
|
-
idle_time=int(
|
486
|
+
drive_time=int(drive_time / 60), # convert seconds to minutes
|
487
|
+
idle_time=int(idle_time / 60), # convert seconds to minutes
|
487
488
|
distance=int(trip["distance"]),
|
488
489
|
avg_speed=get_child_value(trip["avgspeed"], "value"),
|
489
490
|
max_speed=int(get_child_value(trip["maxspeed"], "value")),
|
@@ -17,8 +17,8 @@ class TripInfo:
|
|
17
17
|
"""Trip Info"""
|
18
18
|
|
19
19
|
hhmmss: str = None # will not be filled by summary
|
20
|
-
drive_time: int = None
|
21
|
-
idle_time: int = None
|
20
|
+
drive_time: int = None # minutes
|
21
|
+
idle_time: int = None # minutes
|
22
22
|
distance: int = None
|
23
23
|
avg_speed: float = None
|
24
24
|
max_speed: int = None
|
{hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: hyundai_kia_connect_api
|
3
|
-
Version: 3.23.
|
3
|
+
Version: 3.23.3
|
4
4
|
Summary: Python Boilerplate contains all the boilerplate you need to create a Python package.
|
5
5
|
Home-page: https://github.com/fuatakgun/hyundai_kia_connect_api
|
6
6
|
Author: Fuat Akgun
|
{hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/RECORD
RENAMED
@@ -1,21 +1,21 @@
|
|
1
1
|
hyundai_kia_connect_api/ApiImpl.py,sha256=7tB6PZTEVlw-GCfEjU4ekq_ZgnFseYLrEYpbUyEoL84,6866
|
2
|
-
hyundai_kia_connect_api/ApiImplType1.py,sha256=
|
3
|
-
hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=
|
2
|
+
hyundai_kia_connect_api/ApiImplType1.py,sha256=w7K_M9WARpba3XSI0eauNJ0szEflAt-fg_RMViVDu08,12558
|
3
|
+
hyundai_kia_connect_api/HyundaiBlueLinkAPIUSA.py,sha256=xHUpj-1bzHQL4w82kRAt9FMB8ze_DoqZinK6djCyeKY,35619
|
4
4
|
hyundai_kia_connect_api/KiaUvoAPIUSA.py,sha256=Cvkjat13g4AmETUxjpLkwCnB9i0Unck2jKExOCsPjcw,31146
|
5
5
|
hyundai_kia_connect_api/KiaUvoApiAU.py,sha256=Mzw0Ov5la4mQvWOXWYpvAfrM6l2BSBEusaPFsL3kn2I,48127
|
6
6
|
hyundai_kia_connect_api/KiaUvoApiCA.py,sha256=6bBPav3GC4xEl5y-4A6RHThtf7R0jeb2yskIFZpSq5s,30548
|
7
7
|
hyundai_kia_connect_api/KiaUvoApiCN.py,sha256=cwIPZ0dU6HolKdooUQeQKlLAic6YU8dQmNs0VQDBgpQ,47035
|
8
8
|
hyundai_kia_connect_api/KiaUvoApiEU.py,sha256=eijKZFBOl2cSsbELzUCpSVfIxdSwNC5EtMHDErvZczY,68253
|
9
9
|
hyundai_kia_connect_api/Token.py,sha256=ZsPvXh1ID7FUTGHAqhZUZyrKT7xVbOtIn6FRJn4Ygf0,370
|
10
|
-
hyundai_kia_connect_api/Vehicle.py,sha256=
|
10
|
+
hyundai_kia_connect_api/Vehicle.py,sha256=CKQbyKwCbx7-xN3SYMsi9JCz4P9jHeNlo37BEC3xu1g,17821
|
11
11
|
hyundai_kia_connect_api/VehicleManager.py,sha256=REny83eNXERAcnw8qrBZ9dh6qODCvd5Z_jmSY2JtXvY,10196
|
12
12
|
hyundai_kia_connect_api/__init__.py,sha256=i2kXYjBEKSvT1e8FoQ7V7oqAyL22w3XzF2rAFpyietc,578
|
13
13
|
hyundai_kia_connect_api/const.py,sha256=ofi_ZfGxJYo0FWIcGFbIMSMRdKRtaK4GUDhFiQRvZeI,2007
|
14
14
|
hyundai_kia_connect_api/exceptions.py,sha256=m7gyDnvA5OVAK4EXSP_ZwE0s0uV8HsGUV0tiYwqofK0,1343
|
15
15
|
hyundai_kia_connect_api/utils.py,sha256=J0aXUX-nKIoS3XbelatNh-DZlHRU2_DYz_Mg_ZUKQJU,1957
|
16
|
-
hyundai_kia_connect_api-3.23.
|
17
|
-
hyundai_kia_connect_api-3.23.
|
18
|
-
hyundai_kia_connect_api-3.23.
|
19
|
-
hyundai_kia_connect_api-3.23.
|
20
|
-
hyundai_kia_connect_api-3.23.
|
21
|
-
hyundai_kia_connect_api-3.23.
|
16
|
+
hyundai_kia_connect_api-3.23.3.dist-info/AUTHORS.rst,sha256=T77OE1hrQF6YyDE6NbdMKyL66inHt7dnjHAzblwuk2A,155
|
17
|
+
hyundai_kia_connect_api-3.23.3.dist-info/LICENSE,sha256=49hmc755oyMwKdZ-2epiorjStRB0PfcZR1w5_NXZPgs,1068
|
18
|
+
hyundai_kia_connect_api-3.23.3.dist-info/METADATA,sha256=0_NF-WHuAQWbVaZIcdkkAxk1MB-TMQRyj_eOlVFZOGk,6069
|
19
|
+
hyundai_kia_connect_api-3.23.3.dist-info/WHEEL,sha256=AHX6tWk3qWuce7vKLrj7lnulVHEdWoltgauo8bgCXgU,109
|
20
|
+
hyundai_kia_connect_api-3.23.3.dist-info/top_level.txt,sha256=otZ7J_fN-s3EW4jD-kAearIo2OIzhQLR8DNEHIaFfds,24
|
21
|
+
hyundai_kia_connect_api-3.23.3.dist-info/RECORD,,
|
{hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/AUTHORS.rst
RENAMED
File without changes
|
{hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
{hyundai_kia_connect_api-3.23.1.dist-info → hyundai_kia_connect_api-3.23.3.dist-info}/top_level.txt
RENAMED
File without changes
|