expanded the water levels to be used to configure pumping levels and moved the water draining period to config file

This commit is contained in:
2016-06-09 20:07:38 +02:00
parent 5c1f1629e7
commit 4872f4a910
5 changed files with 48 additions and 6 deletions

View File

@@ -10,6 +10,10 @@ GPIO_PIN_TANKLEVEL4 = 26 # BCM
GPIO_PIN_TANKFULL = 20 # BCM
GPIO_PIN_OUT_VALVE = 21 # BCM
GPIO_PIN_IN_VALVE = 18 # BCM
START_PUMPING_AT = 'TANKLEVEL4'
STOP_PUMPING_AT = 'TANKFULL'
DRAINING_PERIOD_AMOUNT = 40
DRAINING_PERIOD_UNIT = 'minutes'
API_BASE_URL = 'http://agrar.zoblak.com/api/v1.0'
CONTROLLER_ID = '120' # every controller must have a different one
STATE_FILE = '/var/run/controller_state'