#!/bin/sh
# alarmscript.sh
espeak "Check your fan filter _: Check your fan filter _: Check your fan filter _:"
# http://espeak.sourceforge.net/ - available via Ubuntu and other repositories
# http://caspian.dotconf.net/menu/Software/SendEmail/ - available by distro repositories
# sudo aptitude install SendEmail espeak
# give the script executable permissions - sudo schmod 755 alarmscript.sh
# if you don't need an e-mail alert, comment out the next line
# to use with gkrellm, right-click to get to configuration, open Fans, select the "fan" channel the filter
# monitor is on, click Alerts, in the Set Alert window, after setting the "RPM" setting corresponding to
# when you want the alert to go off, enter /path-to/alarmscript.sh in the Alarm command textbox
# DISCLAIMER: use at your own risk.
sendemail -s smtp.gmail.com:587 -xu username -xp password -f senderaddress@sendersite.com -u "computer filter alert" -m "fan filter at usersite needs servicing" -t recipient@recipientsite.com
# end of script