diff --git a/html/database.html b/html/database.html
index 9ea37e5..5ff7c9d 100755
--- a/html/database.html
+++ b/html/database.html
@@ -72,6 +72,7 @@
+
@@ -96,6 +97,7 @@
+
@@ -279,6 +281,17 @@ function get_data_sqlite(table, limit, download , startDate = "", endDate = "")
Timestamp |
speed (km/h) |
Direction (V) |
+ `;
+ }else if (table === "data_MPPT") {
+ tableHTML += `
+ Timestamp |
+ Battery Voltage |
+ Battery Current |
+ solar_voltage |
+ solar_power |
+ charger_status |
+
+
`;
}
@@ -336,6 +349,16 @@ function get_data_sqlite(table, limit, download , startDate = "", endDate = "")
${columns[1]} |
${columns[2]} |
`;
+ }else if (table === "data_MPPT") {
+ tableHTML += `
+ ${columns[0]} |
+ ${columns[1]} |
+ ${columns[2]} |
+ ${columns[3]} |
+ ${columns[4]} |
+ ${columns[5]} |
+
+ `;
}
tableHTML += "";
diff --git a/sqlite/flush_old_data.py b/sqlite/flush_old_data.py
index cd7ba3f..04ca05d 100755
--- a/sqlite/flush_old_data.py
+++ b/sqlite/flush_old_data.py
@@ -16,6 +16,7 @@ data_NPM_5channels
data_BME280
data_envea
timestamp_table
+data_MPPT
'''