Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from Yannik25/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
Yannik25 authored Apr 16, 2021
2 parents c7a8ef9 + 7e25e9f commit 3ae34ce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyryd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
except ImportError as e:
warnings.warn(ImportWarning(e))

VERSION = (0, 1, 3)
VERSION = (0, 1, 4)

__version__ = '.'.join([str(i) for i in VERSION])
__author__ = 'Yannik25'
Expand Down
12 changes: 11 additions & 1 deletion pyryd/pyryd.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@ def ryd_time(s: str):
"overall_distance": (lambda x: int(x["carOdometer"]["distanceM"])/1000, "km"),
"fuel_level": (lambda x: float(x["fuel"]["level"]["OBD_FUELLEVEL"]["l"]), "l"),
"fuel_percent": (lambda x: float(x["fuel"]["level"]["OBD_FUELLEVEL"]["percent"]), "%"),

"fuel_level_user": (lambda x: float(x["fuel"]["level"]["USER"]["l"]), "l"),
"fuel_percent_user": (lambda x: float(x["fuel"]["level"]["USER"]["percent"]), "%"),
"fuel_level_measure": (lambda x: float(x["fuel"]["level"]["MEAS"]["l"]), "l"),
"fuel_percent_measure": (lambda x: float(x["fuel"]["level"]["MEAS"]["percent"]), "%"),
"fuel_total": (lambda x: float(x["fuel"]["reportedFuelTotal"]["fuelL"]), "l"),
"car_status": (lambda x: str(x["state"]), None),
"parking_Location": (lambda x: str(x["parkingLocation"]["addressString"]), None),
"current_Location": (lambda x: list(x["curLocation"]["loc"]), None),
"current_Latitude": (lambda x: float(x["curLocation"]["loc"][1]), None),
"current_Longitude": (lambda x: float(x["curLocation"]["loc"][0]), None),
"license_Plate": (lambda x: str(x["licensePlate"]), None),
}

class Ryd(object):
Expand Down

0 comments on commit 3ae34ce

Please sign in to comment.