Linux Reef Controller – Example Script & Cron Entry

This page will run through a perl script that is used on the Web Server in order to process polled data from sensors attached to Sensor Servers on your sensor network.

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