From 8add6f634c5837538c07cf12872754163c86c885 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Tue, 5 Mar 2019 18:10:59 -0700 Subject: [PATCH] Moved sensor settings to separate file --- .bin/Scripts/functions/sensors.py | 14 +------------- .bin/Scripts/settings/sensors.py | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 .bin/Scripts/settings/sensors.py diff --git a/.bin/Scripts/functions/sensors.py b/.bin/Scripts/functions/sensors.py index a7d742bb..c1e33f05 100644 --- a/.bin/Scripts/functions/sensors.py +++ b/.bin/Scripts/functions/sensors.py @@ -4,19 +4,7 @@ import json import re from functions.tmux import * - - -# STATIC VARIABLES -TEMP_LIMITS = { - 'GREEN': 60, - 'YELLOW': 70, - 'ORANGE': 80, - 'RED': 90, - } - - -# REGEX -REGEX_COLORS = re.compile(r'\033\[\d+;?1?m') +from settings.sensors import * # Error Classes diff --git a/.bin/Scripts/settings/sensors.py b/.bin/Scripts/settings/sensors.py new file mode 100644 index 00000000..de557434 --- /dev/null +++ b/.bin/Scripts/settings/sensors.py @@ -0,0 +1,19 @@ +# Wizard Kit: Settings - Sensors + +# General +TEMP_LIMITS = { + 'GREEN': 60, + 'YELLOW': 70, + 'ORANGE': 80, + 'RED': 90, + } + + +# Regex +REGEX_COLORS = re.compile(r'\033\[\d+;?1?m') + + +if __name__ == '__main__': + print("This file is not meant to be called directly.") + +# vim: sts=2 sw=2 ts=2