From d7e2a0d29ded2a42552f8adb307729b30694323e Mon Sep 17 00:00:00 2001 From: Bernhard Stampfer Date: Wed, 9 Mar 2016 22:51:34 +0100 Subject: [PATCH] - added a settings file, the settings are a python class --- app/settings.py | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 app/settings.py diff --git a/app/settings.py b/app/settings.py new file mode 100644 index 0000000..72d335a --- /dev/null +++ b/app/settings.py @@ -0,0 +1,42 @@ +################################################################ +# Settings # +################################################################ +# +# This is the settings file! +# Edit settings to your preference and restart the device +# +# The default for everything is False, +# default numbers are given in comments +# +# Web interface colours and styles +# can be changed in app/static/style.css +# +# Gui Backgrounds can be replaced in gui/ folder (.png files) +# +################################################################ + +class Settings: + + def __init__(self): + ##User Interaction + #Gui + self.hideGuiList = False #Show the consumers in the gui + self.allowHiding = False #Allow a user to hide from the gui consumer list + self.onlyOneDrink = False #Hide selection for amount in the gui + self.drinkLimit = 20 #Max amount of consumptions in the gui (default 20) + #Web Interface + self.disableWebIF = False #Disable Web Interface + self.disableStats = False #Disable All Statistics + + ##Payment Incentives + #Money Limit + self.autoBlock = False #Automatically block user if money owed > limit + self.autoUnblock = False #Automatically unblock user if money owed < limit + self.blockLimit = 150 #Money limit for automatic blocking (default 150) + #Mail Spam + self.autoAnnoy = False #Automatically send payment eMails + self.annoyDays = 20 #Automatically send mails every x days (default 20) + self.annoyLimit = 100 #Money limit for autoAnnoy (default 100) + + ##Developer Settings + self.debug = False #Show debug output in console \ No newline at end of file