Current work flow for setting up datapro to run on a new site with integration into the diagnostic web page

From IARC 207 Wiki
Revision as of 14:36, 7 November 2016 by 69.161.4.229 (talk) (Created page with "===Initial Stuff=== * download a copy of the data onto your local machine * either by hand or using an automated tool set up the parameter and key files. * transfer the c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Initial Stuff

  • download a copy of the data onto your local machine
  • either by hand or using an automated tool set up the parameter and key files.
  • transfer the configuration files to the production machine someplace like:
    • /var/site/$STATION_GROUP/$STATION_NAME/config
  • create a bash script to process the data
  • test the bash script
  • once it works add a reference to it to the primary site processing cron script

Adding the new site to the diagnostic page

  • on the main diagnostic web directory such as /var/www/html/data/ make directory $STATION_GROUP/$STATION_NAME
mkdir /var/www/html/data/$STATION_GROUP
mkdir /var/www/html/data/$STATION_GROUP/$STATION_NAME
  • copy /var/www/html/data/viz_template/full.html to /var/www/html/data/ $STATION_GROUP/$STATION_NAME
cp /var/www/html/data/viz_template/full.html /var/www/html/data/$STATION_GROUP/$STATION_NAME/
cp /var/www/html/data/viz_template/recent.html /var/www/html/data/$STATION_GROUP/$STATION_NAME/
  • edit /var/www/html/data/diag.json and add the information for this new site.
  • create symlinks for the output & web directories from the processed data into the web directory