blob: 237f2f75fd2a7bebe6b378bbde90caa888c95e94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
|
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dashboard</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="dashboard-container">
<aside class="sidebar">
<header class="sidebar-header">
<h2>Dashboard</h2>
<span>Iot Monitoration</span>
</header>
<nav class="sidebar-nav">
<h3><i class="fas fa-satellite-dish"></i> Dados Atuais</h3>
<div class="data-widget">
<div class="widget-icon icon-temp">
<i class="fas fa-thermometer-half"></i>
</div>
<div class="widget-info">
<span id="currentTemp">--.- °C</span>
<p>Temperatura</p>
</div>
</div>
<div class="data-widget">
<div class="widget-icon icon-humidity">
<i class="fas fa-tint"></i>
</div>
<div class="widget-info">
<span id="currentHumidity">-- %</span>
<p>Umidade</p>
</div>
</div>
<div class="data-widget">
<div class="widget-icon icon-wind">
<i class="fas fa-wind"></i>
</div>
<div class="widget-info">
<span id="currentWind">--.- km/h</span>
<p>Vento</p>
</div>
</div>
<div class="data-widget">
<div class="widget-icon icon-pressure">
<i class="fas fa-tachometer-alt"></i>
</div>
<div class="widget-info">
<span id="currentPressure">---- hPa</span>
<p>Pressão</p>
</div>
</div>
</nav>
<footer class="sidebar-footer">
<button id="toggleUpdatesBtn">
<i class="fas fa-pause"></i> <span>Pausar</span>
</button>
<p>Status: <span id="statusText">Monitorando...</span></p>
</footer>
</aside>
<main class="main-content">
<h1>Painel de Monitoramento</h1>
<section class="charts-grid">
<div class="chart-card large">
<h3>Temperatura & Pressão (Últimos 30s)</h3>
<canvas id="graficoTempPressao"></canvas>
</div>
<div class="chart-card">
<h3>Umidade</h3>
<div class="gauge-container">
<canvas id="graficoUmidade"></canvas>
<div id="umidadeText" class="gauge-text">--%</div>
</div>
</div>
<div class="chart-card">
<h3>Índice UV</h3>
<div class="gauge-container">
<canvas id="graficoUv"></canvas>
<div id="uvText" class="gauge-text">--</div>
</div>
</div>
<div class="chart-card">
<h3>Velocidade do Vento</h3>
<canvas id="graficoVento"></canvas>
</div>
<div class="chart-card">
<h3>Visibilidade</h3>
<canvas id="graficoVisibilidade"></canvas>
</div>
</section>
</main>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-date-fns"></script>
<script src="script.js"></script>
</body>
</html>
|