-
Notifications
You must be signed in to change notification settings - Fork 762
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
feat: add LFP Battery setting for car settings #4007
feat: add LFP Battery setting for car settings #4007
Conversation
Add LFP battery toggle to settings page
Update car settings to store LFP battery setting
Formatting
Add migration scripts to create column in car settings
✅ Deploy Preview for teslamate ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Since we are just creating a toggle, does Tesla have any documentation we can link to for a user to check if their car is a LFP battery or not? |
Added test settings for LFP Battery
Update migrations script to proper name defmodule.
Updated test scripts
Fix get default settings test
@mark3-dev - really dumb question. But what updates do I need to do to the |
@cwanja Those numbers are the line numbers of where the gettext translations are used. You can update the pot files by following this https://docs.teslamate.org/docs/development#update-pot-files-extract-messages-for-translation |
Thanks @mark3-dev. Feel like I know the answer here, but will ask anyways. Is there any way execute this from the GUI in the branch? Might be crazy to say, but I have modified the code in GitHub UI. I do not have a local repo or anything. |
@cwanja I'm not sure if there is any other way to do it other than pulling down the files and running it. |
I pulled the PR where is to toggle located? My car isnt LFP but was plotting on Battery Health LFP so now theres no data when I click Battery Health. It's still not plotting on the battery health page. |
@07stuntar1 - as we've said - in terms of data there is no difference between LFP / non-LFP. The only difference that has been make back then was in terms of how the data is visualized. You seem to are operating on different databases. |
How can I fix it? The rest of the pages data is fine. It’s just the battery page |
Raising my hand here - I am at a loss for running the pots update. I tried through VS code and GitHub codespaces. Could not get Sorry about that. |
Welp. I have no clue how I did it. But I did 🍾 Can someone review and test? @JakobLichterfeld @swiffer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, lgtm
Successfully tested
|
Will take care of changing dashboards after merge! |
Sorry, due to merging #3993, may I ask you to update the pot again? And merge the settings_test? Sorry for the inconvenience. |
I try to solve it via a separate branch as I do not have write access to your repo. |
30c0cbb
into
teslamate-org:feat-lfp-setting
* Update index.html.heex Add LFP battery toggle to settings page * Update car_settings.ex Update car settings to store LFP battery setting * Update car_settings.ex Formatting * Create 20240627021414_add_lfp_battery_car_setting.exs Add migration scripts to create column in car settings * Update settings_test.exs Added test settings for LFP Battery * Update 20240627021414_add_lfp_battery_car_setting.exs Update migrations script to proper name defmodule. * Update settings_test.exs Updated test scripts * Update settings_test.exs Fix get default settings test * "Commit pots files"
Disclosure this is not complete in anyway. This adds the settings and updates the webpage. I created this PR based upon a413e8c from @adriankumpf and my work on #2727.
What is missing is:
Do your worst!
Edit: moving to "completed" from my original post:
Completed after original push
streaming api
setting was created.