weewx: Installation on Redhat Linux

This is a guide to install weewx from RPM package on systems such as Redhat, CentOS or Fedora. The installation will result in the following layout:

executable: /usr/bin/weewxd
configuration file: /etc/weewx/weewx.conf
skins and templates: /etc/weewx/skins
sqlite databases: /var/lib/weewx/
generated web pages and images: /var/www/html/weewx/
documentation: /usr/share/doc/weewx-x.y.z/

Download

Download the package weewx-X.Y.Z-R.rpm from Sourceforge.

Install

Install pre-requisites:

sudo yum install python-configobj sudo yum install python-cheetah sudo yum install python-imaging sudo yum install python-setuptools sudo easy_install pyserial sudo easy_install pyusb

Install by double-clicking the .rpm file, or via command line:

sudo rpm -i weewx-X.Y.Z-R.rpm

Verify

After 5 minutes, open the station web page in a web browser. You should see generic station information and data.

file:///var/www/html/weewx/index.html

Status

Look in the system log for messages from weewx.

sudo tail -f /var/log/messages

Configure

The default installation uses Simulator as the station_type. This should be changed to the actual weather station type. Edit the configuration file /etc/weewx/weewx.conf. Set at least the following:

Also set any parameters specific to the station, such as the port for stations connected via serial port.

weewx must be restarted for configuration file changes to take effect.

Start/Stop

To start/stop weewx:

sudo /etc/init.d/weewx start sudo /etc/init.d/weewx stop

Customize

To enable uploads such as Weather Underground or to customize reports, modify the configuration file /etc/weewx.conf. See the User Guide and Customization Guide for details.

weewx must be restarted for configuration file changes to take effect.

Uninstall

To uninstall weewx, removing configuration files but retaining data:

sudo rpm -e weewx

To remove data:

sudo rm -r /var/lib/weewx sudo rm -r /var/www/html/weewx