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:
Arksine 2020-09-28 14:08:40 -04:00
parent a578199dab
commit b8fc6f5130
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ MAX_LOG_ATTEMPTS = 10 * LOG_ATTEMPT_INTERVAL
CORE_PLUGINS = [ CORE_PLUGINS = [
'file_manager', 'klippy_apis', 'machine', 'file_manager', 'klippy_apis', 'machine',
'temperature_store', 'shell_command'] 'data_store', 'shell_command']
class Sentinel: class Sentinel:
pass pass

View File

@ -1,4 +1,4 @@
# Heater sensor temperature storage # Klipper data logging and storage storage
# #
# Copyright (C) 2020 Eric Callahan <arksine.code@gmail.com> # Copyright (C) 2020 Eric Callahan <arksine.code@gmail.com>
# #
@ -10,7 +10,7 @@ from tornado.ioloop import IOLoop, PeriodicCallback
TEMPERATURE_UPDATE_MS = 1000 TEMPERATURE_UPDATE_MS = 1000
TEMPERATURE_STORE_SIZE = 20 * 60 TEMPERATURE_STORE_SIZE = 20 * 60
class TemperatureStore: class DataStore:
def __init__(self, config): def __init__(self, config):
self.server = config.get_server() self.server = config.get_server()
@ -99,4 +99,4 @@ class TemperatureStore:
self.temp_update_cb.stop() self.temp_update_cb.stop()
def load_plugin(config): def load_plugin(config):
return TemperatureStore(config) return DataStore(config)