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

VisibleTesla

Discussion in 'Model S: User Interface' started by jpasqua, Aug 8, 2013.

  1. dirkhh

    dirkhh Middle-aged Member

    Joined:
    Jul 7, 2013
    Messages:
    3,646
    Location:
    Portland, OR, USA
    There is the teslams JavaScript project on github. That allows you to store the streaming telemetry data in a database and then show your car's past location / speed on a map plus the energy consumption / regen / charging and SOC over time.

    I'm planning to also add some statistics (how much time was SOC above 90% or below 10%, what's the average daily distance, average Wh/mile, etc) to it. Right now I'm in the final cleanup of patches that let the use enter the time range in a much easier way. I'll send Hans a pull request for that, soon.

    I'm not sure if it makes sense to combine the two projects, but I'll be happy to help with that if people want to go that way. I mostly contributed to Hans' project because it was there first and it gave me the tools I needed to implement what I wanted the most (ability to store, visualize and analyze the telemetry data without having to give my credentials to a third party site).
     
  2. jpasqua

    jpasqua P19325

    Joined:
    Feb 19, 2013
    Messages:
    696
    The problem was that every time a refresh happens (auto or manual) it reloads the google map and reverts to the default mode, zoom, etc. This means that Satellite mode was reset.

    I've changed the way I do this. Now when a refresh happens the application executes a little javascript on the existing page to update the marker rather than reloading the page completely. All the map settings are retained. I'm not quite done with the fix. When I am, I'll post a new version.
     
  3. jpasqua

    jpasqua P19325

    Joined:
    Feb 19, 2013
    Messages:
    696
    VisibleTesla v0.14b1

    VisibleTesla v0.14b1 can be found here.

    Changes:
    • Just a bug fix. In earlier versions when the map refreshes (either auto or manual) in the Location tab, all the google map settings were lost. If you zoomed, changed to Satellite mode, etc., all of that went away. Now those settings are untouched.
    • It would be great if someone could actually watch their Tesla moving in Location view while someone else drives it around. I've only simulated the impact of actual motion so far.
    • Thanks todsmith2189 for pointing this out
     
  4. dirkhh

    dirkhh Middle-aged Member

    Joined:
    Jul 7, 2013
    Messages:
    3,646
    Location:
    Portland, OR, USA
    #24 dirkhh, Aug 11, 2013
    Last edited: Aug 11, 2013
    We should connect VisibleTesla to the database backend we have. That way you can also watch replay of past telemetry data...
     
  5. jpasqua

    jpasqua P19325

    Joined:
    Feb 19, 2013
    Messages:
    696
    Sure enough, there is a set of circumstances that will cause the auto-refresh to be scheduled for 300 million years into the future rather than 15 seconds!

    I've fixed it but probably won't release it until I have some other changes as well.
     
  6. araxara

    araxara S-P85#3,218 X-90D#3,299

    Joined:
    May 11, 2012
    Messages:
    850
    Location:
    Tucson, AZ
    Maybe when you get a chance, could you add the charger cable to the Overview tab when the car is charging? And also the charger port open/close graphics. I believe there are PNGs for both.
     
  7. jpasqua

    jpasqua P19325

    Joined:
    Feb 19, 2013
    Messages:
    696
    Experimental code is there but minimally tested. If you want to live on the wild side, try out this jar and let me know if it works for you:

    Dropbox - VisibleTeslaPort.jar

    I've only done the most rudimentary testing. The API has a specific value that indicates whether the charge port door is open. To determine whether the cable is connected I look for a non-zero pilot current. Technically I suppose that the cable could be physically connected and this reading could still be zero, but that's probably pretty rare.

    If any of you try this (save your old jar file), please let me know if you have problems. I'll roll this feature into the next update assuming that it works.
     
  8. araxara

    araxara S-P85#3,218 X-90D#3,299

    Joined:
    May 11, 2012
    Messages:
    850
    Location:
    Tucson, AZ
    Looks like it works, except that the charging port/cable look to be in the wrong position or at least the graphics look weird.

    Charge port closed:
    Screen Shot 2013-08-12 at 12-Aug 1.50.47 AM.jpg

    Charge port open:
    Screen Shot 2013-08-12 at 12-Aug 1.49.17 AM.jpg

    Cable connected:
    Screen Shot 2013-08-12 at 12-Aug 1.45.15 AM.jpg
     
  9. jpasqua

    jpasqua P19325

    Joined:
    Feb 19, 2013
    Messages:
    696
    Thanks. I'll take care of that.
     
  10. steve841

    steve841 Active Member

    Joined:
    Jan 17, 2010
    Messages:
    1,635
    Location:
    Ft. Lauderdale, FL
    This thread makes me regret not taking a different path in college ...

    Damn developers! I'm so jealous. :cursing:
     
  11. jpasqua

    jpasqua P19325

    Joined:
    Feb 19, 2013
    Messages:
    696
    VisibleTesla 0.15

    VisibleTesla 0.15 can be downloaded here.

    Changes:
    • Basic documentation has been added. Click Overview.html in the Documentation folder.
    • The overview tab now displays the proper status of the charge port door and shows whether the charging cable is connected.
    • There were cases where auto refreshes never happened. They were scheduled for 300M years into the future rather than 15 seconds. That's fixed.
    • Some code cleanup with no user-visible changes.
    • The location tab no longer re-centers the map upon refresh. If, however, you pan the map such that the car marker is not visible, it will pan the map just enough to make sure the marker is showing.

    All of the sources for both the app and the underlying client library are in Github. I still need to apply an appropriate open source license to all of the files.
     
  12. araxara

    araxara S-P85#3,218 X-90D#3,299

    Joined:
    May 11, 2012
    Messages:
    850
    Location:
    Tucson, AZ
    The charger cable/port looks OK now, but my odometer info at the bottom of the Overview tab says, "Odometer: …"

    I also made a self contained bundled clickable app for this version for Mac OS X and made it available for download. It's not supposed to need Java installed, but I haven't tested on any other machines, since they all have Java already.
     
  13. ZBB

    ZBB Emperor

    Joined:
    Feb 27, 2013
    Messages:
    1,518
    Location:
    Scottsdale
    .15 appears to have a bug on the location tab... Shows my car at what may be your residence, so you may want to pull this version down for now. Worked fine in .13 (last I tried...).

    Edit: clicking the "Browse" button sends the correct pin point to Google Maps in my browser. Looks like the jar just isn't updating the actual location/maps in the app...
     
  14. jpasqua

    jpasqua P19325

    Joined:
    Feb 19, 2013
    Messages:
    696
    ZBB, would you please pull down 0.15 again? I accidentally put up a test version of the jar that had a fixed location hard coded. I replaced it with the proper version.
     
  15. jpasqua

    jpasqua P19325

    Joined:
    Feb 19, 2013
    Messages:
    696
    It should only display this momentarily until the odometer reading can be retrieved. If it never updates then there is a problem. I'll see if I can find a way to reproduce it.
     
  16. araxara

    araxara S-P85#3,218 X-90D#3,299

    Joined:
    May 11, 2012
    Messages:
    850
    Location:
    Tucson, AZ
    I have a spoiler on my car, but it does not appear in VisibleTesla, but it does appear in the iOS app.

    Visible Tesla:
    Screen Shot 2013-08-12 at 12-Aug 11.08.22 PM.png

    iOS app:
    IMG_0072.PNG

    When clicking the Details button, I get the following Perfomance Options:

    Code:
    Performance Options: [
           Performance: true
           Performance+: false
           Performance Exterior: false
           Performance Powertrain: true
        ]
    It's probably the Performance Exterior: false that's causing this. Since I had the spoiler installed after my delivery, maybe they forgot to update the internal settings.

    Also, a small item is that the charge port door does not appear in exactly the same position as in the iOS app.
     
  17. MrOteece

    MrOteece Member

    Joined:
    Jan 19, 2013
    Messages:
    48
    Location:
    California
    Do you plan on adding logging of telemetry info or historical vehicle info to this app? Something compatible with teslams perhaps?
     
  18. dirkhh

    dirkhh Middle-aged Member

    Joined:
    Jul 7, 2013
    Messages:
    3,646
    Location:
    Portland, OR, USA
    I'll be happy to help with that (I contributed logging to a database in teslams). The issue is that the app that does the logging needs to run 24/7.

    I think it might be smarter to have VisualTesla connect to the existing database. Right now I implemented some data visualization in JavaScript for teslams, but having that as part of a Java app (that has a very attractive design) might be a much better direction.

    Right now the database only stores the streaming data. If there is more that we should store, I'll be happy to add that.
     
  19. wormhole

    wormhole Banned

    Joined:
    Mar 31, 2013
    Messages:
    427
    Location:
    Westchester, New York
    Would love this for Mac :)
     
  20. Johan

    Johan Funds for M3 secured. Contingent on wife aproval.

    Joined:
    Feb 9, 2012
    Messages:
    7,179
    Location:
    Drammen, Norway
    It's Java. Runs on almost any OS.
     

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