UKHAS Wiki

UK High Altitude Society

User Tools

Site Tools


guides:hourlypredictor

This is an old revision of the document!


Full Documentation for the Hourly Predictor is a work in progress, There are some notes, a youtube video and CentOS Image for VMWare Player. Other Images and packages are a work in progress.

It has been tested on a Pi but it slow at downloading the GFS data (Over an hour)

Notes for installing from Source on CentOS 6

This has been documented for CentOS 6 at http://hab.yapd.net/setup.html.

Setting Up Your Own Hourly Predictor

This page will be a guide to help users set up their own hourly predictor.

This uses a VMWare Player - you can download the player Here

VMWare player image of a standard setup on CentOS linked here.

Some useful information to customise the image and how to use the hourly

Default Account credentials - change to suit

User: chris

Pass: habhub1

Root Credentials

User: root

Pass: habhub1

to Logout a currently logged in user

pkill -KILL -u raj

to Change username

usermod -l login-name old-name

Locations of the cron jobs for manually running them

“/opt/cusf-landing-prediction/scripts/fetch-run-cronjob.sh”

fetch-run - lauches both of these files

“/opt/cusf-landing-prediction/scripts/hourly-predictions-cronjob.sh”

hourly-predictions - performs the calculations

“/opt/cusf-landing-prediction/scripts/grabdata-cronjob.sh”

grabdata - downloads the data from NOAA servers

“/opt/cusf-landing-prediction/web/hourly-predictions/scenario-template.json”

The options for launch, lat/lon, alt, ascent, descent etc

Scheduler for the cronjobs is in /etc/cron.d/hab

echo “0 */3 * * * root cd /opt/cusf-landing-prediction && ./scripts/fetch-run-cronjob.sh”

#the 0 */3 * * * part refers to the cron fetching the data at 00 mins past the hour every 3 hours, change to suit your needs

Apache Info Located in: /etc/httpd/conf/httpd.conf DocumentRoot “/opt/cusf-landing-prediction/web/hourly-predictions”

DNS Namerserver /etc/resolv.conf

I had problems with the router borking things so resolv.conf was set to 8.8.8.8

This resets on each boot so you may need to find a more robust fix

guides/hourlypredictor.1365779254.txt.gz · Last modified: 2013/04/12 15:07 by hix

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki