Linux Reef Controller – Example Script & Cron Entry
The script can be stored anywhere as long as it can be called by cron. It can also be reused for each sensor on your network by just making a few small modifications. This script is the heart of the project and provides sensor polling, website updates, graph generation and updating, email alerts, and logging.
To have the script run every 5 mins setup a cron entry:
- Append the following line to your crontab to have the script run every 5 mins:
- Restart Cron
- This will create a cron job that runs the script at every 5 mins and logs any runtime errors to