RickStep wrote:A fan control flowchart created in Visio 2013 is available here:
...
I am not able to program this.
Rick S
Thank you for this, Rick! With it, I worked up something in a shell script that follows this pretty closely. You can download it here (apologies if the formatting/styling is weird, I'm not used to working in shell):
https://raw.githubusercontent.com/jjack … control.sh
It doesn't do any differential math for the 5 second temperature checks 'cause I'm not sure how you'd do that in a shell script, so I've got it just looking for a 2 degree temperature change instead as a simple hack (the temperatures come back as integers, so a 0.5 degree check there wasn't going to work and I noticed that my temps generally fluctuate by about a degree every 5 seconds anyway).
As another note, while I added it in, checking all 3 load averages might be a little superfluous and could result in the fans running up 15 minutes longer than potentially necessary. Checking the 1 minute value would likely be sufficient.
It's got a verbose toggle at the top of the script that you can use for a little more output for debugging and testing. I tried commenting enough to hopefully help the non-programmers figure things out.
To run it
- download the script or save it to your router and be sure to "chmod +x fancontrol.sh"
- for testing and debugging, run it by hand with "./fancontrol.sh"
- if you want to have it run all the time or in the background, run it with "./fancontrol.sh &" (make sure that VERBOSE is off!)
I believe that I have all of the logic in place, I just haven't had a chance to test it very much. Please try it out and let me know how well it works for you all.
DISCLAIMER: this is beta and might blow your router up and catch your house on fire and cause your cats to climb your curtains. But probably not. That would be really weird. I'm not responsible for any damages caused to you, your property, or your pets by this software. But I will be really sad if something does happen.
(Last edited by jeremyjack on 21 Jun 2015, 05:10)