Data
How to export your Tesla data as CSV
One zip holds everything WattLoft keeps for the cars you can see: drives, charges, alerts and every stored reading as CSV, plus your settings and automations as JSON.
Your car’s history is yours, and it should be usable outside the app that recorded it: in a spreadsheet for a mileage claim, in a notebook for your own analysis, or on another server. WattLoft exports all of it as plain files.
You need a WattLoft account with at least one car you can see. If you are not there yet, start with connecting your Tesla.
Make the export
- Open Settings → Import & export.
- Choose the Period: All, This year, Last 12 months, or Custom for any two days. Custom uses whole days in your time zone.
- Press Export. WattLoft packs the zip; it downloads when it is ready.
The zip stays available for an hour, so a slow connection or a closed tab does not lose it. The file is named after the period you chose.
One export covers every car you can see, including cars someone shared with you.
What is in the zip
| File | What it holds |
|---|---|
| manifest.json | What is inside: the cars, how many rows of each, the period and the units |
| account.json | Your profile, your settings (units, rates, notification rules), saved places, automations and imports |
| car.json, per car | The car’s name, the last full status snapshot Tesla sent, options, warranty and other reference data |
| drives.csv, per car | Every drive: start and end, odometer, battery, distance, speeds, energy, peak power and regen, temperatures, places |
| charges.csv, per car | Every charging session: start and end, energy, cost, battery, range added, the kind of place, temperatures |
| events.csv, per car | Alerts and events: what happened, how serious, when |
| readings.csv, per car | Every stored reading, one per line: time, field and value |
Only drives, charges, alerts and readings inside the period are included. Settings, places and automations are always exported whole.
Read the files correctly
Two things trip people up.
Units are Tesla’s, not yours. The files use the units the car reports: miles, mph, °C, kWh, kW and bar. WattLoft converts for display only. To get kilometres in a spreadsheet, multiply miles by 1.609.
Times are UTC. Each time is stored as milliseconds since 1970, with an ISO 8601 copy in the columns ending in _iso. Spreadsheets read the ISO copy directly; shift it to your time zone if a drive at 08:00 should read 08:00 and not 07:00.
In readings.csv a value is a number, a word (“Charging”, “D”) or, for a location, JSON with a latitude and a longitude. Rows brought in by an import are marked: in the import_id column of the drives and charges files, and in the imported column of readings.csv.
How finely readings are stored depends on what the car was doing: at most every 5 seconds while driving, every 30 seconds while charging and every 60 seconds parked, with state changes always stored. How to graph any value your Tesla reports explains these floors.
Ideas for using it
- A mileage log. drives.csv has the start and end of every drive, the odometer and the places. Filter by date, sum the distance, and you have a trip log for an expense claim or a tax return.
- Charging costs for the year. charges.csv has the energy and the cost of every session, with the kind of place, so home and Supercharger spending can be totalled separately. The costs come from your own rates; see how to track what charging costs.
- Your own analysis. readings.csv is long and narrow, one reading per line, which is the shape most analysis tools want.
- A backup, or a move. The zip can be imported back into WattLoft, on this server or another, and nothing already there is doubled: moving your history covers the import side.
The raw document for one car
For a single snapshot rather than a history, the Data explorer has the car’s last full vehicle-data document at the bottom of the page, expandable as JSON. It is the same document that goes into car.json. The Settings chapter of the manual describes the export in full.
Frequently asked questions
What format does WattLoft export Tesla data in?
A zip of CSV files for drives, charges, alerts and readings, one set per car, plus JSON files for the account, each car and a manifest.
Why are distances in miles in the export?
The export keeps the units Tesla reports, which are miles, mph, °C, kWh, kW and bar. Multiply miles by 1.609 for kilometres.
How long is the export download available?
For an hour after it is ready.
Can I import a WattLoft export somewhere else?
Yes. A WattLoft export can be imported into WattLoft on the same server or another, and only the rows that are not already there are added.