diff --git a/src/app/_layout/footer/footer.component.html b/src/app/_layout/footer/footer.component.html index f48e964..2b8fac8 100644 --- a/src/app/_layout/footer/footer.component.html +++ b/src/app/_layout/footer/footer.component.html @@ -13,7 +13,7 @@ href="https://allbestsistem.com/" target="_blank" style="background-color: #ffffff !important;" - >Smart Building Management Systems (V@2024-07-16.01) + >Smart Building Management Systems (V@2024-07-17.02)

diff --git a/src/app/content/hemat-app/monitoring/detail/detail.component.css b/src/app/content/hemat-app/monitoring/detail/detail.component.css index d511aa8..b276f26 100644 --- a/src/app/content/hemat-app/monitoring/detail/detail.component.css +++ b/src/app/content/hemat-app/monitoring/detail/detail.component.css @@ -105,3 +105,72 @@ canvas { font-weight: 800; font-size: 24px; } + +.text-custom-label{ + color: #242222 !important; + font-family: "Open Sans", sans-serif !important; + font-size: 16px; + font-weight: 800; +} + +.custom-style-header{ + background-color: #DDE1E6 !important; + border-bottom: 3px solid #242222; +} + +/* day */ +.days-container { + display: flex; + justify-content: space-around; +} + +.day { + font-family: "Nunito Sans", sans-serif; + color: #242222; + padding: 2px; + border-radius: 5px; +} + +.current-day { + color: #37A647; +} + +.temperature-container { + text-align: center; + margin-top: 50px; + height: 100px; +} + +.temperature { + font-family: "Nunito Sans", sans-serif; + font-size: 36px; + font-weight: bold; + color: #242222; +} + +.date-time-container { + display: flex; + justify-content: space-between; + margin-top: 10px; +} + +.current-date, +.current-time { + font-family: "Nunito Sans", sans-serif; + font-size: 16px; + color: #242222; +} + +.custom-card-temp{ + height: 300px; +} + +/* echart */ +.custom-card-air { + background-color: #dde1e6 !important; +} + +.echart-container { + height: 200px; /* Tinggi awal untuk menentukan tinggi chart */ + width: 100%; /* Lebar maksimal */ +} diff --git a/src/app/content/hemat-app/monitoring/detail/detail.component.html b/src/app/content/hemat-app/monitoring/detail/detail.component.html index dc17fb2..af8aa4e 100644 --- a/src/app/content/hemat-app/monitoring/detail/detail.component.html +++ b/src/app/content/hemat-app/monitoring/detail/detail.component.html @@ -168,6 +168,75 @@ +
+
+
+
+

+ Temperature +

+
+
+
+
+ {{ day.name }} +
+
+
+ {{ roomTemperature }}°C +
+
+ Time :{{ currentTime }} + {{ currentDate }} +
+
+
+
+
+
+
+

+ Air Quality +

+
+
+
+
+
+
+ +
+
+
+

+ Humidity +

+
+
+
+
+ {{ day.name }} +
+
+
+ {{ roomHumidity }}% +
+
+ Time :{{ currentTime }} + {{ currentDate }} +
+
+
+
+
{ + console.log(res); + this.roomTemperature = res.result[0].value; + this.roomHumidity = res.result[1].value; + }); + } dataEnergyMonitoringSummary(buildingId) { this.energyMonitoringService .getDashboardSummary(buildingId) @@ -279,7 +415,7 @@ export class DetailComponent { // Populate Appointment data at every multiple of 7 let weekIndex = 0; console.log(this.barChartData[0].data); - + for (let i = 0; i < this.barChartData[0].data.length; i++) { if (i % 7 === 6 && weekIndex < weeklyKwh.length) { this.barChartData[2].data[i] = weeklyKwh[weekIndex++]; @@ -332,7 +468,7 @@ export class DetailComponent { return weeks; } - seeMore(paramsId){ + seeMore(paramsId) { this.router.navigate(["/monitoring/control-device-see-more/", paramsId]); } } diff --git a/src/app/content/hemat-app/service/device.service.ts b/src/app/content/hemat-app/service/device.service.ts index 5a3fb07..7dd42d7 100644 --- a/src/app/content/hemat-app/service/device.service.ts +++ b/src/app/content/hemat-app/service/device.service.ts @@ -88,4 +88,14 @@ export class DeviceService { }); return this.http.get(url, { headers }); } + + getDeviceStatus(id): Observable { + const endpoint = `/devices`; + const url = `${BASE_URL}${endpoint}/status?id=${id}`; + const headers = new HttpHeaders({ + 'Content-Type': 'application/json', + 'x-api-key': 'j2yaYvPSQcsEEmHh3NEobfiXyyXmmnHT' + }); + return this.http.get(url, { headers }); + } } diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index ae2d6d8..d2e4c6a 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -138,7 +138,7 @@

- (v@2024.07.16.01) + (v@2024.07.17.02)