Initial version of my ruby script to control the fans of my computer case.
Removed unused method root?.
New object orientated model.
Whitespace cleanup.
Finished class FanController and added documentation comments for the classes and methods.
Added interval to FanController#speed_diff_to_pwm_diff to change PWM by 3 for speed differences of 51 to 150 rpm.
Increased intervals to update sensor data and fan speed to three and fifteen seconds.
Changed comparison of pwm change.
Reverted revision 8. What am I dumb.
Whitespace cleanup.
Changed interval to set fan speeds from 15 to 10 seconds to speedup adjustments.
When logging text, use $stdout directly and flush after printing. When redirecting stdout/stderr to a file, text was flushed only on quit (at least for only a few lines of text).
Script to start fan.rb as daemon on Gentoo/Linux using /sbin/runscript.
Logrotate script to rotate the logfile created by the daemon as defined in ./runscript.
Added logging of Exceptions.
Fixed bug in FanController#speed_diff_to_pwm_diff: The ranges were wrong and for speed_diff 10, nil was returned.
Error in log method after renaming of parameter text to msg.
Removed the thread to set the fan speeds. This is now done in the main thread.
When logging an exception, use Thread#to_s if no :name is defined a thread-local variable.
Some markup changes in comments.