Make the MySQL table name configurable instead of hardcoding TempHumid.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -53,7 +53,8 @@ def sensor_read(cfg, dev_type, dhtpin):
|
||||
if common.reading_is_plausible(t, h, oldtemp, oldhumid, limits):
|
||||
updateMysql.main(
|
||||
t, h,
|
||||
cfg['host'], cfg['db'], cfg['username'], cfg['password'],
|
||||
cfg['host'], cfg['db'], cfg['table'],
|
||||
cfg['username'], cfg['password'],
|
||||
logging, cfg['sql_retries'], cfg['sql_timeout'],
|
||||
)
|
||||
oldtemp = t
|
||||
|
||||
Reference in New Issue
Block a user