Giter Club home page Giter Club logo

pymazda's People

Contributors

bdr99 avatar fabaff avatar tux75at avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pymazda's Issues

Update is required to continue: June 2023

Hi - getting the Mazda update required error:

2023-06-30 23:02:19.113 ERROR (MainThread) [homeassistant.components.mazda] Unknown error occurred during Mazda update request: Request failed: An update to Mazda app is required to continue

I'm on 2023.6.3, just started this morning.

Unclosed client session output

When running what I think is an valid variation of the example code, in addition to the desired json output, I see:

Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x10b8ce7c0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x10d337220>, 3.069700875)]', '[(<aiohttp.client_proto.ResponseHandler object at 0x10d31d220>, 5.118501917)]']
connector: <aiohttp.connector.TCPConnector object at 0x10b8ce7f0>

Here's my test script:

import pymazda
import asyncio
import json

email = "[email protected]"
password = "thepassword"

async def test() -> None:
	# Initialize API client (MNAO = North America)
	client = pymazda.Client(email, password, "MNAO")

	# Get list of vehicles from the API (returns a list)
	vehicles = await client.get_vehicles()

	# Loop through the registered vehicles
	for vehicle in vehicles:
		# Get vehicle ID (you will need this in order to perform any other actions with the vehicle)
		vehicle_id = vehicle["id"]

		# Get and output vehicle status
		status = await client.get_vehicle_status(vehicle_id)
		#print(status)
		print(json.dumps(status, indent=2))

if __name__ == "__main__":
	loop = asyncio.get_event_loop()
	loop.run_until_complete(test())

What am I missing in closing the session properly? Apologies if it's obvious, I'm not great with python.

New version of Mazda app again?

Looks like we have a new version on the Mazda app again since yesterday
I see the following in my HA integration
Request failed: An update to Mazda app is required to continue;

JavaScript Conversion

Not an issue, but a question:

I don't see any license for this repo. Is it open-source? If permitted, I would like to convert this to a JS library. I can attach credit, if necessary. Please let me know. Thank you

Report: `unlock_doors` throws error `[E400002]` when executed on MX-30

Hello,

FYI: I cannot seem to unlock the doors of my MX-30 by means of the lib. The request returns with error code E400002. The full error message is

Request failed: Please wait for a while and try again.When an error continues, please contact the call center.[E400002]

Cheers!

[NON ISSUE] Login Issues with known working account - Query email/password character issues?

Hey, I'm trying to use this eventually within Home Assistant, but dropped back to running it raw in Python to debug login issues without the HASS config wrapper potentially confusing things.

Getting persistent Invalid Credential (but now Account Locked) responses for simple login and vehicle list requests...

I've set up a new account, and successfully shared a vehicle from that account to it and can login via the App no problem on the 2nd account.
With either the Python or Node libraries I was getting the same results - Invalid Email or Password using the known working credential set I used on the app... even doing a reset to something simpler to avoid mistakes.

I then tried my original account with the node library; thinking it may be related to the TLS Fingerprinting issues within Python - and it logged in fine, reported vehicles back to me no problem. Changed the node library to the 2nd account - Invalid Credentials again.

Returned back to the Python library with 2nd account credentials and added tonnes of debug to the connection module to try and determine what the login request contains and yeilded no real additional information other than now the responses are coming back as Account is locked responses - however my App is still logged in fine on that 2nd account.
(Even logging out of the app, then back in with the 2nd account works fine, making me think that the code isnt 'really' trying to log in with the actual 2nd account email address)

This has led me to start thinking there is some discrepancy between what is being used to perform the login requests with this library between the credential set of my 1st / main & working in the node library and the 2nd account.

The differences are:
2nd set email is of the format [email protected]
1st set email is just [email protected]

2nd set password has lower, upper, numerics and a special: $
1st set password has lower, upper, numerics and a special: !

I'm wondering if something within that is causing the login request to be malformed somehow thus causing my login issue on only this 2nd account.

Oh and just to round loop this thought - Using the 1st account credentials with the python library works fine... its literally something wrong with this set of credentials for the 2nd account which at 100% matched in App entry and this library entry.

Oh and forgot to add - happy to provide any debug assistance as required, just shout.

Support for long-term statistics in Home Assistant

Hi - not sure if this is the right mechanism to raise such an enhancement request, given that this is the project for the MCS python API and not directly related to Home Assistant.

I have create a new feature request on the HA community site, to have support for long-term statistics added to the MCS HA integration.

I believe that doing so requires that a new sensor property - state_class - be implemented.

Would be cool to track/graph vehicle usage over the long term.

FuelRemaining incorrect on MX-30

I have noticed that the FuelDistanceRemainingKm is being reported incorrectly for my MX-30. (120km instead of 218km). After experimentation seems that there is an additional API, getEVVehicleStatus, that can return the correct value along with the charge percentage etc. I believe you can if you have an electric car by examining if eConnectType in the vehicle base info is set to 1.

Error: Request failed: An update to Mazda app is required to continue (March 2023)

Hi @bdr99 - I think the Mazda App has updated and broken the API. Below is my log output:

Source: components/mazda/__init__.py:54 
Integration: Mazda Connected Services ([documentation](https://www.home-assistant.io/integrations/mazda), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+mazda%22)) 
First occurred: 12:00:41 PM (10 occurrences) 
Last logged: 12:05:28 PM

Unknown error occurred during Mazda update request: Request failed: An update to Mazda app is required to continue
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/mazda/__init__.py", line 151, in async_update_data
    vehicles = await with_timeout(mazda_client.get_vehicles())
  File "/usr/src/homeassistant/homeassistant/components/mazda/__init__.py", line 54, in with_timeout
    return await task
  File "/usr/local/lib/python3.10/site-packages/pymazda/client.py", line 27, in get_vehicles
    vec_base_infos_response = await self.controller.get_vec_base_infos()
  File "/usr/local/lib/python3.10/site-packages/pymazda/controller.py", line 21, in get_vec_base_infos
    return await self.connection.api_request("POST", "remoteServices/getVecBaseInfos/v4", body_dict={"internaluserid": "__INTERNAL_ID__"}, needs_keys=True, needs_auth=True)
  File "/usr/local/lib/python3.10/site-packages/pymazda/connection.py", line 162, in api_request
    return await self.__api_request_retry(method, uri, query_dict, body_dict, needs_keys, needs_auth, num_retries=0)
  File "/usr/local/lib/python3.10/site-packages/pymazda/connection.py", line 177, in __api_request_retry
    return await self.__send_api_request(method, uri, query_dict, body_dict, needs_keys, needs_auth)
  File "/usr/local/lib/python3.10/site-packages/pymazda/connection.py", line 251, in __send_api_request
    raise MazdaException("Request failed: " + response_json["error"])
pymazda.exceptions.MazdaException: Request failed: An update to Mazda app is required to continue

Error setting up entry [email protected] for mazda

Since yesterday, it seems that the component cannot connect anymore. In logs this is the entry:

Logger: homeassistant.config_entries
Source: components/mazda/__init__.py:68
First occurred: August 8, 2022 at 8:10:41 AM (1 occurrences)
Last logged: August 8, 2022 at 8:10:41 AM

Error setting up entry [email protected] for mazda
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1154, in _create_direct_connection
    hosts = await asyncio.shield(host_resolved)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 880, in _resolve_host
    addrs = await self._resolver.resolve(host, port, family=self._family)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/resolver.py", line 33, in resolve
    infos = await self._loop.getaddrinfo(
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 860, in getaddrinfo
    return await self.run_in_executor(
  File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.10/socket.py", line 955, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -3] Try again

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 357, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/usr/src/homeassistant/homeassistant/components/mazda/__init__.py", line 68, in async_setup_entry
    await mazda_client.validate_credentials()
  File "/usr/local/lib/python3.10/site-packages/pymazda/client.py", line 21, in validate_credentials
    await self.controller.login()
  File "/usr/local/lib/python3.10/site-packages/pymazda/controller.py", line 11, in login
    await self.connection.login()
  File "/usr/local/lib/python3.10/site-packages/pymazda/connection.py", line 281, in login
    encryption_key_response = await self._session.request(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/client.py", line 535, in _request
    conn = await self._connector.connect(
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 542, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 907, in _create_connection
    _, proto = await self._create_direct_connection(req, traces, timeout)
  File "/usr/local/lib/python3.10/site-packages/aiohttp/connector.py", line 1166, in _create_direct_connection
    raise ClientConnectorError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host rz97suam.mazda.com:443 ssl:<ssl.SSLContext object at 0x7fa290fdcfc0> [Try again]

Can you take a look at it?
Home Assistant 2022.8.2
Supervisor 2022.07.0
Operating System 8.4
Frontend 20220802.0 - latest

KeyError when trying to get vehicle status

The remote_info for my '21 Mazda CX-5 does not contain all the keys that are being accessed in get_vehicle_status().

The missing keys are:

  • RemDrvDistDActlKm
  • FLTPrsDispPsi
  • FRTPrsDispPsi
  • RLTPrsDispPsi
  • RRTPrsDispPsi

The TPMS information for this car only has the following fields:

  • RRTyrePressWarn
  • MntTyreAtFlg
  • RLTyrePressWarn
  • TPMSStatus
  • FRTyrePressWarn
  • FLTyrePressWarn

Perhaps the TPMS and distance aren't available yet because the car hasn't been driven very long?

Unable to send requests from AWS EC2 instances

Hi,

I tried to test pymazda apis requests from EC2 instances. After a couple requests, my requests weren't responded by the mazda server. I tried to do it directly from my laptop, and it was all working fine.

Is it because of some kind of IP address based detection or something else?

Is there a work around for this issue?

Thanks

Error Return

Hey I always get this error return

/Users/fboulegue/PycharmProjects/pythonProject/venv/bin/python /Users/fboulegue/PycharmProjects/pythonProject/main.py {'lastUpdatedTimestamp': '20210529174627', 'latitude': 51.73875, 'longitude': 8.757431, 'positionTimestamp': '20210529122303', 'fuelRemainingPercent': 0.0, 'fuelDistanceRemainingKm': 122.0, 'odometerKm': 6601.0, 'doors': {'driverDoorOpen': False, 'passengerDoorOpen': False, 'rearLeftDoorOpen': False, 'rearRightDoorOpen': False, 'trunkOpen': False, 'hoodOpen': False, 'fuelLidOpen': False}, 'doorLocks': {'driverDoorUnlocked': False, 'passengerDoorUnlocked': False, 'rearLeftDoorUnlocked': False, 'rearRightDoorUnlocked': False}, 'windows': {'driverWindowOpen': False, 'passengerWindowOpen': False, 'rearLeftWindowOpen': False, 'rearRightWindowOpen': False}, 'hazardLightsOn': False, 'tirePressure': {'frontLeftTirePressurePsi': 42.0, 'frontRightTirePressurePsi': 44.0, 'rearLeftTirePressurePsi': 42.0, 'rearRightTirePressurePsi': 42.0}} Traceback (most recent call last): File "/Users/fboulegue/PycharmProjects/pythonProject/main.py", line 28, in <module> loop.run_until_complete(test()) File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete return future.result() File "/Users/fboulegue/PycharmProjects/pythonProject/main.py", line 21, in test await client.start_engine(vehicle_id) File "/Users/fboulegue/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/pymazda/client.py", line 168, in start_engine await self.controller.engine_start(vehicle_id) File "/Users/fboulegue/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/pymazda/controller.py", line 111, in engine_start response = await self.connection.api_request("POST", "remoteServices/engineStart/v4", body_dict=post_body, needs_keys=True, needs_auth=True) File "/Users/fboulegue/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/pymazda/connection.py", line 154, in api_request return await self.__api_request_retry(method, uri, query_dict, body_dict, needs_keys, needs_auth, num_retries=0) File "/Users/fboulegue/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/pymazda/connection.py", line 169, in __api_request_retry return await self.__send_api_request(method, uri, query_dict, body_dict, needs_keys, needs_auth) File "/Users/fboulegue/PycharmProjects/pythonProject/venv/lib/python3.8/site-packages/pymazda/connection.py", line 241, in __send_api_request raise MazdaException("Request failed: " + response_json["error"]) pymazda.exceptions.MazdaException: Request failed: Please wait for a while and try again.When an error continues, please contact the call center.[E400002] Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x110814310> Unclosed connector connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x111286280>, 1.106573857)]', '[(<aiohttp.client_proto.ResponseHandler object at 0x1111a5d00>, 2.223690552)]'] connector: <aiohttp.connector.TCPConnector object at 0x1107f4f70>

Feature Req: Send POI to car

It would be cool to be able to send a POI to the car programmatically like you can from the MyMazda app's map screen. I'm not sure what data is needed for the payload in that API request but it would be handy. I use CarPlay for navigation 90% of the time but it would sure beat keying a POI in from the command wheel or using the jank Mazda app for the times I use factory nav.

IMG_0135

Let me know if I can help! Thank you for this tool!

pymazda and M1 CPU

I am having an issue getting pymazda working correctly on M1-based machines, and I am not sure if I am doing something incorrectly, or if the issue may be related to the M1 CPU.
I have this working correctly on two older Intel-based laptops..

What I see is that the script seems to get stuck at the main loop "loop.run_until_complete(test())":

python3 mazda.orig.py
^CTraceback (most recent call last):
File "mazda.orig.py", line 30, in
loop.run_until_complete(test())
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 629, in run_until_complete
self.run_forever()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 596, in run_forever
self._run_once()
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 1854, in _run_once
event_list = self._selector.select(timeout)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/selectors.py", line 562, in select
kev_list = self._selector.control(None, max_ev, timeout)
KeyboardInterrupt

A "pip3 install -U pymazda" shows everything being updated correctly to the current 0.3.6 release

Any debugging suggestions for me to look into?
TIA

Thoughts on integrating maintenance milestones?

Hey!

I just started using this integration and so far, it's been working flawlessly. Thank you for this!
Have you considered adding an endpoint to return the info from the maintenance tab?
I don't know if it's possible but just seeing the maintenance milestones info and the recommended oil change would be helpful.
Is that doable?

Integration losing account password

I didn't notice this before because it takes several days to manifest but twice since I installed this branch, the integration broke because it seems to have forgotten the password for the MazdaConnect account I'm using. As soon as I re-enter it, it works fine.

I can't reproduce on demand, rebooting the host or restarting HA doesn't trigger it. Not sure if it's the integration or HA itself.

It's happened a couple times since swapping out the test code for 2021.7.2 update.

I'm on core-2021.7.2.

Originally posted by @AllPurposeBen in #11 (comment)

Error: An update to Mazda app is required to continue

Hi @bdr99 ,

It seems that Mazda has again updated something related to the MyMazda app, and it stopped working again. Here is the log:

Logger: homeassistant.components.mazda
Source: components/mazda/__init__.py:42
Integration: Mazda Connected Services (documentation, issues)
First occurred: 2:06:42 AM (149 occurrences)
Last logged: 9:30:48 AM

Unknown error occurred during Mazda update request: Request failed: An update to Mazda app is required to continue
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/mazda/__init__.py", line 148, in async_update_data
    vehicle["status"] = await with_timeout(
  File "/usr/src/homeassistant/homeassistant/components/mazda/__init__.py", line 42, in with_timeout
    return await task
  File "/usr/local/lib/python3.9/site-packages/pymazda/client.py", line 64, in get_vehicle_status
    vehicle_status_response = await self.controller.get_vehicle_status(vehicle_id)
  File "/usr/local/lib/python3.9/site-packages/pymazda/controller.py", line 31, in get_vehicle_status
    response = await self.connection.api_request("POST", "remoteServices/getVehicleStatus/v4", body_dict=post_body, needs_keys=True, needs_auth=True)
  File "/usr/local/lib/python3.9/site-packages/pymazda/connection.py", line 158, in api_request
    return await self.__api_request_retry(method, uri, query_dict, body_dict, needs_keys, needs_auth, num_retries=0)
  File "/usr/local/lib/python3.9/site-packages/pymazda/connection.py", line 173, in __api_request_retry
    return await self.__send_api_request(method, uri, query_dict, body_dict, needs_keys, needs_auth)
  File "/usr/local/lib/python3.9/site-packages/pymazda/connection.py", line 245, in __send_api_request
    raise MazdaException("Request failed: " + response_json["error"])
pymazda.exceptions.MazdaException: Request failed: An update to Mazda app is required to continue

MX-30 Feature set

Hello,

The mx-30 supports extra features not seen in other Mazda's. Let me know if you can add it and I would be happy to test :)

How to send requests...

Sorry I m kinda a noob :-) I installed it via pip :-) but I can't run the commands below via terminal, what do I use for it?

Sensor data incomplete

Hi!

First of all - great repo. I've learnt a lot as I'm working on a separate project, but some of your code has come in handy :)

I've noticed that the sensor data methods aren't complete, namely generate_edited_text, generate_orientation_data_aa etc.

Do you have these methods complete?

Thanks again!

Not all functions work for all cars

I have a 2021 CX-5 (Belgium EU) and i dont have the Start engine function

so when trying to run the client.start_engine() function it errors out
Traceback (most recent call last): File "C:/Users/n.vanderstorm/Documents/mazda.py", line 28, in <module> loop.run_until_complete(test()) File "C:\Users\n.vanderstorm\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "C:/Users/n.vanderstorm/Documents/mazda.py", line 21, in test await client.start_engine(vehicle_id) File "C:\Users\n.vanderstorm\AppData\Local\Programs\Python\Python39\lib\site-packages\pymazda\client.py", line 175, in start_engine await self.controller.engine_start(vehicle_id) File "C:\Users\n.vanderstorm\AppData\Local\Programs\Python\Python39\lib\site-packages\pymazda\controller.py", line 111, in engine_start response = await self.connection.api_request("POST", "remoteServices/engineStart/v4", body_dict=post_body, needs_keys=True, needs_auth=True) File "C:\Users\n.vanderstorm\AppData\Local\Programs\Python\Python39\lib\site-packages\pymazda\connection.py", line 158, in api_request return await self.__api_request_retry(method, uri, query_dict, body_dict, needs_keys, needs_auth, num_retries=0) File "C:\Users\n.vanderstorm\AppData\Local\Programs\Python\Python39\lib\site-packages\pymazda\connection.py", line 173, in __api_request_retry return await self.__send_api_request(method, uri, query_dict, body_dict, needs_keys, needs_auth) File "C:\Users\n.vanderstorm\AppData\Local\Programs\Python\Python39\lib\site-packages\pymazda\connection.py", line 245, in __send_api_request raise MazdaException("Request failed: " + response_json["error"]) pymazda.exceptions.MazdaException: Request failed: Please wait for a while and try again.When an error continues, please contact the call center.[E400002]

would it be possible to probe what functions are available to each car ?

HA Integration throwing error `Request failed: An update to Mazda app is required to continue`

Hi,

For the past two days, the Mazda buttons were grayed out on the HA dashboard and today when I looked into integrations, I noticed the error Retrying setup: Request failed: An update to Mazda app is required to continue. Seems like this a repeat issue where the API at the source side was updated.

I just wanted to bring to your attention and see if there any issue at my end.

Not returning unless I open app on phone

Recently, I have started having an issue with this. This Python script will not return anything and will just run and run without returning any results. The only way to get it to work again is to open the Mazda app on my phone, sign in, then it will work well again for a little while. Any ideas?

Mazda HA integration is not longer loading.

Wasn't sure the best way to commutate so I hope this is okay. I was noticing the mazda app stopped working. I was able to delete and re add it but still no devices or components load and this error shows in the log

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/mazda/__init__.py", line 65, in async_update_data
    vehicles = await with_timeout(mazda_client.get_vehicles())
  File "/usr/src/homeassistant/homeassistant/components/mazda/__init__.py", line 37, in with_timeout
    return await task
  File "/usr/local/lib/python3.8/site-packages/pymazda/client.py", line 19, in get_vehicles
    vec_base_infos_response = await self.controller.get_vec_base_infos()
  File "/usr/local/lib/python3.8/site-packages/pymazda/controller.py", line 19, in get_vec_base_infos
    return await self.connection.api_request("POST", "remoteServices/getVecBaseInfos/v4", body_dict={"internaluserid": "__INTERNAL_ID__"}, needs_keys=True, needs_auth=True)
  File "/usr/local/lib/python3.8/site-packages/pymazda/connection.py", line 152, in api_request
    return await self.__api_request_retry(method, uri, query_dict, body_dict, needs_keys, needs_auth, num_retries=0)
  File "/usr/local/lib/python3.8/site-packages/pymazda/connection.py", line 167, in __api_request_retry
    return await self.__send_api_request(method, uri, query_dict, body_dict, needs_keys, needs_auth)
  File "/usr/local/lib/python3.8/site-packages/pymazda/connection.py", line 231, in __send_api_request
    raise MazdaException("Request failed for an unknown reason")
pymazda.exceptions.MazdaException: Request failed for an unknown reason

Feature request - add sensors for doors and windows

Hi Brandon,

I don't know if this is on your to-do list, but can we have some sensors defined in HA based on the output from services?
The new diagnostic log shows the results are there, can you please help add these values under sensors in HA?
Here is an output from my car:

"data": {
      "vin": "**REDACTED**",
      "id": "**REDACTED**",
      "nickname": "CX5",
      "carlineCode": "MAZDA CX-5",
      "carlineName": "Mazda CX-5",
      "modelYear": "0000",
      "modelCode": "KJP8",
      "modelName": "Mazda CX-5",
      "automaticTransmission": false,
      "interiorColorCode": "KF2",
      "interiorColorName": "Tapi\u021berie piele Nappa maro, scaune fa\u021b\u0103-spate \u00eenc\u0103lzite, scaune fa\u021b\u0103 ventilate",
      "exteriorColorCode": "45B",
      "exteriorColorName": "Albastru Eternal",
      "isElectric": false,
      "status": {
        "lastUpdatedTimestamp": "20220211115200",
        "latitude": "**REDACTED**",
        "longitude": "**REDACTED**",
        "positionTimestamp": "20220211114645",
        "fuelRemainingPercent": 81.0,
        "fuelDistanceRemainingKm": null,
        "odometerKm": 6396.9,
        "doors": {
          "driverDoorOpen": false,
          "passengerDoorOpen": false,
          "rearLeftDoorOpen": false,
          "rearRightDoorOpen": false,
          "trunkOpen": false,
          "hoodOpen": false,
          "fuelLidOpen": true
        },
        "doorLocks": {
          "driverDoorUnlocked": false,
          "passengerDoorUnlocked": false,
          "rearLeftDoorUnlocked": false,
          "rearRightDoorUnlocked": false
        },
        "windows": {
          "driverWindowOpen": false,
          "passengerWindowOpen": false,
          "rearLeftWindowOpen": false,
          "rearRightWindowOpen": false

false for Closed / true for Open type of conversion?

Also, just asking, have you tried to switch the region area - to see if more options become available/unavailable ? :) like a method of circumventing the restrictions from the API?

Alternatives to pycryptodome

This may be a big ask but is there a pure python alternative to pycrpytodome that could be used without too much hassle?

I'd like to be able to call this module from PyPi on iOS but because of the sandboxing within iOS, it can't really run anything with c extensions. Here's a list on the pre-installed/rigged-to-work packages Pyto has and it can install other things from pyPI that are pure python.

If that would be a big undertaking, I totally understand and I could alternatively try doing the same task in Scriptable on iOS using js or just throw all this into a lambda function and webhook it.

Installing it in PyTo on iOS?

Hi,

Wondering if anyone got this to work on iOS? I am currently stuck at the aiohttp dependency in both PyTo and Pythonista. Here is the sample error from PyTo

Pyto.app/Lib/pip.py:618: ExtensionModul
eWarning: Extension modules are skipped
: 
aiohttp._websocket
aiohttp._http_parser
aiohttp._helpers
aiohttp._http_writer
aiohttp may not work with Pyto.
  warnings.warn(msg, ExtensionModuleWar
ning)
PipError('failed to find packages or py
_modules arguments in setup call')
Failed to run setup.py

Traceback (most recent call last):
  File "Pyto.app/Lib/pip.py", line 501,
 in run
    return self._run_setup_file(setup_f
ilename)
  File "Pyto.app/Lib/pip.py", line 624,
 in _run_setup_file
    raise PipError(
pip.PipError: failed to find packages o
r py_modules arguments in setup call

Fall back to directory guessing ...
Package installed: aiohttp
>>>

Thanks!

By the way, how do you guys all use this library? I primarily want to use it as a Siri shortcut.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.