This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tasks | |
from apps.spriklers.settings import app_settings | |
def irrigigation_dispacher_verification(minutes=app_settings.WATCHDOG_LOOKBACK_TIME): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# settings.py | |
FULGURIT = { | |
'SPRINKLERS': { | |
'WAIT_TIME_FOR_IRRIGATION_END': 15, | |
'WAIT_TIME_FOR_IRRIGATION_END_PER_GROUP': 5, | |
'WAIT_TIME_FOR_IRRIGATION_GROUP_START': 2, | |
'WATCHDOG_LOOKBACK_TIME': 3 | |
}, | |
'ENVIRONMENTAL_CONTROL': { | |
'SPEED_HYSTERESIS': 2.5, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tasks.py | |
from django.conf import settings | |
WATCHDOG_LOOKBACK_TIME = getattr(settings, 'WATCHDOG_LOOKBACK_TIME', 5) | |
def irrigigation_dispacher_verification_meh(minutes=WATCHDOG_LOOKBACK_TIME): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tasks.py | |
from django.conf import settings | |
def irrigigation_dispacher_verification_meh(minutes=getattr(settings, 'WATCHDOG_LOOKBACK_TIME', 5)): | |
pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# settings.py | |
WAIT_TIME_FOR_IRRIGATION_END = 15 | |
WAIT_TIME_FOR_IRRIGATION_END_PER_GROUP = 5 | |
WAIT_TIME_FOR_IRRIGATION_GROUP_START = 2 | |
WATCHDOG_LOOKBACK_TIME = 3 | |
SPEED_HYSTERESIS = 2.5 | |
ANGLE_HYSTERESIS = 15 | |
MINIMUM_ACTUATION_CHANGE = 5 |