You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.db.query("SELECT DATE_FORMAT( timestamp, \"%%Y-%%m-%%d %%H:%%i:00\"), value FROM mppt_readings WHERE device_id = \"%s\" AND timestamp > \"%s\" AND timestamp <= NOW();"% (node, DATE_LIMIT))
423
+
raw=self.db.store_result().fetch_row(0)
424
+
returnraw
425
+
426
+
defget_soc_readings(self, node):
427
+
ifself.dbisNone:
428
+
raiseFeshieDbError()
429
+
self.db.query("SELECT DATE_FORMAT( timestamp, \"%%Y-%%m-%%d %%H:%%i:00\"), value FROM soc_readings WHERE device_id = \"%s\" AND timestamp > \"%s\" AND timestamp <= NOW();"% (node, DATE_LIMIT))
430
+
raw=self.db.store_result().fetch_row(0)
431
+
returnraw
432
+
433
+
defget_solor_current_readings(self, node):
434
+
ifself.dbisNone:
435
+
raiseFeshieDbError()
436
+
self.db.query("SELECT DATE_FORMAT( timestamp, \"%%Y-%%m-%%d %%H:%%i:00\"), value FROM solar_current_readings WHERE device_id = \"%s\" AND timestamp > \"%s\" AND timestamp <= NOW();"% (node, DATE_LIMIT))
0 commit comments