Welcome to Tesla Motors Club
Discuss Tesla's Model S, Model 3, Model X, Model Y, Cybertruck, Roadster and More.
Register

Search results

  1. hans

    Model S REST API

    I have done an `npm publish` of the latest teslams.js (version 1.3.0) so it should work from either source on github or via `npm install`. Special thanks to cbrandlehner for the fix.
  2. hans

    TeslaMS tools for telemetry data visualization

    I just did another npm publish (version 1.3.0) and validated that everything is working. If you run `teslacmd --version` you will see which version you are running. You will need 1.3.0 to get around the latest changes Tesla has made to block third party apps. I try my best to keep this project...
  3. hans

    Video of the new Intel MCU, please.

    My 2013 Model S has been waiting for over 4 weeks for an MCU replacement (backordered with no ETA) so be happy that it gets replaced with anything that works
  4. hans

    MCU on Mid 2014 MS Replaced

    I have been waiting for over 4 weeks for a globally backordered MCU replacement part for my 2013 Model S. Seem this part is failing across the board and is not in adequate supply by Tesla.
  5. hans

    Model S REST API

    Those aren't new. pf is passenger side front, pr is passenger side rear, rhd is right hand drive, rt is rear trunk. These indicate if the doors are open (1) or not (0) and the rhd is a flag to tell you which side is the driver/passenger side of the car
  6. hans

    Tesla API Token Generator

    I added in a flag to the command line tool in teslams to print a token. teslacmd -u [email protected] -p pa55w0rd --print_token
  7. hans

    Model S REST API

    You can probably get what you need from the VIN Decoding Tesla Model S VINs VIN Decoder | TeslaTap Make is position 4 and battery type is position 8
  8. hans

    TeslaMS tools for telemetry data visualization

    streaming -f /dev/stdout works on MacOS
  9. hans

    TeslaMS tools for telemetry data visualization

    I added in support for using tokens in place of username and password. Published new release to npm as version 1.2.2. You can now add --token abc123abc123 to your command line arguments (like teslacmd) or you can setup your ~/.teslams/config.json to have a token rather than a username and...
  10. hans

    Model S REST API

    Commands are all HTTP POST while the requests are all HTTP GET.
  11. hans

    Model S REST API

    The id is too big for JavaScript's int data type. You need to either use the "id_s" string version of the id or use a big integer handling library like JSON-bigint. See node.js is there any proper way to parse JSON with large numbers? (long, bigint, int64)
  12. hans

    Model S REST API

    There is a really good online Unix Epoch Timestamp converter than I have found helpful at Epoch Converter - Unix Timestamp Converter
  13. hans

    Model S REST API

    It's seconds and they last 90 days.
  14. hans

    Model S REST API

    try putting the state value encoded as form parameters rather than in the url. The sunroof control, set_temperature, and a few others I can't remember off the top of my head are all form encoded
  15. hans

    Model S: Clever Vanity Plates

    Guaranteed to get keyed by someone who mistakes this to mean you're a rich jerk who doesn't want people to touch your car.
  16. hans

    Connecting an Amazon Echo Dot to my Model S

    I wrote a little sample app that demonstrates how to control the Tesla via the Echo (or Dot) by having the car look like a WeMo switch . It's including in the tesla_wemo example on GitHub - hjespers/teslams I run the app on a Raspberry Pi in my home so I can say things like "Alexa, turn my...
  17. hans

    Model S REST API

    Just to clarify, the teslams javascript library does not login for every API call. It only does a login once and caches the token in memory for the life of the application and reuses it for all subsequent api calls. If your javascript app never exits, it will not ever need to login again for 90...
  18. hans

    TeslaMS tools for telemetry data visualization

    Seems strange. This should work. I run teslams on a RPi2 running Raspian Jessie. Check that the config.json is valid json and that you haven't missed a comma, bracket, or quotation mark. { "username": "[email protected]", "password": "blahblahblah" } You might also want to make sure...
  19. hans

    Model S REST API

    Yes of course there should be but since Tesla didn't set this system up for third parties it just doesn't exist.
  20. hans

    TeslaMS tools for telemetry data visualization

    I added support for AWS IOT output from streaming.js and I have already modified the streaming.js code to support DynamoDB. Visualize however does not support DynamoDB so if that's what you are looking for them I need a bit of help to make that happen. I have AWS lambda working now processing...
  21. hans

    Model S REST API

    I never store the token. Just as easy to get a new one each time at process start time. Never had a problem getting blocked by Tesla for too many login requests (only too many REST API requests).
  22. hans

    LTE upgrade is on the way

    I have no idea if my price is something that others can get. It was less than I expected to pay. I was expecting the $500 flat rate. The service guy at the Palo Alto service center also made a comment about it being less than he expected but he never said "we did you a favor" or "this is less...
  23. hans

    LTE upgrade is on the way

    I just got my LTE upgrade for $389.07 . It was $100.32 of parts and $288.75 in labor.
  24. hans

    TeslaMS tools for telemetry data visualization

    I am working on a web based app that would let you do just that but it's slow going due to real work that keeps getting the way. I struggled with the shifting sleep mode parameters from Tesla and eventually just learned to live with some vampire drain and left my car with always connected and...
  25. hans

    TeslaMS tools for telemetry data visualization

    I am pretty sure that sleep mode will not work unless you uncheck the "always connected" option in the car energy settings. I did a bit of checking while I was traveling and if the car is always online there is no way for the streaming app to know if the car is asleep or awake. It just keeps...
  26. hans

    TeslaMS tools for telemetry data visualization

    I have had some success using a local copy of freeboard to make a customizable dashboard that can visualize the data coming from streaming.js via the new MQTT output. Its been a struggle to get freeboard to publish and subscribe at the same time. I have each working in isolation but they collide...
  27. hans

    Remote S: Tesla app for Apple Watch, iPhone, iPad, and iPod Touch

    Fair enough. Seems like your heart is in the right place. So many people just go straight to freaking out about hackers for no good reason other than it gets a big reaction from people. The press is horrible for this.
  28. hans

    Firmware 7.1 - For Classic Model S

    Not for me either. Reboot is way longer that a wake from sleep. What I am trying to figure out is if "always connected" means the car never sleeps anymore. It used to be that whenever the car was not connected, it was asleep but that it not the case anymore.
  29. hans

    Remote S: Tesla app for Apple Watch, iPhone, iPad, and iPod Touch

    Everyone goes straight to imagining the worst hypothetical situation. How about we image a thief tries to steal your car and you use a remote app to lock him inside and summon the car to the local police department.
  30. hans

    TeslaMS tools for telemetry data visualization

    Well that's a pain. I suppose the code could check if the VIN matches from the prior data but that switchover could happen at any moment, not just at start time. Thank you for pointing this out so other lucky multi-car owners can watch out for this.
  31. hans

    Let the hacking begin... (Model S parts on the bench)

    I thought I was buying a very expensive but extremely cool 17" touchscreen Software Development Kit with some lighted visors ;-)
  32. hans

    Model S: Clever Vanity Plates

    I took it more like the EV equivalent of EATS GAS or SUX GAS and missed the whole blue cookie monster thing. Good vanity plates can always be interpreted multiple ways. My kids wanted me to get PAST GAS.
  33. hans

    TeslaMS tools for telemetry data visualization

    No. HTTP 504 error code means that their public proxy (probably NGINX) timed out waiting for another internal system. I consistently see a small percent of all API calls to Tesla that time out and have to be retried.
  34. hans

    IFTTT and Model S

    Not as far as I can tell. You can have the IF part be that it's 10pm via one of the calendar triggers or You can have the IF part be that your Tesla is not plugged in (sent as a Maker trigger) but you need a hypothetical IFTANDTTT (If This AND This Then That) to make this work. You can...
  35. hans

    Model S: Clever Vanity Plates

    Urban Dictionary: Nom I assume you understand the Ohm part.
  36. hans

    EVmote App

    I don't disagree with the rest of what you said but the streaming interface provides data 4 times a second, not once every 3 seconds.
  37. hans

    IFTTT and Model S

    Let me know if you need any help with Node Red. I have done a fair amount of work with it including writing a few plugins such as "node-red-contrib-teslams". So far it's my favorite IOT platform. Just learned that Numerous Shutting Down on May 1
  38. hans

    IFTTT and Model S

    The app I wrote gets all the streaming data from the car in realtime and also polls every minute on the same APIs used by Visible Tesla, EVmote, etc so it can get GPS coordinates of the car, speed, soc, charging state, climate data, etc. I wrote it such that the outputs are modular so I can...
  39. hans

    IFTTT and Model S

    I have managed to integrate IFTTT to my Tesla using the IFTTT Maker channel and webhooks to some custom code. I am still struggling to figure out a good use case that fits within IFTTT limited "recipe" capabilities. Perhaps A "DO" button to start/stop the charger or climate system? If anyone can...
  40. hans

    TeslaMS tools for telemetry data visualization

    I have some basic integration with IFTTT working. If anyone has some use cases and more experience with IFTTT I am happy to see if I can implement it. Just send me a PM.
  41. hans

    Amazon Echo - Best new tech gadget?

    I just got an Echo and I hadn't seen this thread so I did something very similar. I created a JavaScript/Node.js app that exposes the Tesla charger and Tesla HVAC On/OFF controls as virtual WeMo switches. Just say "Alexa, turn on my tesla charger" and it calls the same Tesla "REST" API just like...
  42. hans

    TeslaMS tools for telemetry data visualization

    I don't think "always connected" is the same and "online". I have put my car as "always connected" but it still does go to sleep at night. Perhaps not as deep a sleep as if I had "aways connected" off, but its saving electricity and reducing vampire drain somewhere other than the small amount...
  43. hans

    TeslaMS tools for telemetry data visualization

    It's very hard to monitor the car without actually waking it up. You can see if the car is awake or offline with the "teslacmd -i" vehicle info command. Look for "state" to have a value of "online" or "offline" or "waking". A value of "offline" most often means the car is sleeping but it can...
  44. hans

    TeslaMS tools for telemetry data visualization

    Visualize shouldn't actually call the car's API directly since it gets all its data from the mongodb database. Not sure that a -z option would turn on/off in visualize.
  45. hans

    TeslaMS tools for telemetry data visualization

    You were too fast. Get 1.1.3
  46. hans

    TeslaMS tools for telemetry data visualization

    Version 1.1.3 published to npm. Fixes - streaming.js no longer writes "null" data to mongodb when requests for auxiliary REST data from Tesla fail or timeout - visualize.js displays version number of Teslams - visualize.js displays most current Display Setting and Firmware Version if...
  47. hans

    TeslaMS tools for telemetry data visualization

    It displays this way if the REST request for the data fail at startup. Usually if you quit and try again it works. I can have the code check for failed requests and try again. Really wish Tesla's APIs were more reliable.
  48. hans

    Any update on the now quiet SDK rumors

    Not to mention that it means Tesla is behind Ford, BMW, and GM, all on whom have third party SDK programs for their cars.
  49. hans

    TeslaMS tools for telemetry data visualization

    The strange data in the 'id' field is just a workaround for the fact that Tesla made the new IDs larger than JavaScript can parse natively as JSON so I had to use a special encoding called bigInt. It's still valid javascript, just not as human readable. If you want the easy to read version see...
  50. hans

    TeslaMS tools for telemetry data visualization

    -z, --zzz option on streaming.js It will pause data collection when the car is parked and not charging in order to let the vehicle fall asleep and save power. It then monitors the car and doesn't try and collect new data until the car wakes again on it's own. Unfortunately if you park the car...