-
Notifications
You must be signed in to change notification settings - Fork 750
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
Add endpoints parameter #3373
Add endpoints parameter #3373
Conversation
This seems a little hacky to me, but it does work around the problem. |
…the regular vehicle_data result
I tested on my deploy and it fix also my model 3 recently updated to 2023.38.4 |
This solved data loss after installation of 2023.38.4 on my Model Y. |
Thanks for the patch.. It worked - MYLR 23.38.4 |
Hi, sorry being numb but how do I deploy this patch? I do have a Synology NAS with docker container. Thank you! |
Change has been pushed to docker here: https://hub.docker.com/repository/docker/jsightler/teslamate/general Also updated to (hopefully) be backward compatible and less crashy. :) |
@jsight query param with get instead of encoding the params yourself See example usage here https://github.com/elixir-tesla/tesla?tab=readme-ov-file#direct-usage |
@adriankumpf |
@swiffer Good idea, thank you! |
would be great if someone could announce it here when the update is available in the Teslamate:latest version. thanks so much ! |
If I would like to use this update / patch and install it on my docker installation on my synology nas, can I just install it in docker by selecting my current teslamate/latest container and then selecting "import" "add from URL" ? |
@jsight |
@blexter You don't indicate if you are seeing that error in the browser or the logs. This code change is tiny and should have zero impact on the front-end of Teslamate where you might see errors in the browser. If it's in the logs please post the complete error messages so that they can be reviewed. |
Checked the logs, not 100% sure what's sensitive data, so I might removed "to much", tell me if so and I can somehow send missing info. 2023-11-01 09:02:12.741 [error] Task #PID<0.3967.0> started from TeslaMate.Vehicles terminating Crash dump is being written to: erl_crash.dump...done |
@adriankumpf Given, that without that PR teslamate is broken, we need this PR incorporated. If you don't have the time, your opinion in #3384 would be very much appreciated. |
How can I apply the change locally to my teslamate instance until the this PR is merged? |
Well, you have several options. The simple one is to trust the patched docker image that the same author of this PR uploaded to Docker Hub. Another option is to build yourself a patched image, which seems to be what you're trying. NOTE: I haven't tried any of this myself, my car is still on a previous version. Be very careful, do a full backup before you change anything. If you have access to the command line and It should be something like this. You can do this on the same system you're running Teslamate. Make sure you don't have already a
If all commands are successful, then you can just point your
Another option is to clone the official repository, then apply manually the change, then build the image in the same way. It should be the same. |
I guess once @adriankumpf gets his car updated to the 2023.38.x this PR will get merged. |
Is |
Correct, it's just a tag, any string will do. As you point out, you just need to make sure it's the same on the docker build command and the There's no restriction on where you build or use the image, it's all a reference in the docker local repository. You can see that with By the way, I've been told that grafana needs to be updated as well, as the current If someone tries it, please share the outcome here. |
@tpd-opitz , remove the |
Big question is: Is this change permanent? Or is Tesla going to change in the future and break this yet again? |
Is there some way to up the priority on this? TeslaMate is completely broken with the the new API from Tesla. |
any timeline to merge this? |
@brianmay It is in the official API documentation. They could change it further, but I'd guess they will document any further changes as well. |
There is official API documentation? Where is this? Everything I have seen clearly says unofficial only. |
@brianmay Official API docs: https://developer.tesla.com/docs/fleet-api#vehicle_data It is listed as the "fleet API", but the ones that I've seen are the same ones that we are used to. The notes call out the specific changes in 2023.38+ as well. |
Fact is that the current latest version 1.27.3 is broken and the fix discussed here is working well (and is documented change for the fleet API). Not having this or #3398 merged means broken Teslamate. There are more and more forks popping up In addition there are efforts of coordinating a fork
It would be really great to avoid that, broden the admin and combine forces in making teslamate a better product - or at least try to coordinate forking. |
I have had to use my fork for some time, simply because I have not had any feedback on my pr #3087. This in turn reduces motivation to work on other issues that have been nagging me. I can understand though that @adriankumpf may feel that he is unable to keep with with this project anymore. I have been in this situation myself on a number of occasions. I think we are all very grateful for the time and effort that @adriankumpf and others have spent on this project to date. Handing over the project is a big step too, can you really trust the new maintainer? I have heard some horror stories where this can go wrong. In at least one case the new maintainer inserted malicious code into a project he had just taken over. And plenty of times where I accidentally end up being the new maintainer, and I am already over committed. The problem with creating a fork, is that 50 forks is not going to help. We need one fork that the entire community can get behind and support. Maybe one, like the above that isn't directly tied to one person, so that the responsible people can change with time too. If we can agree on one fork to be the new official repo, we can then ask github to mark it as such. Then the annotations will change to make this project an fork of the new official fork, rather then vice verse. |
I can confirm this API works on 2023.27.7 as well. The vehicle_data_combo likely isn't needed since it appears to be an encoded blob and doesn't add anything new to the remainder of the request. |
With #3398 merged, this is is no longer needed correct? |
@Dulanic - yes, can be closed |
I dont disagree, there needs to be a head person responsible for all of it. Who that can be? I'm not sure at this point. But I think we are open to talking about it. There is a open discussion currently. |
A recent API change means the vehicle state no longer retrieves the location data by default. This change fixes this. See this change in TeslaMate - teslamate-org/teslamate#3373
No description provided.