kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.95k stars 494 forks source link

Conditional Statement Pylint Warning #1194

Closed mdschoff closed 2 years ago

mdschoff commented 2 years ago

After editing my pH and EC variables in the conditional statement and saving them, I keep getting a warning that Pylint is returning these messages. Is this something that will affect the automation of dosage to control the pH and EC values? If so how do I go about fixing this issue?

image

kizniche commented 2 years ago

It's a warning, and the pylint output is displayed at the top of the Conditional. Warnings are not the same as Errors, since they are of lesser severity. You need to view the pylint output to determine if the code you saved is valid or not.

mdschoff commented 2 years ago

I apologize for my continued confusion, but I cannot find the pylint output. All I am seeing is my conditional statement code. There is no conditional status either. I can attach my code or a screenshot if you need clarafication.

kizniche commented 2 years ago

It sounds like you're not running the latest version of Mycodo. If you are running the latest version, please attach a screenshot of the missing Conditional Status and the entire top of the config page, following a successful save.

mdschoff commented 2 years ago

I am currently on 8.13.9 . If these are incorrect or you meant something different for the screenshots please let me know

Screenshot (3) Screenshot (4)

kizniche commented 2 years ago

I see both the pylint output that appears at the top of the Conditional Controller config page as well as the Conditional Status field. I'm not sure what you mean by them not being there.

mdschoff commented 2 years ago

Sorry, I just didn't know if there was supposed to be a value within the conditional status part and I am unsure what the pylint output is within the code.

kizniche commented 2 years ago

There is a default value in the Status text field, but it looks like you deleted it. The pylint output shows the entire generated class and the pylint score/issues at the bottom.

mdschoff commented 2 years ago

I see. I don't remember where I got the conditional code. Is there a master code I can copy and redo my variable assignment?

Sorry for all the questions. This conditional statement I think is the only thing between me and the completed system.

kizniche commented 2 years ago

This is the pH/EC Conditional setup that you should use, if you're not familiar with building your own code: https://kylegabriel.com/projects/2020/06/automated-hydroponic-system-build.html#Electrical_Conductivity_and_pH_Regulation