ITISFoundation / osparc-issues

🐼 issue-only repo for the osparc project
3 stars 3 forks source link

Z43 Energy Monitoring #976

Open drniiken opened 1 year ago

drniiken commented 1 year ago

Z43 has an energy website (https://monitoring.z43.swiss) which outlines our energy related data generated by the heatpump, solar, etc.

This is reflected in the repo: https://git.speag.com/oSparc/z43-energy

The current state of the site is - for the moment - satisfactory. However, on the mid or longterm we should envision to refactor certain parts and make it more "readable" and maintainable.

This would include as follows (see below).

The task is not super urgent but our mindset should go in the direction of addressing it (and getting familiar with it) within the next 2-3 sprints. This is not restricted to the "web/oSPARC Subteam" (anybody can help) - but would be favored.

The goal is to eventually bring the code into a state to be robust and maintainable for the whole of Z43.

### Z43 Energy Monitoring
- [x] Enable running the code on a local machine (currently development is only possible on the production VM)
- [x] Improve code quality: typing, linting, pre-commit
- [x] Dockerize the microservices of the energy page
- [x] Fix CI testing (currently broken)
- [ ] Add further (unit) testing
- [x] Refactor code: Make functional units smaller, introduce clear data processing pipeline, descriptive variable names
- [ ] Investigate: VM sometimes runs at 100% CPU Load constantly
- [ ] Refactor "testing / staging" version of the energy page, push latest changes (datepicker etc.) to "main" version of energy page
- [ ] Introduce backups of data
drniiken commented 1 year ago

Dear Team, (cc: @mrnicegyu11 @pcrespov @mguidon ) as discussed with some of you on Friday, I'll significantly lower the priority of this case to a "after the release" state. In the meantime, I'll communicate this to Niels. I'll also put it down (priority) in our backlog. Thanks and best, Nik