Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Streaming #17

Open
kendo55 opened this issue Feb 26, 2019 · 5 comments
Open

Streaming #17

kendo55 opened this issue Feb 26, 2019 · 5 comments

Comments

@kendo55
Copy link

kendo55 commented Feb 26, 2019

does anyone have experience with the streaming of vehicle data.
Is there an example in Python?

@ejsuncy
Copy link

ejsuncy commented Feb 26, 2019

I don’t, but I’m curious what your use case would be...

@racket99
Copy link

I created SigTwo and I am adding to it everyday. Combines telemetry data and video imagery into one platform.

I have a guest account that I can give you access to. Just ping me at [email protected].

Rgds

@kendo55
Copy link
Author

kendo55 commented Feb 27, 2019

I don’t, but I’m curious what your use case would be...

to have a stream of the telemetry data, like
string url = "https://streaming.vn.teslamotors.com/stream/" + Tesla_vehicle_id + "/?values=speed,odometer,soc,elevation,est_heading,est_lat,est_lng,power,shift_state,est_range";

@kendo55
Copy link
Author

kendo55 commented Feb 27, 2019

someone who knows a link with the documentation of https://streaming.vn.teslamotors.com/stream/"

@kendo55
Copy link
Author

kendo55 commented Feb 27, 2019

i have the solution:

r = requests.get("https://streaming.vn.teslamotors.com/stream/" + str(Tesla_vehicle_id) + "/?values=speed,odometer,soc,elevation,est_heading,est_lat,est_lng,power,shift_state,est_range",
data={}, auth=(TeslaName, Tesla_Streamingtoken), stream=True)

for line in r.iter_lines():
if line: # keep-alive zeilen ausfiltern

    print line

print "Stream end"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants