Skip to content

Commit

Permalink
add example response to "get latest battery details" where connected …
Browse files Browse the repository at this point in the history
…to charging station
  • Loading branch information
jdhorne committed Feb 19, 2016
1 parent d6c4e95 commit 835f1cf
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pycarwings2/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ def __init__(self, status):
self.advice = [ status["AdviceList"]["Advice"] ] # will contain "title" and "body"

"""
# not connected to a charger
{
"status":200,
"message":"success",
Expand Down Expand Up @@ -429,6 +430,7 @@ def __init__(self, status):
}
}
# connected to a quick charger
{
"status":200,
"message":"success",
Expand All @@ -450,6 +452,32 @@ def __init__(self, status):
}
}
# connected to a charging station
{
"status": 200,
"message": "success",
"BatteryStatusRecords": {
"OperationResult": "START",
"OperationDateAndTime": "Feb 19, 2016 12:12 PM",
"BatteryStatus": {
"BatteryChargingStatus": "NORMAL_CHARGING",
"BatteryCapacity": "12",
"BatteryRemainingAmount": "12",
"BatteryRemainingAmountWH": "",
"BatteryRemainingAmountkWH": ""
},
"PluginState": "CONNECTED",
"CruisingRangeAcOn": "132000.0",
"CruisingRangeAcOff": "134000.0",
"TimeRequiredToFull200_6kW": {
"HourRequiredToFull": "0",
"MinutesRequiredToFull": "40"
},
"NotificationDateAndTime": "2016/02/19 17:12",
"TargetDate": "2016/02/19 17:12"
}
}
"""
class CarwingsLatestBatteryStatusResponse(CarwingsResponse):
def __init__(self, status):
Expand Down

0 comments on commit 835f1cf

Please sign in to comment.