TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker and becoming a Supporting Member. For more info: Support TMC

Breaking down the Model S range calculator: hidden features and data!

Discussion in 'Model S' started by KarenRei, Jul 26, 2017.

Tags:
  1. KarenRei

    KarenRei KarenRei KarenRei KarenRei KarenRei KarenRei

    Joined:
    Jul 18, 2017
    Messages:
    1,517
    Location:
    Iceland
    So, on a whim I decided to look into how Tesla's Model S range calculator works. You know the one (3/4ths down):

    Model S | Tesla Europe

    Looking at the code, I see that first off, there's actually several data fields that you can't configure. They have 90D data. They have data on the effects of headlights. They have data on the effects of windows. They have a range field called "city", which one presumes is a start/stop city cycle of unknown details. And of course,one can always take their data, combine it with the known actual-usable-capacity data, and get Wh/mi on the vehicles. They also have three versions of the site - metric, imperial, and hybrid - each with datapoints, which you can combine to get a wider set of data. So, I'm attaching two spreadsheets that contain *all* of this data, including the hidden data, so people can feel free to look things up, make comparative graphs, and so forth :)

    Graph ideas (I don't have time at the moment):
    * How does each model's energy consumption compare in the same weather/window/light/ac/heating conditions?
    * How do windows-down effect a given vehicle's energy consumption under a specific set of conditions vs. AC?
    * Same for lighting, and heating

    One could also adjust the curves to get a pretty good guess at Model 3 data (for example, range vs. speed in different weather conditions).

    The other curious thing I found is this:

    https://www.tesla.com/tesla_theme/js/models/data/config.json

    There's a ton of fields in there describing something *much* more elaborate than the simplistic range calculator on the page. It sounds like they were perhaps looking to do a primitive of what a company I ran years ago had offered to them as a feature ;) That is, simulating actual drives. There's data in there to figure out how long charges take, with fields like:

    "plugEfficiencyStd": 6.48,
    "plugEfficiencyMid": 9.94,
    "plugEfficiencyMid_JP": 6.743,
    "plugEfficiencyHi": 19.85,
    "plugEfficiencyHi_JP": 13.65,

    There's fields discussing summer vs. winter. There's something involving estimating your savings vs. a gasoline car:

    "savingsTitles": ["PETROL STATIONS", "OIL CHANGES", "SPARK PLUGS", "SMOG CHECKS", "TIMING BELTS", "FUEL FILTERS"],

    There's a list of fuel prices for different countries. There's lots of animation data - including charging animations, savings animations, and my favorite, road trip animations that have fields related to cows:

    "cowLeftStart": 7138,
    "cowLeftStop": 7618,
    "cowRightStart": 7138,
    "cowRightStop": 7618,
    "cowRight2Start": 7138,
    "cowRight2Stop": 7618,

    It'd be interesting to know just what they had been planning ;)

    Anyway, just thought I'd share :)
     

    Attached Files:

    • Informative x 3
    • Love x 2
    • Like x 1
  2. jaguar36

    jaguar36 Active Member

    Joined:
    Apr 10, 2014
    Messages:
    1,733
    Location:
    NJ
    I just use EVtripplanner Its very accurate for predicting energy usage, and takes into account weather, elevations and road speed. The Tesla information is mostly useless.
     
    • Like x 1
  3. cadop

    cadop New Member

    Joined:
    Jan 10, 2017
    Messages:
    2
    Location:
    Reggio Emilia, Italy
    Wow this is awesome!
     
  4. DanL50

    DanL50 Member

    Joined:
    Mar 25, 2018
    Messages:
    26
    Location:
    Las Vegas
  5. SKRGO

    SKRGO Member

    Joined:
    Aug 20, 2017
    Messages:
    83
    Location:
    Atlanta
    Once you try ABRP while connected live to your car on a trip you will not use anything else.
     
    • Disagree x 3
  6. BigTonyTones

    BigTonyTones Member

    Joined:
    Nov 28, 2016
    Messages:
    349
    Location:
    Los Angeles
    Just want to contribute my 2 cents.
    I found the in car tesla navigation to be a bit off in range on certain routes that I have taken in the past and decided to give this app a try last week when I went from Los angeles to San francisco.
    tesla_to | Digital Auto Guides

    Its a forum member who made it and it uses multiple things to calculate range, altitude, weather, wind, speed you like to drive at etc...

    I have to say it was SPOT ON! On my way back it said I would have 33 miles left when I would arrive to my house.

    Almost home and I was saying to myself, "no way this thing is accurate I should be much less than that". Nevertheless I kept driving to test it. Well the few mile descent through the grapevine gave me the mileage needed and I did arrive to my house with about 38 miles left. I was shocked! I actually proffered its route calculation more since it had me stopping at superchargers for only a few minutes where the tesla navigation wanted me to stop for a full 40 minutes at certain ones.

    Also, the TESLA navigation was indeed accurate for the first time (iv done the same drive before). Im wondering if they optimized it with the latest map update that my car received.
     
  7. David99

    David99 Active Member

    Joined:
    Jan 31, 2014
    Messages:
    3,337
    Location:
    Brea, Orange County
    That's very interesting. Since the data comes from Tesla it's most likely pretty accurate. They used to have a range calculator on their website that allowed you to see the difference with windows up or down, headlights up or down and various temperatures.

    On the other hand we have quite a few good trip planning tools available now. EVTripplanner.com, AbetterRouteplanner.com, EVTripping, The car's own trip planner and a few others.

    I have driven 90k miles on road trips with my Model S, used Superchargers more than 800 times. These days I'm using mostly EVTripplanner to give me an idea of the trip, but once I'm on the road I just use the car's trip planner and sometimes manually pick the superchargers I want to use rather than what the planner does, depending on how hungry we are, bathroom needs or things I want to stop by and see on the way.
     
    • Informative x 2
  8. Hugh Mannity

    Hugh Mannity Mediocre Member

    Joined:
    Jul 31, 2014
    Messages:
    1,050
    Location:
    Port Haney, BC
    Cool stuff! I’m always amazed when people dig into the car’s info like this. You make this forum a better place!
     
  9. yngwiescruggs

    yngwiescruggs Member

    Joined:
    Oct 25, 2017
    Messages:
    14
    Location:
    Chandler, AZ
    Likewise I noticed today on a road trip that the tesla in car nav estimates were spot on and much more aggressive, matching actual driving conditions. I expected to see more on the forums about it because the difference was stark from before. I noticed the difference especially because the original algorithm seriously overestimated range when going up in altitude and underestimated when going down. Today it was accurate both ways from Phoenix (1500 ft) to/from Sedona (5000 ft).
     
    • Helpful x 1
    • Like x 1
  10. BigTonyTones

    BigTonyTones Member

    Joined:
    Nov 28, 2016
    Messages:
    349
    Location:
    Los Angeles
    I'm glad to hear I wasn't the only one who noticed it I bet it's hard to notice unless you do a long drive.
     
  11. shanelord

    shanelord Member

    Joined:
    Mar 27, 2018
    Messages:
    61
    Location:
    Sydney, Australia
    #11 shanelord, Apr 23, 2018
    Last edited by a moderator: Apr 23, 2018
    Moderator note-- Shanelord apologizes for mistaking this app with another:
    I’d love to use EVTO but the subscription is way overpriced for what it does.
     
    • Funny x 1
  12. dweeks

    dweeks Member

    Joined:
    Aug 26, 2014
    Messages:
    217
    Location:
    Flagstaff, AZ
    It's only 99 cents per month. I don't consider that overpriced.
     
    • Like x 1
  13. BigTonyTones

    BigTonyTones Member

    Joined:
    Nov 28, 2016
    Messages:
    349
    Location:
    Los Angeles
    It's about 85 cents a month .it saved me some time on my last San Francisco trip. That time alone is worth more to me than the subscription fee.


    Isn't the program free up to a 500 mile trip ?
     
  14. SKRGO

    SKRGO Member

    Joined:
    Aug 20, 2017
    Messages:
    83
    Location:
    Atlanta
    So

    David99
    jaguar36
    Galve2000

    Why do you disagree with my post. What do you not like about ABRP?
     
  15. shanelord

    shanelord Member

    Joined:
    Mar 27, 2018
    Messages:
    61
    Location:
    Sydney, Australia
    Apologies you are all correct. Mistakes were made and I have confused EVTO with another app. Sincerest apologies to the developer and you all for my incorrect statement.

    Shane.
     

Share This Page

  • About Us

    Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.
  • Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


    SUPPORT TMC