Skip to content

Commit

Permalink
add togglable debug, fix distance to empty, reformat using black
Browse files Browse the repository at this point in the history
  • Loading branch information
blind-oracle committed Feb 13, 2025
1 parent c238d30 commit 9b8ff48
Show file tree
Hide file tree
Showing 8 changed files with 467 additions and 339 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__pycache__
.venv
*.json
/*.json
test.py
dist
*.egg-info
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter"
}
}
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@
from py_uconnect import Client
from py_uconnect.brands import BRANDS

c = Client('[email protected]', 'very_secret', pin='1234', brand=brands.FIAT_EU)
c.refresh()
v = c.get_vehicles()
# Create client
client = Client('[email protected]', 'very_secret', pin='1234', brand=brands.FIAT_EU)
# Fetch the vehicle data into cache
client.refresh()

for veh in v.values():
print(veh.to_json(indent=2))
# List vehicles
vehicles = client.get_vehicles()
for vehicle in vehicles.values():
print(vehicle.to_json(indent=2))
```

This would emit something similar to:
Expand Down
Loading

0 comments on commit 9b8ff48

Please sign in to comment.