update
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user