From LedHed's Wiki
Jump to: navigation, search
(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 ==
1. Install Linux/BSD Distro of your choosing, for this example the commands will be for Debian based distros.
+
<ol>
2. Add WeeWX repo to apt sources
+
  <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
3. Update Apt database and install
+
    </pre>
 +
  <li> Update Apt database and install </li>
 +
    <pre>
 
  sudo apt update
 
  sudo apt update
 
  sudo apt install weewx
 
  sudo apt install weewx
4. Start the WeeWX service
+
    </pre>
 +
  <li> Start the WeeWX service </li>
 +
    <pre>
 
  service weewx start
 
  service weewx start
 +
    </pre>
 +
</ol>
 +
  
 
=== Web Interface ===
 
=== Web Interface ===
1. Install your favorite HTTP server, nginx in this example
+
<ol>
2. Point the http root to /var/www/html/weewx
+
<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''
3. Start nginx
+
<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

  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
  3.  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
        
  4. Update Apt database and install
  5.  sudo apt update
     sudo apt install weewx
        
  6. Start the WeeWX service
  7.  service weewx start
        


Web Interface

  1. Install your favorite HTTP server, nginx in this example
  2. Point the http root to /var/www/html/weewx
  3.  server {
             listen  80 default_server;
             root    /var/www/html/weewx;
             index   index.html;
     }
      

    Note: This is a minimal nginx config

  4. Start nginx
  5.  service nginx start
      


Reference

http://weewx.com/docs/debian.htm