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

Temporary LINC meter fix (front-end) #342

Merged
merged 2 commits into from
Sep 24, 2024
Merged

Temporary LINC meter fix (front-end) #342

merged 2 commits into from
Sep 24, 2024

Conversation

s-egge
Copy link
Member

@s-egge s-egge commented Sep 24, 2024

The LINC meter with ID 105 (previously labeled MDS but is now the main LINC meter) was off by a factor of 10.

Database/Back-end Fix

I first tried fixing the data in the DB directing via this branch. Even though all of the data was correctly multiplied by 10 here and in the database from 1/1/2024 to now to test it, something was off with the math on the front-end, causing some stretches of data to look similar to before and some being correct, with huge jumps in between. I'm going to leave the issue open for now and look into this more at a later time.

Front-end Fix

This will catch the meter after the accumulation math and check if it's the main LINC meter (meter_group_id 199) and accumulated real, and multiply it all by 10. This should be removed after we work out the issues described above.

@s-egge
Copy link
Member Author

s-egge commented Sep 24, 2024

docker-compose needed to be changed to docker compose per this thread to prevent tests from failing.

@s-egge s-egge merged commit 12ec274 into master Sep 24, 2024
3 checks passed
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