| ... | ... | @@ -118,7 +118,8 @@ BMON utilizes the Linux Cron utility to run a script that performs a number of t |
|
|
|
This cron job:
|
|
|
|
* creates calculated reading values and stores Internet weather data in the reading database every half hour,
|
|
|
|
* checks for active Alert Conditions every five minutes,
|
|
|
|
* creates a daily status line in the log file indicating how many sensor readings were stored in the database during the past day (viewable by browsing to `<Domain URL>/show_log`), and
|
|
|
|
* creates a daily status line in the log file indicating how many sensor readings were stored in the database during the past day (viewable by browsing to `<Domain URL>/show_log`),
|
|
|
|
* creates a backup of the main Django database every day, and
|
|
|
|
* creates a backup of the reading database every three days.
|
|
|
|
|
|
|
|
The Cron job executes the [[main_cron.py|https://github.com/alanmitchell/bmon/blob/master/bmsapp/scripts/main_cron.py]] script by using the [[Django Extensions runscript feature|http://django-extensions.readthedocs.org/en/latest/runscript.html]]. This runscript command allows the scripts to operate within the Django context, having full access to Django models and the settings file, for example.
|
| ... | ... | |