This repository contains a set of scripts that produce the statistics seen under monthly stats
and daily stats
at http://ooi.visualocean.net/, as well as automated daily alerts about data avilability and science data products being produced outside global ranges. For questions please contact [email protected].
conda create -n python=3.6 stats requests jinja2 netcdf4 numpy jupyter ipykernel
The scripts are not designed to be run manually on a regular basis. Credentials, directory paths and python interpreters are hard coded into the routines, as outlined below, and not designed to be interactively entered. Instead, the scripts are to be run server side on a cron job. For example:
0 8 * * * /your/server/path/to/miniconda2/envs/stats/bin/python ~/ooi_stats/alerts/data_alerts_run.py
0 8 * * * /your/server/path/to/bin/miniconda2/envs/stats/bin/python ~/ooi_stats/alerts/platform_alerts/platform_alerts_run.py
stats/stats_run_all.sh
- Specify your python interpreter
- Specify the output directory
- Add ooinet username and password
- Specify the output directory and python interpreter
- Add your sender email credentials
alerts/data_alerts_run.py
- Add ooinet username and password
- Add alert recipients
- Specify the output directory
- Add your sender email credentials
alerts/engineering_alerts_run.py
- Add ooinet username and password
- Add alert recipients
- Specify the output directory
- Add your sender email credentials