Initial commit projet IoT Flask ESP32

This commit is contained in:
Safouane Bazzi
2026-03-23 17:04:58 +01:00
parent 17026018a9
commit 06597bd9d3
7 changed files with 397 additions and 112 deletions

View File

@@ -36,11 +36,10 @@ CREATE TABLE telemetry (
battery_alert VARCHAR(100)
);
INSERT INTO users (username, password, is_admin)
VALUES ('admin', 'admin123', TRUE);
CREATE INDEX idx_telemetry_created_at ON telemetry(created_at DESC);
INSERT INTO settings (key, value)
VALUES
('min_battery_voltage', '11'),
('max_battery_temperature', '60'),
('min_solar_power', '5');
('min_solar_power', '5');