Commit Graph

36 Commits

Author SHA1 Message Date
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
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
799fcb6fb9 feat: add DEVICE_SPACE_COMMUNITY route and controller for device retrieval by space or community 2025-05-13 03:06:43 +03:00
7ec4171e1a feat: add occupancy module with controller, service, and related DTOs for heat map data retrieval 2025-05-12 02:15:57 +03:00
f3fd6646a1 feat: add SqlLoaderService to multiple modules for improved SQL data handling 2025-04-24 02:31:35 +03:00
7f43ef5de5 feat: integrate PowerClamp service and repositories across multiple modules 2025-04-24 02:14:58 +03:00
427a57501f Moved get visitor password and get device for visitor password 2025-02-16 23:26:20 +04:00
8161e8469b Add new automation actions and repository 2025-01-28 03:43:11 -06:00
059d248d44 Add API operation descriptions to DoorLockController 2024-11-23 22:50:42 -06:00
eb916b79b4 finished 4scene configration endpoints 2024-11-16 23:05:06 -06:00
07ac955eb0 added timeseries 2024-10-20 16:46:44 +03:00
11759d8112 resolve conflicts 2024-10-08 10:59:31 +03:00
972e1423f5 Merge pull request #110 from SyncrowIOT/exception-handling-in-controllers
Exception handling in controllers
2024-10-08 10:57:26 +03:00
6bfb64370a finished soft delete devices 2024-10-07 23:11:16 -05:00
9a868c5757 added enums to replace constants 2024-10-06 15:44:49 +03:00
500ca23fba added exception filter and removed controller error handling 2024-10-06 11:04:25 +03:00
c42d82648b Fix password status check in DoorLockService 2024-09-02 14:20:32 +03:00
77b374f0b2 Refactor DoorLockService to Correctly Map Password Creation Time and Name 2024-09-02 12:02:53 +03:00
2a596d3b33 Add Comprehensive Door Lock Module Enhancements 2024-08-27 22:09:33 +03:00
adb9019749 add expired status for vistor pass 2024-08-21 22:36:46 +03:00
94d58993b3 Merge pull request #79 from SyncrowIOT/create-vistor-password
Create vistor password
2024-08-13 01:44:25 +03:00
3aff8d59d2 Refactor DoorLockService to standardize password property names 2024-08-13 01:41:01 +03:00
4d7ea8c9bd added password return data 2024-08-12 15:37:13 +03:00
d40af71e78 Add Default Door Lock Password and Open Door Lock Endpoint 2024-08-12 11:46:24 +03:00
0b7a87b6bd added devices and passwords of devices 2024-08-11 23:02:37 +03:00
5e957e3395 Refactor door lock controller and service 2024-07-20 18:51:51 +03:00
63a8c5664e Fix password filtering in DoorLockService 2024-07-01 10:17:35 +03:00
0702d3892f Refactor password filtering and mapping logic 2024-06-29 17:20:55 +03:00
8bc0961869 Add optional scheduleList property to AddDoorLockOnlineDto class 2024-06-29 17:20:45 +03:00
53e2be63db Convert binary string to integer in DoorLockService 2024-06-28 20:54:35 +03:00
05e51c79eb Remove unnecessary comment and improve code readability in DoorLockService. 2024-06-28 20:54:01 +03:00
a0a5b992db Add DoorLockModule with controller, service, and dependencies 2024-06-28 20:47:50 +03:00
b9a15134a2 feat: Add DoorLockService and PasswordEncryptionService 2024-06-28 20:47:41 +03:00
46debaaafc Add door lock interfaces 2024-06-28 20:47:31 +03:00
062eb7660b Add door lock DTOs for adding offline and online temporary passwords 2024-06-28 20:47:20 +03:00
09074f83e2 Add Door Lock Controller with temporary password functionality 2024-06-28 20:47:08 +03:00