Greenhouse control system
From uCtrl.net
| This project has been put on hold! The plan is to merge it with Serial I/O system, and eventually include it in a full size rack setup. |
Contents |
The idea
- Making a system that can monitor all climate factors, like: temperature, humidity, light intensity, EC, PH, CO2 and O2 levels.
- Making the system able to influence the different levels using advanced automation. (not started yet)
Information
Using Mrtg in a Linux environment graphs for every: day, week, month and year will be made. The plan is to code a Linux application that will get the values from the modules and calculate the real levels. The result will be saved in a log file that Mrtg can read. The computer needs a UPS, that way no data is lost if a power loss should occur.
Collecting data
The data will be gathers using analog input modules with Serial I/O system standard. New modules with more analog inputs will have to be manufactured. I'm not quite sure how to get all the different sensors yet, but i am searching the internet for answers:)
The graphs
Information
Using the analog value log files it's possible to export the analog values into other applications, like Mrtg. Mrtg is primarily used to map network traffic on multiple routers. But it can be set up to make graphs for basically everything. Mrtg needs to run in a Linux environment.
Example mrtg.conf
For temperature sensor.
Title[temp_lr]: Living Room Temperature PageTop[temp_lr]: <H1>Living Room Temperature</H1> Target[temp_lr]: `/usr/mrtg/temp_lr` *10 MaxBytes[temp_lr]: 40000 Factor[temp_lr]: 0.001 YLegend[temp_lr]: mDegree 'C ShortLegend[temp_lr]: 'C LegendI[temp_lr]: LegendO[temp_lr]: Degree Options[temp_lr]: growright, nopercent, gauge, nolegend YSize[temp_lr]: 150
Example target bash script
For reading the analog value log files.
echo 0 cat /usr/serialserver/serialserver-analog-value2-1.log echo 0 echo Temperature
Sharing log files
The log files can be made accessible in Linux using smbmount
smbmount //server/serialserver /usr/serialserver -o password= r