v1.9.13: Capteur CO2 Senseair S88 - scaffolding
Table data_S88, flag config S88 + port configurable S88_port (default /dev/ttyAMA5), service/timer systemd 10s, carte sensors.html, endpoint launcher.php, toggle admin.html. read_co2() est un stub NotImplementedError en attente du datasheet. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -160,6 +160,14 @@ CREATE TABLE IF NOT EXISTS data_MHZ19 (
|
||||
)
|
||||
""")
|
||||
|
||||
# Create a table S88 (Senseair S88 CO2 sensor)
|
||||
cursor.execute("""
|
||||
CREATE TABLE IF NOT EXISTS data_S88 (
|
||||
timestamp TEXT,
|
||||
CO2 INTEGER
|
||||
)
|
||||
""")
|
||||
|
||||
# Commit and close the connection
|
||||
conn.commit()
|
||||
conn.close()
|
||||
|
||||
@@ -51,6 +51,8 @@ config_entries = [
|
||||
("MPPT", "0", "bool"),
|
||||
("NOISE", "0", "bool"),
|
||||
("MHZ19", "0", "bool"),
|
||||
("S88", "0", "bool"),
|
||||
("S88_port", "/dev/ttyAMA5", "str"),
|
||||
("modem_version", "XXX", "str"),
|
||||
("device_type", "nebuleair_pro", "str"),
|
||||
("language", "fr", "str"),
|
||||
|
||||
Reference in New Issue
Block a user