Fixed all major bugs in the old #126-ElectricityData branch with the this new branch and can now generate mockup data of electricity from different sensors #447
No reviewers
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked-waiting-for-further-changes
bug
bug-only-on-server-for-mobile-not-webpage
Bug-Report-After-Merge
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
further-changes-needed
future-problem-not-fixint-this-period
help wanted
invalid
last-week-issue-to-fix
library
low-priority
needs input
needs review
not-implemented.
project documentation
question
research
reviewed
Script
security
SQL
style
Team 1
Team 2
team leaders
test-creation
testing
topLevel
unassigned
Under-review
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!447
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#126-ElectricityDataMockup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
made adjustments to the build and installation scripts to include all dependencies and build correctly
to test just run the rebuild script and then use the link
http://localhost/api/energy/all
to see the data
Fixed all major bugs in the #126-ElectricityData branch with the previous branch and can now generate mockup data of electricity from different sensorsto Fixed all major bugs in the old #126-ElectricityData branch with the this new branch and can now generate mockup data of electricity from different sensorsThe branch to be tested is "#126-ElectricityDataMockup" not any other version of a #126 branch. "#126-ElectricityData" is a old branch that had major bugs from git and alot of walk backs all relavent changes and modifications can be found in the branch that is to be tested
Branch is up to date with team_1_week_2 branch but some weird artifacts have appeared in the compose.yaml file for some reason, nothing mind bending just the same lines for parkingdbhandler being removed then added back. Most likely due to the formatter running on all scripts in the branch after building due to it being a new branch on a new repo clone so it should be a non issue
I’ve reviewed the issue and the submitted changes.
A large portion of the code appears to be directly copied from the tempSensor suite, with mostly superficial renaming. As it stands, it doesn’t meaningfully represent or model energy usage. For example, energySensorMockup/Program.cs still contains a comment referencing readTempSensorMockup, which suggests the implementation hasn’t been fully adapted.
The goal of #126, as described in the related issue #41, is to enable monitoring of electricity usage in university housing. The current mockup data does not meet that objective, and there’s no clear indication of how it could be used to approximate real energy consumption.
Another concern is the lack of documentation. There are no XML comments for methods or endpoints, and no explanation of how the data is generated, processed, or intended to be used. This makes the code difficult to follow, similar to the existing tempSensor suite it’s based on.
On a minor note, “kilowatt” is misspelled as “kilowat.”
Practical testing:
I performed a clean install from this branch and ran WindowsInstallation.bat and WindowsRebuild.bat on a Windows 11 (25H2) system. The build completed without issues; however:
Given these issues, I can’t recommend merging this pull request in its current state. It would benefit from further iteration, particularly focusing on implementing meaningful energy data, improving documentation, and resolving the runtime errors.
Comments were added and changed and small changes were made to make it more inline with its own structure. Similarites exists as tempmockup and elecmockup both simulate data taken from buildings and rooms using different sensors
The possible uses of energy data are extremely broad and specific based on user type. I have added a total cumulative energy usage that track for every sensor individually and all sensors combined, paths can be found in the energyService program.cs. As this data can be used to calculate costs. Other uses such as taking temperature, cooling, heating to calculate future energy use using prediction measures are extremely large tasks that require their own issues later down the line.
This i agree with. I added some explanatory comments of usage in energySensorMockup and energyService. I myself don't fully understand all elements of the reader as i have only had barely one week to work on this but it functions similarly to roombooking and other services. These structures are about to be completely changed soon with the new middle ware version this coming merge so they will have to be tackled as a seperate issue later
image
This seems to be a docker/vscode error as i had it in the broken branch before which lead me to making a new clone of the repo. Me and a24timsv tested on his windows machine before doing any changes to the code and it worked as intended. Everyone will have to make sure to run the installation then the build so they can get all dependencies correctly.
Very detailed and appropriate review, this will be merged into our team branch.