#730-energy-view #751
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K!751
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "#730-energy-view"
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?
New folder frontend\src\features\energy has been made to hold everything related to energy.
Two new views added inside of this energy folder:

EnergyAllView uses endpoint /energy/total/all and outputs total energy in kW used by all sensors from current month.
EnergyView uses endpoint /energy/total/{esensorid} and outputs the latest energy in kW from that specific sensor (currently hardcoded to elec-sensor-001)
I noticed that when previewing EnergyView there is an error, but when selecting the card it works. See picture
Code looks good and changes to structure and endpoint names are also really good and are easier to understand
Frontend card components function correctly on linux with no visible problems or errors.
This is looks good and i think is ready to be merged