Hello,
after a long time waiting for my parts, now everything is here and connected,
but there are some more questions.
I dont know which id i must set in the custom python code to get the pumps running.
I can run them manually in the output module, can set amount and can set duration, but they dont run automatically to regulate ec and ph.
Is there an issue with my ID`s ?
This is what i have done :
I have found these id`s in the input modul when i put the cursor
on the name ( Atlas_PH) , is this correct ?
UUID : e755ff3c-0a54-4d87-9c5d-bf3685af032d
Edit below to set the IDs for Conditions and Actions ###
condition_id_measurement_ph_id = e755ff3c-0a54-4d87-9c5d-bf3685af032d # Condition: measurement, last, pH Input
condition_id_measurement_ec_id = 7c221512-b80d-4661-b5ca-fc976f34ae39# Condition: measurement, last, EC Input
action_id_pump_1_acid = ACID_PUMP # Action: Pump 1 (Acid)
action_id_pump_2_base = BASE_PUMP # Action: Pump 2 (Base)
action_id_pump_3_nutrient_a = A_COMPONENT # Action: Pump 3 (Nutrient A)
action_id_pump_4_nutrient_b = B_COMPONENT # Action: Pump 4 (Nutrient B)
action_id_email_notification = "{EMAIL_ID}" # Action: Email Notification
and here is the log
2021-05-30 13:10:56,198 - ERROR - mycodo.controllers.controller_conditional_2631d842 - initialize_variables() Exception: invalid syntax (conditional_2631d842-edfe-4027-a60e-e1aa823dd8f4.py, line 30)
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/base_controller.py", line 74, in run
self.initialize_variables()
File "/var/mycodo-root/mycodo/controllers/controller_conditional.py", line 126, in initialize_variables
spec.loader.exec_module(conditional_run)
File "<frozen importlib._bootstrap_external>", line 724, in exec_module
File "<frozen importlib._bootstrap_external>", line 860, in get_code
File "<frozen importlib._bootstrap_external>", line 791, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/pi/Mycodo/mycodo/user_python_code/conditional_2631d842-edfe-4027-a60e-e1aa823dd8f4.py", line 30
condition_id_measurement_ph_id = e755ff3c-0a54-4d87-9c5d-bf3685af032d # Condition: measurement, last, pH Input
^
SyntaxError: invalid syntax
2021-05-30 13:10:56,200 - INFO - mycodo.controllers.controller_conditional_2631d842 - Activated in 70.5 ms
2021-05-30 13:10:58,436 - INFO - mycodo.function.bang_bang_728fde22 - Input: 20.58764477247023, output: on, target: 22.0, hyst: 2.0
2021-05-30 13:10:59,596 - INFO - mycodo.function.bang_bang_97a00c8a - Input: 19.125, output: on, target: 22.0, hyst: 1.0
2021-05-30 13:11:00,515 - INFO - mycodo.function.bang_bang_60d080c9 - Input: 53.80925751346696, output: off, target: 50.0, hyst: 10.0
2021-05-30 13:11:03,231 - INFO - mycodo.function.bang_bang_728fde22 - Input: 20.58764477247023, output: on, target: 22.0, hyst: 2.0
2021-05-30 13:11:04,518 - INFO - mycodo.function.bang_bang_97a00c8a - Input: 19.125, output: on, target: 22.0, hyst: 1.0
2021-05-30 13:11:05,120 - INFO - mycodo.function.bang_bang_60d080c9 - Input: 53.80925751346696, output: off, target: 50.0, hyst: 10.0
2021-05-30 13:11:06,459 - ERROR - mycodo.controllers.controller_conditional_2631d842 - Exception executing check_conditionals() on attempt 1 of 3. Waiting 10 seconds and trying again.
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/base_controller.py", line 124, in attempt_execute
func()
File "/var/mycodo-root/mycodo/controllers/controller_conditional.py", line 176, in check_conditionals
self.conditional_run.message = message
AttributeError: 'NoneType' object has no attribute 'message'
2021-05-30 13:11:08,321 - INFO - mycodo.function.bang_bang_728fde22 - Input: 20.58764477247023, output: on, target: 22.0, hyst: 2.0
2021-05-30 13:11:09,393 - INFO - mycodo.function.bang_bang_97a00c8a - Input: 19.125, output: on, target: 22.0, hyst: 1.0
2021-05-30 13:11:10,244 - INFO - mycodo.function.bang_bang_60d080c9 - Input: 53.80925751346696, output: off, target: 50.0, hyst: 10.0
2021-05-30 13:11:13,443 - INFO - mycodo.function.bang_bang_728fde22 - Input: 20.556829137547176, output: on, target: 22.0, hyst: 2.0
2021-05-30 13:11:14,505 - INFO - mycodo.function.bang_bang_97a00c8a - Input: 19.0625, output: on, target: 22.0, hyst: 1.0
2021-05-30 13:11:15,094 - INFO - mycodo.function.bang_bang_60d080c9 - Input: 53.106076821874815, output: off, target: 50.0, hyst: 10.0
2021-05-30 13:11:16,504 - ERROR - mycodo.controllers.controller_conditional_2631d842 - Exception executing check_conditionals() on attempt 2 of 3. Waiting 10 seconds and trying again.
Traceback (most recent call last):
File "/var/mycodo-root/mycodo/controllers/base_controller.py", line 124, in attempt_execute
func()
File "/var/mycodo-root/mycodo/controllers/controller_conditional.py", line 176, in check_conditionals
self.conditional_run.message = message
AttributeError: 'NoneType' object has no attribute 'message'