pyporscheconnectapi
pyporscheconnectapi copied to clipboard
APIs changed?
On the web site there was a notice about upcoming changes and now when I issue a request I still get data but no useful values vehicles = await client.getVehicles() for vehicle in vehicles: print(json.dumps(vehicle, indent=2)) vins = map(lambda v: v["vin"], vehicles) for vin in vins: data = await client.getCurrentOverview(vin) print(json.dumps(data, indent=2))
Just wondering if anyone else is seeing this?
VIN: xxxxModel: None Year: None datat is {'vin': 'xxx', 'oilLevel': None, 'fuelLevel': None, 'batteryLevel': None, 'remainingRanges': {'conventionalRange': None, 'electricalRange': None}, 'mileage': None, 'parkingLight': 'INVALID', 'parkingLightStatus': None, 'parkingBreak': 'INVALID', 'parkingBreakStatus': None, 'doors': {'frontLeft': 'INVALID', 'frontRight': 'INVALID', 'backLeft': 'INVALID', 'backRight': 'INVALID', 'frontTrunk': 'INVALID', 'backTrunk': 'INVALID', 'overallLockStatus': 'CLOSED_LOCKED'}, 'serviceIntervals': {'oilService': None, 'inspection': None}, 'tires': {'frontLeft': {'currentPressure': None, 'optimalPressure': None, 'differencePressure': None, 'tirePressureDifferenceStatus': 'UNKNOWN'}, 'frontRight': {'currentPressure': None, 'optimalPressure': None, 'differencePressure': None, 'tirePressureDifferenceStatus': 'UNKNOWN'}, 'backLeft': {'currentPressure': None, 'optimalPressure': None, 'differencePressure': None, 'tirePressureDifferenceStatus': 'UNKNOWN'}, 'backRight': {'currentPressure': None, 'optimalPressure': None, 'differencePressure': None, 'tirePressureDifferenceStatus': 'UNKNOWN'}}, 'windows': {'frontLeft': 'INVALID', 'frontRight': 'INVALID', 'backLeft': 'INVALID', 'backRight': 'INVALID', 'roof': 'INVALID', 'maintenanceHatch': 'INVALID', 'sunroof': {'status': 'INVALID', 'positionInPercent': None}}, 'parkingTime': None, 'overallOpenStatus': 'CLOSED', 'chargingStatus': None, 'carModel': None, 'engineType': None, 'chargingState': None}
IN: WP0CD2A9XRS257470 Model: None Year: None { "vin": "xxx", "oilLevel": null, "fuelLevel": null, "batteryLevel": null, "remainingRanges": { "conventionalRange": null, "electricalRange": null }, "mileage": null, "parkingLight": "INVALID", "parkingLightStatus": null, "parkingBreak": "INVALID", "parkingBreakStatus": null, "doors": { "frontLeft": "INVALID", "frontRight": "INVALID", "backLeft": "INVALID", "backRight": "INVALID", "frontTrunk": "INVALID", "backTrunk": "INVALID", "overallLockStatus": "CLOSED_LOCKED" }, "serviceIntervals": { "oilService": null, "inspection": null }, "tires": { "frontLeft": { "currentPressure": null, "optimalPressure": null, "differencePressure": null, "tirePressureDifferenceStatus": "UNKNOWN" }, "frontRight": { "currentPressure": null, "optimalPressure": null, "differencePressure": null, "tirePressureDifferenceStatus": "UNKNOWN" }, "backLeft": { "currentPressure": null, "optimalPressure": null, "differencePressure": null, "tirePressureDifferenceStatus": "UNKNOWN" }, "backRight": { "currentPressure": null, "optimalPressure": null, "differencePressure": null, "tirePressureDifferenceStatus": "UNKNOWN" } }, "windows": { "frontLeft": "INVALID", "frontRight": "INVALID", "backLeft": "INVALID", "backRight": "INVALID", "roof": "INVALID", "maintenanceHatch": "INVALID", "sunroof": { "status": "INVALID", "positionInPercent": null } }, "parkingTime": null, "overallOpenStatus": "CLOSED", "chargingStatus": null, "carModel": null, "engineType": null, "chargingState": null }
thanks