flobz / psa_car_controller

Control psa car with connected_car v4 API.
GNU General Public License v3.0
383 stars 195 forks source link

non-electric versions, no gps data and no trip #684

Open riddik14 opened 7 months ago

riddik14 commented 7 months ago

for the petrol and diesel versions, is it normal for the data returned by the API to lack GPS and trip data?

but with the TRONITY app I can get the GPS position Let me start by saying that I have the Allure version, Allure Pack with 10 inch navigator with remote services activated

I tried calling Peugeot with the Peugeot logo button and asked if they could see my location and the answer was yes. I'm looking for clarification

http://192.168.1.247:5000/get_vehicleinfo/myvin?from_cache=1

' { "embedded": null, "links": { "_self": { "deprecation": null, "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/........../status?profile=endUser", "hreflang": null, "name": null, "profile": null, "templated": null, "title": null, "type": null }, "vehicle": { "deprecation": null, "href": "https://api.groupe-psa.com/connectedcar/v4/user/vehicles/........", "hreflang": null, "name": null, "profile": null, "templated": null, "title": null, "type": null } }, "battery": { "current": null, "voltage": 79.5 }, "doors_state": { "locked_state": null, "opening": [ { "identifier": "Trunk", "state": "Closed" }, { "identifier": "Driver", "state": "Closed" }, { "identifier": "RearRight", "state": "Closed" }, { "identifier": "RearLeft", "state": "Closed" }, { "identifier": "Passenger", "state": "Closed" }, { "identifier": "RearWindow", "state": "Closed" }, { "identifier": "RoofWindow", "state": "Closed" } ], "updated_at": null }, "energy": [ { "updated_at": "2023-11-24 18:18:02+00:00", "autonomy": 330, "battery": null, "charging": null, "consumption": null, "level": 50, "residual": null, "type": "Fuel" } ], "environment": { "created_at": null, "air": { "temp": 10.5 }, "luminosity": { "day": true } }, "ignition": { "type": "Stop" }, "kinetic": { "acceleration": null, "moving": null, "pace": null, "speed": null }, "last_position": { "type": "Feature", "geometry": { "coordinates": [ null, null, null ], "type": "Point" }, "properties": { "heading": null, "signal_quality": null, "type": null, "updated_at": null } }, "preconditionning": null, "privacy": { "state": "None" }, "safety": null, "service": { "type": "Unknown", "updated_at": null }, "timed_odometer": { "updated_at": "2023-11-24 18:18:02+00:00", "mileage": 39528 } }`

hublol commented 6 months ago

Hello, I actually have the exact same problem with an electric e-208. This is a brand new car, that replaced the exact same model. With the previous e-208, this was working fine. But it never worked with the new one. Sharing data is enabled in the car, and I can get the position of the car with the mobile app. It's really not clear to me if this is a problem coming from the car itself, from an incorrect configuration, or from the API, or from the app...

    "last_position": {
        "type": "Feature",
        "geometry": {
            "coordinates": [
                null,
                null,
                null
            ],
            "type": "Point"
        },

The result is that I don't get any trip registered, and the map is obviously not displaying.

jesmak commented 6 months ago

I have the same issue with my new C5 Aircross plugin-hybrid. I can see the last location and all trip data in MyCitroen, but the addon just returns null for coordinates and trip data. Data sharing is enabled in the car settings. Anyone managed to find a solution?