Files
weewx/pkg/index-apt.html

68 lines
1.9 KiB
HTML

<!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 http-equiv="Content-Language" content="en-us"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WeeWX: Installation using apt-get</title>
<style>
body{
font-family: Verdana,Helvetica,sans-serif;
margin-left: 1em;
margin-right: 1em;
}
h1 {
font-family: Arial,Helvetica,sans-serif;
margin-top: 2em;
margin-bottom: 0;
}
h2 {
font-family: Arial,Helvetica,sans-serif;
margin-top: 1.5em;
margin-bottom: 0;
}
.title {
font-size: 180%;
clear: left;
margin-top: 0px;
}
.tty {
font-family: "Courier New", Courier, monospace;
background-color: #eeeee0;
border: 1px solid #ddddaa;
padding: 3px 8px 3px 8px;
margin: 5px 15px 5px 15px;
webkit-border-radius: 6px;
moz-border-radius: 6px;
border-radius: 6px;
white-space: pre;
line-height: normal;
}
</style>
</head>
<body>
<h1 class="title">apt repository for WeeWX</h1>
<h2>Tell the system to trust weewx.com</h2>
<pre class='tty'>sudo apt-get -y install wget gnupg
wget -qO - https://weewx.com/keys.html | sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/weewx.gpg</pre>
<h2>Tell apt where to find the WeeWX repository</h2>
For Debian10 and later (WeeWX5 and Python3):
<pre class='tty'>echo "deb [arch=all] https://weewx.com/apt/python3 buster main" | sudo tee /etc/apt/sources.list.d/weewx.list</pre>
For Debian9 and earlier (WeeWX4 and Python2):
<pre class='tty'>echo "deb [arch=all] https://weewx.com/apt/python2 squeeze main" | sudo tee /etc/apt/sources.list.d/weewx.list</pre>
<h2>Install and/or Upgrade WeeWX</h2>
<pre class='tty'>sudo apt-get update
sudo apt-get install weewx</pre>
</body>
</html>