#below is the crontab used to invoke the corresponding processes/products ####northinlet - the below could be moved to some superscripts which process a list of 'northinlet',etc using same cron times #get data 25 * * * * cd /usr2/prod/buoys/perl/xenia ; perl processNIDB.pl northinlet >> /tmp/northinlet.log 2>&1 #latest xml 27 * * * * cd /usr2/prod/buoys/perl/xenia ; perl latestXml.pl northinlet >> /tmp/northinlet.log 2>&1 #"en" = english units version, "si" = si units version #latest html readouts 29 * * * * cd /usr2/prod/buoys/perl/xenia ; perl latestHtml.pl northinlet "en" >> /tmp/northinlet.log 2>&1 29 * * * * cd /usr2/prod/buoys/perl/xenia ; perl latestHtml.pl northinlet "" >> /tmp/northinlet.log 2>&1 #latest/older graphs - checks before running if existing graph is older than 1 hour 27 * * * * cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "3 days" "en" >> /tmp/northinlet.log 2>&1 0 4 * * * cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "1 week" "en" >> /tmp/northinlet.log 2>&1 0 4 * * 6 cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "1 month" "en" >> /tmp/northinlet.log 2>&1 0 4 1 * * cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "3 months" "en" >> /tmp/northinlet.log 2>&1 0 4 1 * * cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "1 year" "en" >> /tmp/northinlet.log 2>&1 27 * * * * cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "3 days" "" >> /tmp/northinlet.log 2>&1 0 4 * * * cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "1 week" "" >> /tmp/northinlet.log 2>&1 0 4 * * 6 cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "1 month" "" >> /tmp/northinlet.log 2>&1 0 4 1 * * cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "3 months" "" >> /tmp/northinlet.log 2>&1 0 4 1 * * cd /usr2/prod/buoys/perl/xenia ; perl processGraphs.pl northinlet "1 year" "" >> /tmp/northinlet.log 2>&1 #daily add to monthly archive 0 4 * * * cd /usr2/prod/buoys/perl/xenia ; perl processCSV.pl northinlet >> /tmp/northinlet.log 2>&1 ############################################## processNIDB.pl converts the raw csv file into a set of sql statements to be run against the Xenia instance latestXml.pl produces the latest platform obs on the database to an xml document latestHtml.pl produces some html observation readouts using the latest xml document processGraphs.pl produces graphs and tables processCSV.pl produces the monthly csv archive files ############################################## processPages.pl produces php pages which show graphs, tables, latest html (only needs to be run once initially) get_graph.php is called from processGraphs.pl (or elsewhere) to generate graph images using a given xenia dbinstance and sensor_id. It calls graph/graphSingleLine.pl environment_xenia_.xml contains the necessary db, pathing and use info enviroment_xenia_graph.xml contains the necessary graphing and unit conversion info needed by the various scripts