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

Add timeouts for Tesla commands and eGauge reads. #9

Merged
merged 20 commits into from
Apr 12, 2024
Merged

Conversation

sftman18
Copy link
Owner

Added timeouts for Tesla commands and eGauge reads. This seems to solve the hangs I was experiencing.
Note: requirements.txt updated, please re-run it to pickup new stopit dependency.
example_config.toml updated, just to change defaults. I think 120sec while not plugged in, and 2sec when plugged in and the sun is out; is enough.

…ork around the problem of None always being returned
Extend verify charge loop to 6 checking loops
…ler instead.

Hopefully 'Timeout' state will propogate better there
Extended timeouts to limit regular occurrence
…rging has already hit the limit and stopped)

Break large charge rate increases into two steps, to increase rate verification success.
…he proper level without reducing non-verified steps

Cleaned up the new Timout checks to always check for "True"
Changed back to 6 loops of 0.5 sec for faster response
Changed default POLLING to be a bit slower 2s active 120s waiting.
Eliminated -debug flag for tesla command as it hasn't been helpful
@sftman18 sftman18 merged commit 6c08760 into main Apr 12, 2024
@sftman18 sftman18 deleted the debug_freezes branch April 12, 2024 20:50
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

Successfully merging this pull request may close these issues.

1 participant