Skip to content

Conversation

@adityashibu
Copy link
Member

This pull request includes several changes to the backend and frontend to support fetching and displaying energy usage data. The most important changes include the addition of new JSON files for energy data, updates to backend API endpoints to fetch energy usage, and modifications to the frontend to display this data.

Backend changes:

  • backend/devices_json.py: Added BASE_DIR, selectedUserFile, usersDBFile, and selected_user_devices to manage file paths.
  • backend/energy_json.py: Introduced get_energy_data function to fetch energy usage data from JSON files based on the specified time range.
  • backend/fastAPI.py: Added new endpoints /energy_usage and /energy_usage/{time_range} to fetch daily and monthly energy usage data. [1] [2]

Frontend changes:

JSON data additions:

@adityashibu adityashibu merged commit 5d2466e into PowerHouse-Project:main Mar 9, 2025
7 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