-
Notifications
You must be signed in to change notification settings - Fork 300
/
redhat.htm
129 lines (110 loc) · 4.5 KB
/
redhat.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="en-us" http-equiv="Content-Language" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>weewx: Installation on Redhat systems</title>
<link href="css/weewx_docs.css" rel="stylesheet" />
<link rel="icon" type="image/png" href="/docs/images/favicon.png">
</head>
<body>
<h1 class="title">weewx: Installation on Redhat-based systems</h1>
<p class='os-icons'>
<img class='logo' src='images/logo-redhat.png' alt=""/>
<img class='logo' src='images/logo-centos.png' alt=""/>
<img class='logo' src='images/logo-fedora.png' alt=""/>
</p>
<p>
This is a guide to installing <span class='code'>weewx</span> from an RPM package on systems such as Redhat, CentOS or Fedora.
</p>
<h2>Download</h2>
<p>
Download the Redhat RPM package from <a href="http://weewx.com/downloads"><span class="code">weewx.com/downloads</span></a>. It will have a name similar to <span class='code'>weewx-X.Y.Z-R.rhel.noarch.rpm</span>.
</p>
<h2>Install</h2>
<p>
Install pre-requisites:
</p>
<pre class='tty cmd'>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</pre>
<p>
Install by double-clicking the .rpm file, or via command line:
</p>
<pre class='tty cmd'>sudo rpm -i weewx-X.Y.Z-R.rpm</pre>
<p>
If you see errors about untrusted signature, or MISSING KEYS, you can either install the <a href="http://weewx.com/keys.html">weewx GPG keys</a>:
</p>
<pre class='tty cmd'>sudo rpm --import http://weewx.com/keys.html</pre>
<p>or tell rpm to ignore the signature:</p>
<pre class='tty cmd'>sudo rpm -i --nosignature weewx-X.Y.Z-R.rpm</pre>
<h2>Status</h2>
<p>
Look in the system log for messages from <span class='code'>weewx</span>.
</p>
<pre class='tty cmd'>sudo tail -f /var/log/messages</pre>
<h2>Verify</h2>
<p>
After 5 minutes, open the station web page in a web browser. You should see generic station information and data.
</p>
<pre class='tty'><a href="file:///var/www/html/weewx/index.html">file:///var/www/html/weewx/index.html</a></pre>
<h2>Configure</h2>
<p>
The default installation uses Simulator as the <span class='code'>station_type</span>. To use real hardware, stop <span class='code'>weewx</span>, change to the actual station type and station parameters, delete the simulation data, then restart <span class='code'>weewx</span>:</p>
<pre class='tty cmd'>sudo /etc/init.d/weewx stop
sudo wee_config --reconfigure
sudo rm /var/lib/weewx/weewx.sdb
sudo /etc/init.d/weewx start</pre>
<h2>Start/Stop</h2>
<p>To start/stop <span class='code'>weewx</span>:</p>
<pre class='tty cmd'>sudo /etc/init.d/weewx start
sudo /etc/init.d/weewx stop</pre>
<h2>Customize</h2>
<p>
To enable uploads such as Weather Underground or to customize reports, modify the configuration file <span class='code'>/etc/weewx/weewx.conf</span>. See the <a href="usersguide.htm">User Guide</a> and <a href="customizing.htm">Customization Guide</a> for details.
</p>
<p>
<span class='code'>weewx</span> must be restarted for configuration file changes to take effect.
</p>
<h2>Uninstall</h2>
<p>To uninstall <span class='code'>weewx</span>, removing configuration files but retaining data:</p>
<pre class='tty cmd'>sudo rpm -e weewx</pre>
<p>To remove data:</p>
<pre class='tty cmd'>sudo rm -r /var/lib/weewx
sudo rm -r /var/www/html/weewx</pre>
<h2>Layout</h2>
<p>The installation will result in the following layout:</p>
<table class='locations' style='width: 50%'>
<tr>
<td align='right'>executable: </td>
<td class='tty'>/usr/bin/weewxd</td>
</tr>
<tr>
<td align='right'>configuration file: </td>
<td class='tty'>/etc/weewx/weewx.conf</td>
</tr>
<tr>
<td align='right'>skins and templates: </td>
<td class='tty'>/etc/weewx/skins</td>
</tr>
<tr>
<td align='right'>sqlite databases: </td>
<td class='tty'>/var/lib/weewx/</td>
</tr>
<tr>
<td align='right'>generated web pages and images: </td>
<td class='tty'>/var/www/html/weewx/</td>
</tr>
<tr>
<td align='right'>documentation: </td>
<td class='tty'>/usr/share/doc/weewx-x.y.z/</td>
</tr>
</table>
<p class='copyright'>
© <a href='copyright.htm'>Copyright</a> Tom Keffer
</p>
</body>
</html>