fredrikfjeld / tesla-options-decoder Goto Github PK
View Code? Open in Web Editor NEWHome Page: http://options.teslastuff.net
Home Page: http://options.teslastuff.net
Hi,
First, thanks for sharing this on GitHub. I'm working on some Tesla-related application stuff and I wouldn't even know what I was looking at/for without this. The configuration/options was a bit intimidating so the help is much appreciated.
I noticed your script to fetch the pricebooks doesn't work anymore (not for me, anyway, reason unknown, perh). My solution isn't perfect but I did write a small script using PhantomJS here that gets the same data as in your pricebook data. I wanted to share mine in case you wanted to update your data files but didn't want to go through the hassle of updating the script.
Thanks again.
Hey @fredrikfjeld, this options decoder is pretty sweet.
But, of the 52 codes that are serialized in the options
value of my "View Design" URL, only 45 are being displayed.
I noticed that the codes are only displayed if they are known codes in the pricebook JSON files. Did you create these JSON files yourself, or did you get them from another source? I'm asking because I'd like to help with adding the extra codes, either by manually adding them or updating from whatever source you used.
A specific example of what I'd like to add is BT70
for the new 70 kWh battery.
Here's an option list retrieved from the API for a 3 LR 2WD:
AD15,MDL3,PBSB,RENA,BT37,ID3W,RF3G,S3PB,DRLH,DV2W,W39B,APF0,COUS,BC3B,CH07,PC30,FC3P,FG31,GLFR,HL31,HM31,IL31,LTPB,MR31,FM3B,RS3H,SA3P,STCP,SC04,SU3C,T3CA,TW00,TM00,UT3P,WR00,AU3P,APH3,AF00,ZCST,MI00,CDM0
(Interestingly, some of them are clearly wrong; that car is a PPSB, but the API says PBSB.)
The same car, depending on which account page image compositor I use, shows options
$APPB,$BT37,$PPSB,$IN3PB,$MDL3,$DV2W,ZCST,$PRM31,$W38B,WR01
or
DV2W,IN3PB,COL2-PPSB,W38B
I believe:
MDL3 is Model 3
DV2W is 2WD
PPSB/COL2-PPSB is the metallic blue
W38B is the 18 inch aero wheels
APH3 is autopilot hardware 2.5
From another car,
APPB is Enhanced Autopilot
BC3R is performance brakes
DV4W is Dual Motor All-Wheel Drive
PPMR is Multi-coat Red
PRM31 is Premium Interior
W32P is 20inch Performance Wheels
SLR1 is Carbon Fiber Spoiler
MT304 is Long Range All-Wheel Drive Performance
PL31 is Performance Pedals
SPT31 is Performance Upgrade
The new inventory page has some option codes in its source, which I've parsed into a nice JSON list for you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.