HIP:PMP:Database

From Earlham CS Department
Revision as of 15:22, 12 July 2007 by Madunnh (talk | contribs) (PMP1 Scripts)
Jump to navigation Jump to search

PMP1 Scripts

The pmp1 has 2 main scripts that handle wind data. All pmp1 scripts are located in "/root/scripts/"

  • The first script is "log.pl"
    • This script collects speed1, speed2, direction1, direction2 and box_temperature.
    • It then records them in files in "/root/logs/".
    • The script is run buy cron every 15 minutes and it also records a state value.
    • When the state value is 4, the script wakes up the network, resets the state value to 0, and executes the second main script.
  • The second script is "dbi.pl"
This script simply sends all the data from the files in "/root/logs" to a database called "pmp1" on quark.

Database on Quark