Difference between revisions of "HIP:summer2009"

From Earlham CS Department
Jump to navigation Jump to search
(What's for today? (5/18/2009))
(Infobomb Script)
Line 107: Line 107:
  
 
<b>stewie side</b><br>
 
<b>stewie side</b><br>
 +
<pre>
 +
infobomb@stewie:~$ crontab -u infobomb -l
 +
SHELL=/bin/bash
 +
MAILTO=infobomb
 +
HOME=/home/infobomb
 +
PATH=/sbin:/bin:/usr/sbin:/usr/bin
 +
 +
# m h  dom mon dow  command
 +
*/10 * * * * export PYTHONPATH='/home/infobomb'; export DJANGO_SETTINGS_MODULE=infobomb.settings; /home/infobomb/infobomb/scripts/run_infobomb_dataparser > /dev/null 2>&1
 +
*/30 * * * * export PYTHONPATH='/home/infobomb'; export DJANGO_SETTINGS_MODULE=infobomb.settings; /home/infobomb/infobomb/scripts/extract-n-check-data.pl > /dev/null 2>&1
 +
*/10 * * * * /home/infobomb/eeap/eeap_sync.py >> /home/infobomb/eeap/log.txt
 +
</pre>
 
*[http://trac.cs.earlham.edu/infobomb/browser/dataparser/dataparser.py dataparser.py]
 
*[http://trac.cs.earlham.edu/infobomb/browser/dataparser/dataparser.py dataparser.py]
 
*[http://trac.cs.earlham.edu/infobomb/browser/dataviewer/transaction.py transaction.py]
 
*[http://trac.cs.earlham.edu/infobomb/browser/dataviewer/transaction.py transaction.py]

Revision as of 10:22, 18 May 2009

What's for today? (5/18/2009)

  • Setting up monitoring devise on Springwood lake @ 1:30pm
  • Figuring out why stewie does not transfer data into database from data directory
  • Testing the flow of electric current of pmp4
  • To write up infobomb script guide
  • To research for a better printer
  • Questions
    • Conductivity does not appear on Cacti. Why?
    • I left the pmp5 switch on last night but pmp5 did not send any data to stewie. Why?
    • How do I connect to pmp via USB from Baker?
    • I want to see crontabs in stewie which is owned by root.
    • What do we print by printer of portable test kit?
    • How do I log in database at stewie?

TODO

  • Testing H2O Unit "End to End"
    • Find out how to use Minicom
    • Test data flow from sonde to database via cell phone.
  • Springwood Install
  • Portable testkit
    • X-ray fluorescence (XRF)
    • Thermal interface compound (TIC)
    • Sonde
    • Netbook
    • Printer
    • GPS
  • Schema + Interface
  • Wind @ miller
  • Learning languages: Perl, Python, Bash

Shopping List

Measurement for portable test kit

  • XRF (INNOV-X ALPHA)
    • Dimensions: 30.5cm * 24.5cm * 8.0cm
    • Weight: 1.6kg
  • TIC (Fluke TiR1 Infrared Thermal Imager)
    • Dimensions: 25.4cm * 12.7cm * 15.2cm
    • Weight: 1.1kg
  • Sonde (YSI 600R)
    • Diameter: 4.2cm
    • Length: 46.5cm
    • Weight: 0.5kg
  • Netbook (Dell Inspiron Mini 9)
    • Dimensions: 23.2cm * 3.17cm * 17.2cm
    • Weight: 1.03kg
  • GPS (MAGELLAN eXplorist100)
    • Dimensions: 5.6cm x 11.9cm x 3.3cm
    • Weight: 0.164kg
  • Printer(?)
  • pelican case

Infobomb Script

Infobomb trac wiki
Web Interface Cacti
Diagram "pmp to infobomb"

pmp side

  • crondtab
# for Cell Phone 
*/15 * * * * /root/scripts/poll_all_sonde.pl; /root/scripts/process_readings-cell.sh;
0 * * * * /root/scripts/transfer-cell.pl
  • autopoll (shell script)
    • Run sonde_data.pl multiple times

stewie side

infobomb@stewie:~$ crontab -u infobomb -l
SHELL=/bin/bash
MAILTO=infobomb
HOME=/home/infobomb
PATH=/sbin:/bin:/usr/sbin:/usr/bin

# m h  dom mon dow   command
*/10 * * * * export PYTHONPATH='/home/infobomb'; export DJANGO_SETTINGS_MODULE=infobomb.settings; /home/infobomb/infobomb/scripts/run_infobomb_dataparser > /dev/null 2>&1
*/30 * * * * export PYTHONPATH='/home/infobomb'; export DJANGO_SETTINGS_MODULE=infobomb.settings; /home/infobomb/infobomb/scripts/extract-n-check-data.pl > /dev/null 2>&1
*/10 * * * * /home/infobomb/eeap/eeap_sync.py >> /home/infobomb/eeap/log.txt

Note

  • How to log in to infobomb database?
    • $psql -d infobomb -h db.cs.earlham.edu -U infobomb
    • password: ***************