My 2016 WeeWX setup recently crashed so I decided to upgrade with a fresh 
install with Raspberry Pi OS (Bullseye - I'm using a RPi Zero W as my 
dedicated computer) and WeeWX 5.1. I am a complete klutz in Linux so I 
tried to follow the installation instructions as closely as possible.

All went well until I began setting up the local web server. I chose nginx 
because I have a low power RPi Zero W and because I used nginx in 2016. 
Unfortunately, I had long since forgotten how I set it up. I used the 
instructions at the GitHub wiki 
<https://github.com/weewx/weewx/wiki/Configure-a-web-server-(Apache,-NGINX-or-lighttpd)>.
 
It suggests adding:

server {
  location /weewx {
    alias /home/weewx/public_html;
  }

to the 'default' file in the </etc/nginx/sites-available/> folder.

However, this did not work with my installation. After much 
head-scratching, I edited the 'alias' line to:

alias /var/www/html/weewx/;

Because of my limited knowledge of WeeWX and nginx, I didn't try to fiddle 
with the wiki entry. I don't think I did anything out of the ordinary 
during the installation. Could these instructions be for an older version 
of  WeeWX? Maybe someone who knows can figure out if the wiki needs to be 
corrected - the current suggestion didn't work for me.

All now seems to be working well with my WeeWX+RPi Zero W+Vantage Vue 
weather station setup. I hope this helps someone.

David
VE3STI
Picton, ON  Canada

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/69405930-135d-4679-afed-cc5f7c2a0558n%40googlegroups.com.

Reply via email to