fungus75 / ioBroker.zoe2

Renault ZOE ioBroker adapter using the same API as myRenault APP
MIT License
15 stars 7 forks source link

getLocation #54

Closed MCP-KC closed 7 months ago

MCP-KC commented 7 months ago

The getLocation function gets back the following JSON structure:

{"data":{"id":"VF1AG0003657xxxxx","attributes":{"lastUpdateTime":"2024-04-06T18:44:27Z","gpsLatitude":49.3456138888889,"gpsLongitude":17.254573333333334}}}

(remark: car-ID, gps coordinates altered in this text)

Therefore, I think that var gpsLatitude=data.gpsLatitude; (leading to gpsLatitude:undefined) in main.js does not catch the data element.

I have tested var gpsLatitude=data.data.attributes.gpsLatitude; and it works.

The same holds true for gpsLongitude.

Obviously, Renault has changed the data structure on March 5th 2024.

Thanks!

fungus75 commented 7 months ago

please update to newest version. Hope it works for you also.