From b8fc6f5130fcea5b63fbce7d44e4fcf59a039a3a Mon Sep 17 00:00:00 2001 From: Arksine Date: Mon, 28 Sep 2020 14:08:40 -0400 Subject: [PATCH] plugins: rename "temperature_store" plugin to "data_store". This is in preparation for additional storage functionality. Signed-off-by: Eric Callahan --- moonraker/moonraker.py | 2 +- moonraker/plugins/{temperature_store.py => data_store.py} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename moonraker/plugins/{temperature_store.py => data_store.py} (97%) diff --git a/moonraker/moonraker.py b/moonraker/moonraker.py index 0285e36..280ff83 100644 --- a/moonraker/moonraker.py +++ b/moonraker/moonraker.py @@ -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 diff --git a/moonraker/plugins/temperature_store.py b/moonraker/plugins/data_store.py similarity index 97% rename from moonraker/plugins/temperature_store.py rename to moonraker/plugins/data_store.py index a511500..02c2fb7 100644 --- a/moonraker/plugins/temperature_store.py +++ b/moonraker/plugins/data_store.py @@ -1,4 +1,4 @@ -# Heater sensor temperature storage +# Klipper data logging and storage storage # # Copyright (C) 2020 Eric Callahan # @@ -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)