#730-energy-view #751

Merged
a24julot merged 6 commits from #730-energy-view into team_1_week_4 2026-05-06 06:21:55 +00:00
Collaborator

New folder frontend\src\features\energy has been made to hold everything related to energy.

Two new views added inside of this energy folder:
image

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)

image

New folder **frontend\src\features\energy** has been made to hold everything related to energy. Two new views added inside of this energy folder: ![image](/attachments/671461b6-d15a-4e19-831f-02c30c0604e6) 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) ![image](/attachments/78ef0c54-97f7-424d-add4-5ea3e4b537b6)
Shows total energy during this month from all sensors
total-all didn't work but total/all works
Outputs energy from specific sensor. hardcoded for the moment.
Before it added a new value into the card as a row at each fetch, making the card grow indefinetely.
Add descriptions for energyview and energyallview
Collaborator

I noticed that when previewing EnergyView there is an error, but when selecting the card it works. See picture

I noticed that when previewing EnergyView there is an error, but when selecting the card it works. See picture
Fix so preview of card has a default sensor of 001 so it shows output
Collaborator

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

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
a24julot merged commit 586d5271bb into team_1_week_4 2026-05-06 06:21:55 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K!751
No description provided.