teslamotors / fleet-telemetry

Apache License 2.0
625 stars 66 forks source link

Fleet Telemetry vs. Fleet API #137

Closed davidlinn closed 2 months ago

davidlinn commented 3 months ago

I'm building a third-party service that needs to pull the location and heading of a user's vehicle once or twice daily. I'm currently calling wake_up and then waiting until the vehicle_data API is available. I've found that waking up is not always reliable and I'm worried that it could be contributing to battery drain. Would the fleet telemetry API be better for my use case?

Also, I notice that TeslaPy has a stream() function, has anyone tried using that?

patrickdemers6 commented 3 months ago

Please try not to wake vehicles unnecessarily as it will drain the vehicle's battery. fleet-telemetry allows the vehicle to stream data directly to your server. This will make it so you don't have to worry about vehicle connectivity. Whenever data is available, you'll receive it.