Commit Graph
34 Commits
Author SHA1 Message Date
faris Aljohari 9bebcb2f3e feat: implement scheduler for periodic data updates and optimize database procedures
- Added SchedulerModule and SchedulerService to handle hourly data updates for AQI, occupancy, and energy consumption.
- Refactored existing services to remove unused device repository dependencies and streamline procedure execution.
- Updated SQL procedures to use correct parameter indexing.
- Enhanced error handling and logging for scheduled tasks.
- Integrated new repositories for presence sensor and AQI pollutant stats across multiple modules.
- Added NestJS schedule package for task scheduling capabilities.
2025-06-25 03:20:25 -06:00
faris Aljohari c86be27576 Add AQI module and related services, controllers, and DTOs
- Introduced AqiModule with AqiService and AqiController for handling AQI data.
- Added DTOs for AQI requests: GetAqiDailyBySpaceDto and GetAqiPollutantBySpaceDto.
- Implemented AqiDataService for managing AQI sensor historical data.
- Updated existing modules to include AqiDataService where necessary.
- Defined new routes for AQI data retrieval in ControllerRoute.
2025-06-10 18:19:34 -06:00
faris Aljohari 799fcb6fb9 feat: add DEVICE_SPACE_COMMUNITY route and controller for device retrieval by space or community 2025-05-13 03:06:43 +03:00
faris Aljohari 7ec4171e1a feat: add occupancy module with controller, service, and related DTOs for heat map data retrieval 2025-05-12 02:15:57 +03:00
faris Aljohari f3fd6646a1 feat: add SqlLoaderService to multiple modules for improved SQL data handling 2025-04-24 02:31:35 +03:00
faris Aljohari 7f43ef5de5 feat: integrate PowerClamp service and repositories across multiple modules 2025-04-24 02:14:58 +03:00
faris Aljohari 2f12189eef feat: add device name field to DeviceEntity and update related DTOs and services 2025-04-22 01:53:03 +03:00
faris Aljohari 19d6669a84 Update permission mappings and role permissions 2025-01-22 06:47:12 -06:00
faris Aljohari d169999675 Replace JwtAuthGuard with PermissionsGuard and add specific permissions 2024-12-16 00:19:34 -06:00
faris Aljohari 19c7233836 Refactor GroupController to use static route constants and add API operation descriptions 2024-11-23 22:50:52 -06:00
faris Aljohari eb916b79b4 finished 4scene configration endpoints 2024-11-16 23:05:06 -06:00
hannathkadher 0d000e4b60 updated group module 2024-11-04 20:57:32 +04:00
hannathkadher b0ea7cdc25 removed guards 2024-10-30 22:47:03 +04:00
hannathkadher 1f0cedfd09 removed guard 2024-10-30 19:26:27 +04:00
hannathkadher adacc60a40 get devices 2024-10-30 19:07:26 +04:00
unknown 11759d8112 resolve conflicts 2024-10-08 10:59:31 +03:00
yousef-khriasat-uba 972e1423f5 Merge pull request #110 from SyncrowIOT/exception-handling-in-controllers
Exception handling in controllers
2024-10-08 10:57:26 +03:00
faris Aljohari f5dcdc0ed5 add filter to get groups api 2024-10-07 22:41:31 -05:00
unknown 9a868c5757 added enums to replace constants 2024-10-06 15:44:49 +03:00
unknown 500ca23fba added exception filter and removed controller error handling 2024-10-06 11:04:25 +03:00
faris Aljohari d6f846086c Add TUYA_EU_URL to Tuya configuration 2024-06-24 14:36:24 +03:00
faris Aljohari 4d1861d137 Refactor group and device modules 2024-06-02 21:12:37 +03:00
faris Aljohari 6415d78992 Remove USER role 2024-05-18 23:00:22 +03:00
faris Aljohari 4058449f4b Update guard usage in controllers 2024-05-07 00:33:04 +03:00
faris Aljohari 307761c915 Refactor controlDevice method for better readability 2024-04-28 09:37:11 +03:00
faris Aljohari 8c790b0d96 Refactor Device Module 2024-04-27 23:27:40 +03:00
faris Aljohari fc7907d204 Refactor group controller and service for better code organization 2024-04-22 10:05:54 +03:00
faris Aljohari 7abfe29746 Refactor group controller methods and add device product guard 2024-04-21 16:27:53 +03:00
faris Aljohari db7802776a add get group by id api 2024-03-12 15:03:06 +03:00
faris Aljohari 4cdba75367 finished delete group api 2024-03-12 14:11:23 +03:00
faris Aljohari 1f5789db1b finished rename group api 2024-03-12 13:49:41 +03:00
faris Aljohari db22ceba17 remove comments 2024-03-12 13:36:38 +03:00
faris Aljohari 70020171c5 finished control group api 2024-03-12 13:36:11 +03:00
faris Aljohari 1cf345d28d finished groups endpoint 2024-03-12 12:56:14 +03:00