Web Server

From MITNA
Revision as of 20:36, 11 September 2007 by WikiSysop (Talk | contribs)

Jump to: navigation, search

This entry contains information on the packages installed in the web server and the process followed for their installation.

The Wiki began very late in the process, so it will be completed slowly over time.


Weather Station

The Weather Station is a Vantage Pro2 hard wired model.

NEW

W View did not make me happy (it could not give 'real-time' results, only show things about every minute or even more... plus I could not get it to save data to the database to interface easily with PHP.

So, I looked more around, and found this super easy program to use:

 http://www.joejaworski.com/weather/

Since our station is in USB and next to the computer, the ONLY software needed is:

 vproweather
 http://www.joejaworski.com/weather/vproweather-0.6.tgz

I downloaded/untared it to:

 /usr/local/pkgs/vproweather-0.6/

A simple 'make' (using sudo) was all that was needed to compile it. Then, running it with:

 /usr/local/pkgs/vproweather-0.6/vproweather -x /dev/ttyUSB0

Gives real time data, and using '-l' instead of '-x' gives low/high data.

I put this in a cron to run the real-time every 10 seconds and update a table in the database, which is then used by the rest of the site (table: weather). The low/high only runs once a day.

OLD

The linux software is W View. I followed the User Manual detailed instructions.

Install (untar) to:

  • /usr/local/pkgs/wview-3.3.0

Commands (what should be done next time in order, I did not do it in this order):

  • Installed mysqlclient-dev: sudo apt-get install libmysqlclient-dev
  • Installed libpng-dev: sudo apt-get install libpng12-dev
  • Install 'radlib':
    • get .tar
    • install to /urs/local/pkgs/radlib-2.7.0
    • ./configure
    • make
    • sudo make install
    • edit /etc/ld.so.conf --> add /usr/local/lib --> run ldconfig
  • Install 'libgd' (all with sudo):
    • get .tar
    • install to /usr/local/pkgs/gd-2.0.35
    • ./configure
    • make
    • make install
  • ./configure --enable-mysql
  • sudo make
  • sudo make install

Not working! Will need to check USB drivers/connection