2024-09-17 06:50:34 +00:00
|
|
|
<div class="container">
|
2024-09-24 06:15:26 +00:00
|
|
|
<div>
|
|
|
|
|
<h1 class="title">Hello there</h1>
|
|
|
|
|
<h3 class="description">Welcome back to your management system</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
2024-10-11 04:02:04 +00:00
|
|
|
<h2 class="update">Latest Update: {{latestUpdate}}</h2>
|
2024-09-24 06:15:26 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<button [ngClass]="{'active-button': selectedButton === 'dht'}" (click)="selectSensor('dht')">BHT</button>
|
2024-10-08 06:17:01 +00:00
|
|
|
<button [ngClass]="{'active-button': selectedButton === 'npk1'}" (click)="selectSensor('npk1')">NPK 1</button>
|
|
|
|
|
<button [ngClass]="{'active-button': selectedButton === 'npk2'}" (click)="selectSensor('npk2')">NPK 2</button>
|
2024-10-23 01:29:27 +00:00
|
|
|
<button [ngClass]="{'active-button': selectedButton === 'relay'}" (click)="selectSensor('relay')">Relay</button>
|
2024-09-24 06:15:26 +00:00
|
|
|
</div>
|
|
|
|
|
|
2024-10-08 06:17:01 +00:00
|
|
|
<div *ngIf="isLoaded " class="loading">
|
|
|
|
|
Loading...
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div *ngIf="!isLoaded && selectedButton === 'dht'" class="card-container">
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
|
|
|
|
<h3>{{sensorData.dht.lightIntensity}} Lux</h3>
|
|
|
|
|
<h6>Light Intensity</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
|
|
|
|
<h3>{{sensorData.dht.temperature}} °C</h3>
|
|
|
|
|
<h6>Temperature</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{sensorData.dht.humidity}} %RH</h3>
|
2024-10-08 06:17:01 +00:00
|
|
|
<h6>Humidity</h6>
|
|
|
|
|
</div>
|
2024-09-24 06:15:26 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-10-08 06:17:01 +00:00
|
|
|
<div *ngIf="!isLoaded && selectedButton === 'npk1'" class="card-container">
|
2024-09-24 06:15:26 +00:00
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-08 06:17:01 +00:00
|
|
|
<h3>{{ sensorData.npk1.temperature }} °C</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Temperature</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{sensorData.npk1.moisture}} %RH</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Moisture</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{sensorData.npk1.conductivity}} μS/cm</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Conductivity</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-08 06:17:01 +00:00
|
|
|
<h3>{{sensorData.npk1.ph}}</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>pH</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{sensorData.npk1.nitrogen}} PPM</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Nitrogen</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{sensorData.npk1.phosphorus}} PPM</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Phosphorus</h6>
|
2024-09-17 06:50:34 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-09-24 06:15:26 +00:00
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{sensorData.npk1.potassium}} PPM</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Potassium</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-09-17 06:50:34 +00:00
|
|
|
|
2024-10-08 06:17:01 +00:00
|
|
|
<div *ngIf="!isLoaded && selectedButton === 'npk2'" class="card-container">
|
2024-09-24 06:15:26 +00:00
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-08 06:17:01 +00:00
|
|
|
<h3>{{ sensorData.npk2.temperature }}°C</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Temperature</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{ sensorData.npk1.moisture }} %RH</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Moisture</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{ sensorData.npk1.conductivity }} μS/cm</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Conductivity</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-08 06:17:01 +00:00
|
|
|
<h3>{{ sensorData.npk1.ph }}</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>pH</h6>
|
|
|
|
|
</div>
|
2024-09-17 06:50:34 +00:00
|
|
|
</div>
|
2024-09-24 06:15:26 +00:00
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{ sensorData.npk1.nitrogen}} PPM</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Nitrogen</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{ sensorData.npk2.phosphorus}} PPM</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Phosphorus</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-parameter">
|
|
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3>{{ sensorData.npk2.potassium }} PPM</h3>
|
2024-09-24 06:15:26 +00:00
|
|
|
<h6>Potassium</h6>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-10-23 01:29:27 +00:00
|
|
|
<div *ngIf="!isLoaded && selectedButton === 'relay'" class="card-container">
|
|
|
|
|
<div class="card-parameter" *ngFor="let relay of relayStatus;">
|
2024-10-08 06:17:01 +00:00
|
|
|
<div>
|
2024-10-23 01:29:27 +00:00
|
|
|
<h3 [ngClass]="relay.current_status ? 'status-on' : 'status-off'">
|
|
|
|
|
{{ relay.current_status ? 'ON' : 'OFF' }}
|
|
|
|
|
</h3>
|
|
|
|
|
<h6>Relay {{ relay.number }}</h6>
|
2024-10-08 06:17:01 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-10-23 01:29:27 +00:00
|
|
|
</div>
|
|
|
|
|
|
2024-10-08 06:17:01 +00:00
|
|
|
|
2024-09-24 06:15:26 +00:00
|
|
|
<div class="graph">
|
|
|
|
|
<div class="title-graph">Monitoring</div>
|
|
|
|
|
<div class="graph">
|
|
|
|
|
<app-graph></app-graph>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-09-17 06:50:34 +00:00
|
|
|
</div>
|