From LedHed's Wiki
(Created page with "== Down-N-Dirty Install == 1. Install Linux/BSD Distro of your choosing, for this example the commands will be for Debian based distros. 2. Add WeeWX repo to apt sources wget...") |
|||
Line 1: | Line 1: | ||
== Down-N-Dirty Install == | == Down-N-Dirty Install == | ||
− | + | <ol> | |
− | + | <li> Install Linux/BSD Distro of your choosing, for this example the commands will be for Debian based distros. </li> | |
+ | <li> Add WeeWX repo to apt sources </li> | ||
+ | <pre> | ||
wget -qO - http://weewx.com/keys.html | sudo apt-key add - | wget -qO - http://weewx.com/keys.html | sudo apt-key add - | ||
wget -qO - http://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list | wget -qO - http://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list | ||
− | + | </pre> | |
+ | <li> Update Apt database and install </li> | ||
+ | <pre> | ||
sudo apt update | sudo apt update | ||
sudo apt install weewx | sudo apt install weewx | ||
− | + | </pre> | |
+ | <li> Start the WeeWX service </li> | ||
+ | <pre> | ||
service weewx start | service weewx start | ||
+ | </pre> | ||
+ | </ol> | ||
+ | |||
=== Web Interface === | === Web Interface === | ||
− | + | <ol> | |
− | + | <li> Install your favorite HTTP server, nginx in this example </li> | |
+ | <li> Point the http root to /var/www/html/weewx </li> | ||
+ | <pre> | ||
server { | server { | ||
listen 80 default_server; | listen 80 default_server; | ||
Line 18: | Line 29: | ||
index index.html; | index index.html; | ||
} | } | ||
+ | </pre> | ||
''Note: This is a minimal nginx config'' | ''Note: This is a minimal nginx config'' | ||
− | + | <li> Start nginx </li> | |
+ | <pre> | ||
service nginx start | service nginx start | ||
+ | </pre> | ||
+ | </ol> | ||
Latest revision as of 07:11, 20 August 2020
Down-N-Dirty Install
- Install Linux/BSD Distro of your choosing, for this example the commands will be for Debian based distros.
- Add WeeWX repo to apt sources
- Update Apt database and install
- Start the WeeWX service
wget -qO - http://weewx.com/keys.html | sudo apt-key add - wget -qO - http://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list
sudo apt update sudo apt install weewx
service weewx start
Web Interface
- Install your favorite HTTP server, nginx in this example
- Point the http root to /var/www/html/weewx
- Start nginx
server { listen 80 default_server; root /var/www/html/weewx; index index.html; }
Note: This is a minimal nginx config
service nginx start