Thanks for the script, heres an output from my BMW i3.
C:\bmwcd>bmwcdapi.py -p
...running bmwcdapi.py
--------------START CAR DATA--------------
DCS_CCH_Activation: None
DCS_CCH_Ongoing : None
Segment_LastTrip_ratio_electric_driven_distance: 100
Segment_LastTrip_time_segment_end: 26.01.2018 16:46:00 UTC
Segment_LastTrip_time_segment_end_formatted: 26.01.2018 16:46
Segment_LastTrip_time_segment_end_formatted_date: 26.01.2018
Segment_LastTrip_time_segment_end_formatted_time: 16:46
battery_size_max: 35820
beMaxRangeElectric: 170.0
beMaxRangeElectricKm: 170.0
beMaxRangeElectricMile: 105.0
beRemainingRangeElectric: 168.0
beRemainingRangeElectricKm: 168.0
beRemainingRangeElectricMile: 104.0
beRemainingRangeFuel: 0.0
beRemainingRangeFuelKm: 0.0
beRemainingRangeFuelMile: 0.0
chargeNowAllowed: NOT_ALLOWED
chargingHVStatus: FINISHED_FULLY_CHARGED
chargingLevelHv: 100.0
chargingLogicCurrentlyActive: NOT_CHARGING
chargingSystemStatus: CHARGINGENDED
charging_connection_type: CONDUCTIVE
charging_inductive_positioning: not_positioned
charging_status: CHARGINGENDED
check_control_messages:
condition_based_services: 00003,OK,2019-04,;00017,OK,2019-04,
connectorStatus: CONNECTED
door_driver_front: CLOSED
door_driver_rear: CLOSED
door_lock_state: SECURED
door_passenger_front: CLOSED
door_passenger_rear: CLOSED
gps_lat: 60.000000
gps_lng: 10.500000
head_unit: NBT
head_unit_pu_software: 07/14
heading: 166
hood_state: CLOSED
kombi_current_remaining_range_fuel: 0.0
lastChargingEndReason: CHARGING_GOAL_REACHED
lastChargingEndResult: SUCCESS
lastUpdateReason: VEHCSHUTDOWN_SECURED
lights_parking: OFF
lsc_trigger: VEHCSHUTDOWN_SECURED
mileage: 7165
prognosisWhileChargingStatus: NOT_NEEDED
remaining_fuel: 0
shdStatusUnified: CLOSED
single_immediate_charging: isUnused
soc_hv_percent: 96.4
sunroof_position: 0
sunroof_state: CLOSED
trunk_state: CLOSED
unitOfCombustionConsumption: l/100km
unitOfElectricConsumption: kWh/100km
unitOfEnergy: kWh
unitOfLength: km
updateTime: 26.01.2018 21:53:12 UTC
updateTime_converted: 26.01.2018 22:53
updateTime_converted_date: 26.01.2018
updateTime_converted_time: 22:53
updateTime_converted_timestamp: 1517007192000
vehicle_tracking: 1
window_driver_front: CLOSED
window_driver_rear: CLOSED
window_passenger_front: CLOSED
window_passenger_rear: CLOSED
--------------END CAR DATA--------------
--------------START CAR NAV--------------
auxPowerEcoPro: 1.2
auxPowerEcoProPlus: 0.4
auxPowerRegular: 1.4
driveTrain: bev_ohne_rex
eco: 6b1,4c8,427,427,453,4ce,5f7,68f,728,859,98b
ecoEv: 6b1,4c8,427,427,453,4ce,5f7,68f,728,859,98b
isoCountryCode: NOR
kAccEco: 2520000
kAccReg: 2412000
kDecEco: 3240000
kDecReg: 3240000
kDown: 3384000
kUp: 3132000
latitude: 60.000000
longitude: 10.500000
norm: 6f0,4f5,429,429,453,4cf,5fb,694,72d,85f,991
normEv: 6f0,4f5,429,429,453,4cf,5fb,694,72d,85f,991
pendingUpdate: False
soc: 29.70800018310547
socMax: 29.699997
vehicleMass: 1260
vehicleTracking: True
--------------END CAR NAV--------------
--------------START CAR EFFICIENCY--------------
characteristicList: [{'characteristic': 'TOTAL_CONSUMPTION', 'quantity': 0}, {'characteristic': 'AUXILIARY_CONSUMPTION', 'quantity': 0}, {'characteristic': 'DRIVING_MODE', 'quantity': 0}, {'characteristic': 'ACCELERATION', 'quantity': 2}, {'characteristic': 'ANTICIPATION', 'quantity': 2}]
communitySwitch: True
efficiencyQuotient: 20
lastTripList: [{'name': 'LASTTRIP_DELTA_KM', 'unit': 'KM', 'lastTrip': '3.0'}, {'name': 'ACTUAL_DISTANCE_WITHOUT_CHARGING', 'unit': 'KM', 'lastTrip': '--'}, {'name': 'AVERAGE_ELECTRIC_CONSUMPTION', 'unit': 'KWH_PER_100KM', 'lastTrip': '25.7'}, {'name': 'AVERAGE_RECUPERATED_ENERGY_PER_100_KM', 'unit': 'KWH_PER_100KM', 'lastTrip': '5.0'}, {'name': 'CUMULATED_ELECTRIC_DRIVEN_DISTANCE', 'unit': 'KM', 'lastTrip': '7147.0'}]
lifeTimeList: []
modelType: I3
scoreList: [{'attrName': 'AVERAGE_ELECTRIC_CONSUMPTION', 'attrUnit': 'KWH_PER_100KM', 'minValue': 9.5, 'averageValue': 16.5, 'maxValue': 25.6, 'lifeTime': 16.3}, {'attrName': 'AVERAGE_RECUPERATED_ENERGY_PER_100_KM', 'attrUnit': 'KWH_PER_100KM', 'minValue': 0.3, 'averageValue': 3.1, 'maxValue': 10.6, 'lifeTime': 1.8}, {'attrName': 'CUMULATED_ELECTRIC_DRIVEN_DISTANCE', 'attrUnit': 'KM', 'minValue': 22.0, 'averageValue': 14845.3, 'maxValue': 97810.0, 'lifeTime': 7147.0}, {'attrName': 'LONGEST_DISTANCE_WITHOUT_CHARGING', 'attrUnit': 'KM', 'minValue': 0.0, 'averageValue': 163.4, 'maxValue': 270.0, 'lifeTime': 152.0}]
--------------END CAR EFFICIENCY--------------
--------------START CAR SERVICEPARTNER--------------
businessPartnerId: 00212581
businessPhone: +47 11 111111
city: Oslo
country: NO
countryIsoCode: NO
dealerName: Nameofdealer AS
email: [email protected]
lastChangeDate: 2017-04-09T09:04:58.000+02
partnerNumber: 43948
portfolioCodes: B1,BI,MI
portfolioNames: BMW Cars,BMW i,MINI
street: Nameofstreet 2
subsidiaryNumber: 1
url: http://nameofcardealer.bmw.no/no/nameofcardealer/no/index.html
zipCode:
--------------END CAR SERVICEPARTNER--------------
GPS position, states of doors, charging status, climate control is on my wish list.
Model: i3 (REX)
E-Code: I01
Production Code: 1Z41
Manufactured: 2017
Keep up the good work and let me know if a novice like myself can help out