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

Time to soc #94

Merged
merged 2 commits into from
Feb 24, 2022
Merged

Time to soc #94

merged 2 commits into from
Feb 24, 2022

Conversation

CaptKrisp
Copy link
Contributor

battery.py
-Add variable time_to_soc_update to support updating TimeToSoC values every TIME_TO_SOC_LOOP_CYCLES
-Modified function get_timetosoc to receive pre-calculated crntPrctPerSec and produce user configured TimeToSoC format via TIME_TO_SOC_VALUE_TYPE and results of negative SoC times (when moving away from an SoC point) via user configured TIME_TO_SOC_INC_FROM

daly.py
-Change poll_interval from 2000 to 1000 to allow more frequent calls to refresh_data given smaller data set collection with the introduction of poll_step method
-Add variable poll_step to hold step number between calls to refresh_data
-Add support for refreshing only specific data sets during each refresh_data cycle
-Disabled logger call while reading cell voltages

dbushelper.py
-Add support for user configured battery cell data format via BATTERY_CELL_DATA_FORMAT
-Add support for user configured TimeToSoC points via TIME_TO_SOC_POINTS instead of fixed points
-Add support for updating TimeToSoC point values only every TIME_TO_SOC_LOOP_CYCLES instead of all publish_dbus cycles

utils.py
-Add user config variables to control TimeToSoC functions and battery cell data formats, along with info/examples of the purpose for the variables

User configurable options:
-TimeToSoC points
-TimeToSoC update frequency (loop cycles)
-TimeToSoC display of negative time when moving away from SoC points
-TimeToSoC display format of seconds or time string or both
-Battery Cell data format
Removed import of timedelta
@Louisvdw Louisvdw merged commit 3cfff2d into Louisvdw:TimeToSoc Feb 24, 2022
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.

2 participants