-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevice3.html
More file actions
242 lines (234 loc) · 10.9 KB
/
Copy pathdevice3.html
File metadata and controls
242 lines (234 loc) · 10.9 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>IoT Device 003 - Monitoring</title>
<link rel="stylesheet" href="styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
<div class="device-container">
<!-- Header -->
<header class="device-header">
<div class="header-content">
<div class="device-header-info">
<div class="device-icon-large">
<i class="fas fa-mobile-alt"></i>
</div>
<div class="device-details">
<h1>IoT Device 003</h1>
<p class="device-subtitle">Mobile Sensor Unit</p>
<div class="device-status-badge offline">
<i class="fas fa-circle"></i>
<span>Offline</span>
</div>
</div>
</div>
<div class="header-actions">
<button class="btn btn-secondary">
<i class="fas fa-cog"></i>
Settings
</button>
<button class="btn btn-primary">
<i class="fas fa-download"></i>
Export Data
</button>
<a href="index.html" class="btn btn-secondary">
<i class="fas fa-arrow-left"></i>
Back to Dashboard
</a>
</div>
</div>
</header>
<!-- Device Overview -->
<div class="device-overview">
<div class="overview-grid">
<div class="info-card">
<h3>Device Information</h3>
<div class="info-list">
<div class="info-item">
<span class="info-label">Device ID:</span>
<span class="info-value">IOT-2025-003</span>
</div>
<div class="info-item">
<span class="info-label">Location:</span>
<span class="info-value">Warehouse B2</span>
</div>
<div class="info-item">
<span class="info-label">IP Address:</span>
<span class="info-value">192.168.1.102</span>
</div>
<div class="info-item">
<span class="info-label">Last Update:</span>
<span class="info-value" id="last-update">1 hour ago</span>
</div>
<div class="info-item">
<span class="info-label">Uptime:</span>
<span class="info-value">3d 6h 15m</span>
</div>
</div>
</div>
<div class="metrics-summary">
<h3>Current Status</h3>
<div class="big-metrics">
<div class="big-metric">
<div class="metric-icon current">
<i class="fas fa-bolt"></i>
</div>
<div class="metric-content">
<span class="metric-value" id="device-current">--</span>
<span class="metric-label">Current Draw</span>
</div>
</div>
<div class="big-metric">
<div class="metric-icon voltage">
<i class="fas fa-flash"></i>
</div>
<div class="metric-content">
<span class="metric-value" id="device-voltage">--</span>
<span class="metric-label">Input Voltage</span>
</div>
</div>
<div class="big-metric">
<div class="metric-icon temperature">
<i class="fas fa-thermometer-half"></i>
</div>
<div class="metric-content">
<span class="metric-value" id="device-temp">--</span>
<span class="metric-label">Temperature</span>
</div>
</div>
<div class="big-metric">
<div class="metric-icon power">
<i class="fas fa-power-off"></i>
</div>
<div class="metric-content">
<span class="metric-value" id="device-power">--</span>
<span class="metric-label">Power Usage</span>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Connection Status Alert -->
<div class="connection-alert">
<div class="alert-content">
<i class="fas fa-exclamation-triangle"></i>
<div class="alert-text">
<h4>Device Offline</h4>
<p>This device is currently not responding. Last seen 1 hour ago.</p>
</div>
<button class="btn btn-primary">Attempt Reconnection</button>
</div>
</div>
<!-- Historical Data (Last 24h before disconnect) -->
<div class="device-charts">
<div class="chart-section">
<div class="chart-header">
<h3>Historical Data - Current & Voltage (Before Disconnect)</h3>
<div class="chart-controls">
<button class="time-range active" data-range="1h">1H</button>
<button class="time-range" data-range="6h">6H</button>
<button class="time-range" data-range="24h">24H</button>
</div>
</div>
<div class="chart-container-large">
<canvas id="device-chart"></canvas>
</div>
</div>
<div class="chart-section">
<div class="chart-header">
<h3>Historical Data - Power Consumption & Temperature</h3>
<div class="chart-controls">
<button class="time-range active" data-range="1h">1H</button>
<button class="time-range" data-range="6h">6H</button>
<button class="time-range" data-range="24h">24H</button>
</div>
</div>
<div class="chart-container-large">
<canvas id="device-secondary-chart"></canvas>
</div>
</div>
</div>
<!-- Device Logs -->
<div class="device-logs">
<div class="logs-header">
<h3>System Logs</h3>
<div class="log-controls">
<button class="btn btn-secondary btn-small">
<i class="fas fa-sync"></i>
Refresh
</button>
<button class="btn btn-secondary btn-small">
<i class="fas fa-download"></i>
Export
</button>
</div>
</div>
<div class="logs-container">
<div class="log-entry log-error">
<span class="log-time">14:32:15</span>
<span class="log-level error">ERROR</span>
<span class="log-message">Connection lost to monitoring server</span>
</div>
<div class="log-entry log-warning">
<span class="log-time">14:28:42</span>
<span class="log-level warning">WARN</span>
<span class="log-message">Low battery warning: 15% remaining</span>
</div>
<div class="log-entry log-warning">
<span class="log-time">14:25:18</span>
<span class="log-level warning">WARN</span>
<span class="log-message">Signal strength weak: -85dBm</span>
</div>
<div class="log-entry log-info">
<span class="log-time">14:20:33</span>
<span class="log-level info">INFO</span>
<span class="log-message">Sensor data transmitted successfully</span>
</div>
<div class="log-entry log-info">
<span class="log-time">14:15:07</span>
<span class="log-level info">INFO</span>
<span class="log-message">Environmental monitoring active</span>
</div>
</div>
</div>
<!-- Troubleshooting Section -->
<div class="troubleshooting-section">
<div class="section-header">
<h3>Troubleshooting</h3>
</div>
<div class="troubleshooting-grid">
<div class="troubleshoot-card">
<div class="troubleshoot-icon">
<i class="fas fa-battery-half"></i>
</div>
<h4>Check Battery</h4>
<p>Ensure the device battery is charged and properly connected.</p>
<button class="btn btn-secondary btn-small">View Battery Status</button>
</div>
<div class="troubleshoot-card">
<div class="troubleshoot-icon">
<i class="fas fa-wifi"></i>
</div>
<h4>Network Connection</h4>
<p>Verify network connectivity and signal strength in the area.</p>
<button class="btn btn-secondary btn-small">Test Connection</button>
</div>
<div class="troubleshoot-card">
<div class="troubleshoot-icon">
<i class="fas fa-thermometer-half"></i>
</div>
<h4>Environmental Factors</h4>
<p>Check if extreme temperatures or interference are affecting the device.</p>
<button class="btn btn-secondary btn-small">View Environment</button>
</div>
</div>
</div>
</div>
<script src="device.js"></script>
</body>
</html>