I've written my own googleappscript hosted js app that constantly queries the tesla server for my vehicle information in real time (1s intervals). The documentation for the API can be found here
Tesla API My app allows me to track my driving and charging sessions.
There's definitely more functionality available but has not been discovered by the public because Tesla doesnt disclose their API endpoints publicly.
My own app pretty much does what all the other Tesla datalogger apps do (Tezlab, Stats for Tesla, TeslaFi), albeit with less fancy visualizations cuz I'm just logging the data into my googlesheet and using the built in charts to create visualizations, but it's free
As for Tesla's data request files, i finally got them eventually. And, they are almost impossible to intepret. The csv file is huge with a lot of data points and does include data that is not available via API (car acceleration values, etc). However, in the file they sent me, it appears i only have one event that they ever recorded, so there's not many records to go by. Honestly, not very useful unless you already know what you are looking for and which columns will give you that info.
Interesting, I don't have the tech knowledge to do what you are doing but TeslaFi is working well for me. Having this real time data available to owners seems to be very popular, hopefully Tesla makes it officially available to us at some point.
I was surprised to receive some of the data I requested today. Firefox wasn't working well with the Tesla data request page and I ended up unintentionally getting data from two weeks ago which is what I received today, I put in a second request for the time period where I was having charging abnormalities. The first request didn't specify what info I wanted but I did specify charging data on the second request so we'll see if the data package is any different.
Here is a list of the data points that they sent me. It was all originally in CVS format.
VIN,DATE (UTC),Offboard Charger ID,Charge Handle Communication Signal,Charge Cable Connected,Charge Cable Secured,Charge Port Door Button Pressed,Fast Charge Adapter Latch Status,Autopilot Trial Status,Estimated Brake Pedal Position,Passenger Seat Occupant Classification,Gear Selector Stalk Status,UI Setting - PIN to Drive,PIN Tto Drive accepted,Requested Charge Current (Amps),UI Setting - Automatic Emergency Braking,UI Setting - Automatic High Beam,UI Setting - Vehicle Alarm,UI Setting - Automatic High/Low Beams Enabled,UI Setting - Automatic Lane Change,Request Automatic Parking,UI Request - Enable Charging,UI Setting - Door Child Locking,UI Request - lose Charge Port Door,UI Setting - Navigate on Autopilot,UI Request - Factory Reset,UI Setting - Forward Collision Warning,UI Setting - Forward Collision Warning Sensitivity,UI Request - Follow Navigate on Autopilot Route,UI Request - Front Trunk Open,UI Setting - Disable Air Conditioning,Air Conditioning - Air Distribution Mode,Air Conditioning - Cabin Blower Setting,Air Conditioning - Cabin Defog Mode,Air Conditioning - Cabin Air Recirculation Mode,Air Conditioning - Rear Cabin Blower Setting,Seating - Left Front Temperature,Seating - Right Front Temperature,Air Conditioning - State,UI Setting - Autosteer,UI Setting - Lane Departure Warning,UI Setting - Headlamps,UI Request - Vehicle Lock/Unlock,UI Setting - Mirror Fold ,Navigation Route Active,Navigating to Supercharger,Odometer (Kilometers),UI Request - Open Charger Port Door,UI Request - Park Brake,UI Setting - Acceleration Mode,Mobile App - Remote Closure Request,Mobile App - Remote Start Request,UI Setting - Headlamps After Exit,Auto Summon Status,UI Setting - Steering Mode,Summon State,UI Request - Track Mode,UI Request - Trunk Open/Close,UI Setting - Lane Change Mode,UI Setting - Unlock On Park,"Air Conditioning - Left Side, Split/Focus","Air Conditioning - Left Side, Split Percentage ","Air Conditioning - Left Side, Vertical Position","Air Conditioning - Left Side, Horizontal Position","Air Conditioning - Right Side, Split/Focus","Air Conditioning - Right Side, Split Percentage ","Air Conditioning - Right Side, Vertical Position","Air Conditioning - Right Side, Horizontal Position",UI Setting - Walk Away Door Locking,UI Setting - Winch Mode,UI Request - Wiper Mode,Wiper Speed,Daytime Running Light Status - Left,Daytime Running Light Status - Right,Front Trunk Access Post Usage,Front Trunk Release - Interior Switch,Front Passenger Present,Cabin Preconditioning Status,Overhead Map Light - Front Left Switch,Overhead Map Light - Front Right Switch,Overhead Map Light - Rear Left Switch,Overhead Map Light - Rear Right Switch,Left Rear Window Auto-Down Switch,Left Rear Window Auto-Up Switch,Left Rear Window Down Switch,Left Front Window Auto-Down Switch,Left Rear Window Auto-Down Switch,Right Front Window Auto-Down Switch,Right Rear Window Auto-Down Switch,Left Front Window Auto-Up Switch,Left Rear Window Auto-Up Switch,Right Front Window Auto-Up Switch,Right Rear Window Auto-Up Switch,Left Front Window Down Switch,Left Rear Window Down Switch,Right Front Window Down Switch,Right Rear Window Down Switch,Left Front Window Up Switch,Left Rear Window Up Switch,Right Front Window Up Switch,Right Rear Window Up Switch,Left Rear Window Up Switch,Steering Column Profile Recall,Front Left Seatbelt Buckle Status,Front Left Seat - Backrest Position,Switch Request - Front Left Seat Backrest Back,Switch Request - Front Left Seat Backrest Forward,Switch Request - Front Left Seat Lift Down,Front Left Seat - Lift Position,Switch Request - Front Left Seat Switch Lift Up,Switch Request - Front Left Seat Switch Lumbar Down,Switch Request - Front Left Seat Switch Lumbar In,Switch Request - Front Left Seat Switch Lumbar Out,Switch Request - Front Left Seat Switch Lumbar Up,Switch Request - Front Left Seat Switch Tilt Down,Front Left Seat - Tilt Position,Switch Request - Front Left Seat Switch Tilt Up,Switch Request - Front Left Seat Track Back,Switch Request - Front Left Seat Track Forward,Front Left Seat - Track Position,Hazard Warning Switch Status,Horn Switch Status,"Seat Occupancy Status - Rear, Centre",Rear Air Conditioning Control Switch Status,"Door External Release - Left side, Rear","Door Internal Release - Left side, Rear","Seatbelt Buckle Status - Left Side, Rear","Seat Occupancy Status - Left Side, Rear","Seat Occupancy Status - Right Side, Rear","Seat Profile Recall - Left Side, Front",Left Steering Wheel Switch - Pressed,Left Steering Wheel Switch - Scroll,Left Steering Wheel Switch - Tilt Left,Left Steering Wheel Switch - Tilt Left,Right Steering Wheel Switch - Pressed,Right Steering Wheel Switch - Scroll,Right Steering Wheel Switch - Tilt Left,Right Steering Wheel Switch - Tilt Left,"Right Front Window, Auto-Down Switch","Right Rear Window, Auto-Down Switch","Right Front Window, Auto-Up Switch","Right Rear Window, Auto-Up Switch","Right Front Window, Down Switch","Right Rear Window, Down Switch","Left Front Window, Auto-Down Switch","Left Rear Window, Auto-Down Switch","Right Rear Window, Auto-Down Switch","Left Front Window, Auto-Up Switch","Left Rear Window, Auto-Up Switch","Right Rear Window, Auto-Up Switch","Left Front Window, Down Switch","Left Rear Window, Down Switch","Right Rear Window, Down Switch","Left Front Window, Up Switch","Left Rear Window, Up Switch","Right Rear Window, Up Switch","Right Front Window, Up Switch","Right Rear Window, Up Switch","Seatbelt Buckle Status - Right Side, Front","Door External Release - Right Side, Front","Door Internal Release - Right Side, Front",Front Right Seat - Backrest Position,Switch Request - Front Right Seat Backrest Back,Switch Request - Front Right Seat Backrest Forward,Switch Request - Front Right Seat Lift Down,Front Right Seat - Lift Position,Switch Request - Front Right Seat Switch Lift Up,Switch Request - Front Right Seat Switch Lumbar Down,Switch Request - Front Right Seat Switch Lumbar In,Switch Request - Front Right Seat Switch Lumbar Out,Switch Request - Front Right Seat Switch Lumbar Up,Switch Request - Front Right Seat Switch Tilt Down,Front Right Seat - Tilt Position,Switch Request - Front Right Seat Switch Tilt Up,Switch Request - Front Right Seat Track Back,Switch Request - Front Right Seat Track Forward,Front Right Seat - Track Position,"Seatbelt Buckle Status - Centre, Rear","Door External Release - Right Side, Rear","Door Internal Release - Right Side, Rear","Seatbelt Buckle Status - Right, Rear",Seat Profile Recall - Front Right,Bluetooth Device 0 Status,Bluetooth Device 1 Status,Bluetooth Device 2 Status,Bluetooth Device 3 Status,Multiple NFC Cards Detected at Left Pillar,Multiple NFC Cards Detected at Left Pillar,ID of NFC card at Left Reader,ID of NFC card at Right Reader,Multiple NFC Cards Detected at Centre Console,ID of NFC card at Centre Console Reader,Lock/Unlock Authentication from Pillar Reader,Drive Authentication from Centre Console Reader,Identity of the Active Key Device,Vehicle Alarm Status,Vehicle Authentication Status,Charge Port Door Lock Status,Charge Port Door Request,Lock Request Type,Summon Request Status,Trunk Movement Status,Mobile App Request - Left Front Window,Mobile App Request - Left Rear Window,Mobile App Request - Right Front Window,Mobile App Request - Left Front Window,Mobile App Window