-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
110 lines (106 loc) · 3.92 KB
/
index.html
File metadata and controls
110 lines (106 loc) · 3.92 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ESP32-S3-Nano Environmental Monitor</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
.container {
max-width: 480px;
margin: 0 auto;
background-color: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header {
margin-bottom: 20px;
border-bottom: 1px solid #eee;
padding-bottom: 15px;
text-align: center;
}
h1 {
color: #2c3e50;
margin-bottom: 10px;
font-size: 24px; /* Smaller title */
}
.chart-container {
margin-bottom: 20px;
background: #fff;
border-radius: 5px;
border: 1px solid #ddd;
overflow: hidden; /* Prevents content from overflowing */
}
.chart-title {
margin: 0;
padding: 10px 15px;
background-color: #f7f7f7;
border-bottom: 1px solid #ddd;
color: #333;
font-size: 18px;
}
.chart-content {
display: flex;
justify-content: center;
padding: 0; /* Remove padding */
}
iframe {
border: none;
width: 450px;
height: 260px;
display: block; /* Removes extra space below iframe */
}
footer {
margin-top: 20px;
border-top: 1px solid #eee;
padding-top: 15px;
text-align: center;
font-size: 0.9em;
color: #7f8c8d;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>ESP32-S3-Nano Environmental Monitor Lancs UK</h1>
<p>Real-time environmental data from my ESP32-S3-Nano sensing platform </p>
<br>
<p>using DHT22 & GP2Y1010AU0F (dust PM2.5) sensor</p>
</header>
<div class="chart-container">
<h2 class="chart-title">Temperature (°C)</h2>
<div class="chart-wrapper">
<!-- Replace with your Temperature chart embed code -->
<iframe width="450" height="260" style="border: 1px solid #cccccc;" src="https://thingspeak.com/channels/2872140/charts/1?bgcolor=%23ffffff&color=%23d62020&dynamic=true&results=60×cale=10&title=Home+Temp+C&type=line"></iframe>
</div>
</div>
<div class="chart-container">
<h2 class="chart-title">Humidity (%)</h2>
<div class="chart-wrapper">
<!-- Replace with your Humidity chart embed code -->
<iframe width="450" height="260" style="border: 1px solid #cccccc;" src="https://thingspeak.com/channels/2872140/charts/2?bgcolor=%23ffffff&color=%23d62020&dynamic=true&results=60×cale=10&title=Home+Humidity+%25&type=line"></iframe>
</div>
</div>
<div class="chart-container">
<h2 class="chart-title">Dust Density (mg/m³)</h2>
<div class="chart-wrapper">
<!-- Replace with your Dust Density chart embed code -->
<iframe width="450" height="260" style="border: 1px solid #cccccc;" src="https://thingspeak.com/channels/2872140/charts/3?bgcolor=%23ffffff&color=%23d62020&dynamic=true&results=60×cale=10&title=DUST+PM2.5&type=line"></iframe>
</div>
</div>
<footer>
<p>Environmental Monitoring Project - Created with ESP32-S3-Nano, DHT22, and GP2Y1010AU0F sensors</p>
<p>Data updated every 30 seconds to ThingSpeak</p>
</footer>
</div>
</body>
</html>