f80d097ff8
refactor: optimize log insertion and clean up device cache handling in TuyaWebSocketService
2025-06-25 18:57:56 -06:00
04bd156df1
Merge branch 'dev' into add-check-log-to-trace-the-map-issue
2025-06-25 18:42:43 -06:00
731819aeaa
feat: enhance device status handling with caching and batch processing improvements
2025-06-25 18:37:46 -06:00
68d2d3b53d
fix: improve device retrieval logic in addDeviceStatusToFirebase method
2025-06-25 08:13:02 -06:00
c0a069b460
fix: enhance device status handling by integrating device cache for improved performance
2025-06-25 08:03:23 -06:00
324661e1ee
fix: add missing check for device UUID in batch processing logs
2025-06-25 05:30:15 -06:00
a83424f45b
fix: remove unnecessary validation for missing properties in device status logs
2025-06-25 05:29:28 -06:00
71f6ccb4db
fix: add validation for missing properties in device status logs
2025-06-25 05:20:26 -06:00
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
43ab0030f0
refactor: clean up unused services and optimize batch processing in DeviceStatusFirebaseService
2025-06-25 03:20:12 -06:00
d255e6811e
update procedures
2025-06-25 10:47:37 +03:00
4e6b6f6ac5
adjusted procedures
2025-06-24 13:04:21 +03:00
932a3efd1c
Sp 1780 be configure the curtain module device ( #424 )
...
* task: add Cur new device configuration
2025-06-24 12:18:46 +03:00
d1d4d529a8
Add methods to handle SOS events and device status updates in Firebase and our DB
2025-06-23 08:10:33 -06:00
cf19f08dca
turn on all the updates data points
2025-06-23 07:33:01 -06:00
ff370b2baa
Implement message queue for TuyaWebSocketService and batch processing
2025-06-23 07:31:58 -06:00
04f64407e1
turn off some update data points
2025-06-23 07:10:47 -06:00
c8d691b380
tern off data procedure
2025-06-23 07:02:23 -06:00
75d03366c2
Revert "SP-1778-be-fix-time-out-connections-in-the-db"
2025-06-23 06:58:57 -06:00
52cb69cc84
Merge pull request #426 from SyncrowIOT/SP-1778-be-fix-time-out-connections-in-the-db
...
SP-1778-be-fix-time-out-connections-in-the-db
2025-06-23 06:38:58 -06:00
a6053b3971
refactor: implement query runners for database operations in multiple services
2025-06-23 06:34:53 -06:00
60d2c8330b
fix: increase DB max pool size ( #425 )
2025-06-23 15:23:53 +03:00
aa9e90bf08
Test/prevent server block on rate limit ( #419 )
...
* increase DB max connection to 50
2025-06-19 14:34:23 +03:00
689a38ee0c
Revamp/space management ( #409 )
...
* task: add getCommunitiesV2
* task: update getOneSpace API to match revamp structure
* refactor: implement modifications to pace management APIs
* refactor: remove space link
2025-06-18 10:34:29 +03:00
a91d0f22a4
fix: send correct enable status to email sender function ( #407 )
2025-06-13 09:46:41 +03:00
f2ed04f206
feat: add SpaceDailyOccupancyDuration entity, DTO, and repository for occupancy tracking
2025-06-12 02:49:59 -06:00
8503ee728d
Refactor/space management ( #404 )
...
* refactor: reducing used queries on get communities (#385 )
* refactor: fix create space logic (#394 )
* Remove unique constraint on subspace and product in SubspaceProductAllocationEntity; update product relation to nullable in NewTagEntity
* refactor: fix create space logic
* device model updated to include the fixes and final columns
* updated space models to include suggested fixes, update final logic and column names
* task: removing old references of the old tag-product relation
* task: remove old use of tags
* task: remove old tag & tag model usage
* refactor: delete space
* task: remove unused functions
* fix lint rule
2025-06-11 13:15:21 +03:00
2cb77504ca
Add PollutantType enum and update AQI-related entities and services to use it
2025-06-11 00:28:00 -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
3a08f9f258
Merge branch 'dev' into aqi-test
2025-06-10 17:08:06 -06:00
97e14e70f7
Refactor DeviceStatusLogEntity: expand unique constraint to include code and value
2025-06-10 01:41:41 -06:00
0793441e06
Refactor DeviceStatusLogEntity: correct unique constraint name for event time and device ID
2025-06-10 01:24:33 -06:00
b6321c2530
Refactor DeviceStatusLogEntity: update unique constraint to include deviceId
2025-06-10 01:18:58 -06:00
c1065126aa
Revert "Refactor DeviceStatusLogEntity: update unique constraint and primary …"
2025-06-10 01:03:45 -06:00
7eb13088ac
Refactor DeviceStatusLogEntity: update unique constraint and primary key definition
2025-06-09 04:50:58 -06:00
7b97e50d2e
Merge pull request #391 from SyncrowIOT/DATA-space-model-aqi-update-logic
...
AQI space model updated with new hourly to daily logic for calculatio…
2025-06-04 17:40:39 -04:00
ee0261d102
Fix typos procedure select and update
2025-06-04 17:32:50 -04:00
0d6de2df43
Refactor AqiSpaceDailyPollutantStatsEntity: update unique constraint and rename event fields for clarity
2025-06-04 15:24:13 -06:00
80e89dd035
fix name of snapshot table
2025-06-04 17:20:25 -04:00
466863e71f
Procedures insert-all, update, and select for daily space air quality stats
2025-06-04 16:33:55 -04:00
30aafdede6
Merge pull request #390 from SyncrowIOT/DATA-device-model-aqi-update-logic
...
device model for aqi updated with hourly to daily logic getting max, …
2025-06-04 12:04:10 +03:00
ef2245eae1
Add AQI space daily pollutant stats module and related entities, DTOs, and repositories
2025-06-03 23:37:52 -06:00
3ad81864d1
updated space models to include suggested fixes, update final logic and column names
2025-06-03 21:05:34 -04:00
ab3efedc35
device model updated to include the fixes and final columns
2025-06-03 20:52:27 -04:00
4a984ae5dd
Merge pull request #395 from SyncrowIOT/SP-1678-be-implement-weather-apis-by-location
...
Add Weather module with controller, service, and DTO for fetching weather details
2025-06-03 03:05:01 -06:00
c39129f75b
Add Weather module with controller, service, and DTO for fetching weather details
2025-06-03 02:38:44 -06:00
35ce13a67f
fix: return proper error on login API ( #386 )
2025-06-03 09:47:24 +03:00
0fe6c80731
Add utility function to associate space UUID with devices in community and device services
2025-06-01 21:56:08 -06:00
191d0dfaf6
Remove unique constraint on subspace and product in SubspaceProductAllocationEntity; update product relation to nullable in NewTagEntity
2025-06-01 21:16:51 -06:00
5b0135ba80
AQI space model updated with new hourly to daily logic for calculations and categorization of aqi brackets
2025-06-01 16:09:17 -04:00