This commit is contained in:
Your Name
2025-03-13 11:39:40 +01:00
parent 14044a8856
commit 1037207df3
6 changed files with 272 additions and 14 deletions

View File

@@ -30,8 +30,6 @@ cursor.execute("""
VALUES (1, CURRENT_TIMESTAMP);
""")
# Create a table NPM
cursor.execute("""
CREATE TABLE IF NOT EXISTS data_NPM (
@@ -78,6 +76,26 @@ CREATE TABLE IF NOT EXISTS data_NPM_5channels (
)
""")
# Create a table WIND
cursor.execute("""
CREATE TABLE IF NOT EXISTS data_WIND (
timestamp TEXT,
wind_speed REAL,
wind_direction REAL
)
""")
# Create a table MPPT
cursor.execute("""
CREATE TABLE IF NOT EXISTS data_MPPT (
timestamp TEXT,
battery_voltage REAL,
battery_current REAL,
solar_voltage REAL,
solar_power REAL,
charger_status INTEGER
)
""")
# Commit and close the connection

View File

@@ -14,6 +14,7 @@ data_NPM_5channels
data_BME280
data_envea
timestamp_table
data_MPPT
'''