kizniche / Mycodo

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

Suggestion: Adding VPD calculation to Inputs on Dashboard #572

Closed BobDDole closed 5 years ago

BobDDole commented 5 years ago

Along with the Temp, Humidity, & Dewpoint Inputs is it possible to add Vapor Pressure Deficit as a Input as well?

Theoi-Meteoroi commented 5 years ago

This is (for indoor grow environments) an excellent suggestion, even though it is a calculated value. I have long advocated VPD to be an important metric affecting resultant crop quality and pathogen resistance. Artificial environments, especially closed environments can make maintaining a healthy VPD quite challenging. I have long wanted to be able to control ventilation based mostly on VPD rather than temperature or humidity alone or in combination with a derived heuristic based on observation. VPD was always the desired control feedback.

This is an excellent description of Vapor pressure and the method to calculate VPD.

VP table and VPD calculation

BobDDole commented 5 years ago

Yes indoors VPD is a very useful metric and would be a welcome addition to inputs. I would add it myself if I knew python. Calculation values seem to be done in mycodo/inputs/sensorutils.py And the valid ones are defined in the sensors related python file (IE mine is dht22.py). Really wish I knew python enough to whip this up but alas I suck at programming languages. BTW Theoi, I was going to include the EXACT same link you did for calculation, LOL Thanks for giving the info

SAM26K commented 5 years ago

Suggest creating a general math module input where real inputs from sensors can be parameters of a formula that generates an output that can be used for logging and triggering events.

kizniche commented 5 years ago

I could add VPD as a measurement for inputs that return temperature and RH, as well as a math controller that can have temperature and RH selected from one or two different inputs. In 7.0, the user can select which measurements are stored from the sensor, so you can have many potential measurements returned and storage space isn't wasted if you don't want them by disabling them. One of several new features I implemented with the new measurement system.

kizniche commented 5 years ago

I implemented VPD returning for inputs that measure at least temperature and RH. I'll add the math controller later, but just wanted to give an update showing it calculating the proper VPD from the measurements (dummy data) that align with the expected result from the example in the provided link (above), using the equations for SVP and VPD.

screenshot-192 168 0 9-2018 11 29-15-05-02

kizniche commented 5 years ago

Closing issue because both Input and Math VPD will be in the 7.0 release.

BobDDole commented 5 years ago

Thanks, you the man!