plugins: rename "temperature_store" plugin to "data_store".
This is in preparation for additional storage functionality. Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
a578199dab
commit
b8fc6f5130
|
@ -26,7 +26,7 @@ MAX_LOG_ATTEMPTS = 10 * LOG_ATTEMPT_INTERVAL
|
|||
|
||||
CORE_PLUGINS = [
|
||||
'file_manager', 'klippy_apis', 'machine',
|
||||
'temperature_store', 'shell_command']
|
||||
'data_store', 'shell_command']
|
||||
|
||||
class Sentinel:
|
||||
pass
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# Heater sensor temperature storage
|
||||
# Klipper data logging and storage storage
|
||||
#
|
||||
# Copyright (C) 2020 Eric Callahan <arksine.code@gmail.com>
|
||||
#
|
||||
|
@ -10,7 +10,7 @@ from tornado.ioloop import IOLoop, PeriodicCallback
|
|||
TEMPERATURE_UPDATE_MS = 1000
|
||||
TEMPERATURE_STORE_SIZE = 20 * 60
|
||||
|
||||
class TemperatureStore:
|
||||
class DataStore:
|
||||
def __init__(self, config):
|
||||
self.server = config.get_server()
|
||||
|
||||
|
@ -99,4 +99,4 @@ class TemperatureStore:
|
|||
self.temp_update_cb.stop()
|
||||
|
||||
def load_plugin(config):
|
||||
return TemperatureStore(config)
|
||||
return DataStore(config)
|
Loading…
Reference in New Issue