user "weewx" not being created

132 views
Skip to first unread message

bgra...@umw.edu

unread,
May 28, 2024, 5:23:35 PM5/28/24
to weewx-user
Hello,
I have an RPI5 running bookworm on which I want to setup a test site of weewx 5. I have the latest 4.10.2 which has been running on an Ubuntu machine for 10+ years (grattans.org/wx). Not being a programmer, I'm trying to get things setup before I make the permanent move.

I have noticed that the user "weewx" has not been created and I'm following direction for a pip install. I have created the primary user "bg" rather than "pi" and wonder if that is a problem?

The simulator seems to be running and posting to /home/bg/weewx-data/public_html/index.html but I am unable to display the page.

I'm certain there is something simple I'm not doing here but am rather stuck. Thanks for any suggestions.  Below is a service status.

Many thanks in advance.
Bob

weewx.service - WeeWX weather system
     Loaded: loaded (/etc/systemd/system/weewx.service; enabled; preset: enabled)
     Active: active (running) since Tue 2024-05-28 11:19:23 EDT; 6h ago
       Docs: https://weewx.com/docs
   Main PID: 1036 (python3)
      Tasks: 1 (limit: 9248)
        CPU: 52.847s
     CGroup: /system.slice/weewx.service
             └─1036 /home/bg/weewx-venv/bin/python3 /home/bg/weewx-venv/lib/python3.11/site-packages/weewxd.py /home/bg/weewx-data/weewx.conf

May 28 17:15:15 RPI5 weewxd[1036]: INFO weewx.manager: Added record 2024-05-28 17:15:00 EDT (1716930900) to database 'weewx.sdb'
May 28 17:15:15 RPI5 weewxd[1036]: INFO weewx.manager: Added record 2024-05-28 17:15:00 EDT (1716930900) to daily summary in 'weewx.sdb'
May 28 17:15:16 RPI5 weewxd[1036]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.32 seconds
May 28 17:15:16 RPI5 weewxd[1036]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.21 seconds
May 28 17:15:16 RPI5 weewxd[1036]: INFO weewx.reportengine: Copied 0 files to /home/bg/weewx-data/public_html
May 28 17:20:15 RPI5 weewxd[1036]: INFO weewx.manager: Added record 2024-05-28 17:20:00 EDT (1716931200) to database 'weewx.sdb'
May 28 17:20:15 RPI5 weewxd[1036]: INFO weewx.manager: Added record 2024-05-28 17:20:00 EDT (1716931200) to daily summary in 'weewx.sdb'
May 28 17:20:16 RPI5 weewxd[1036]: INFO weewx.cheetahgenerator: Generated 8 files for report SeasonsReport in 0.32 seconds
May 28 17:20:16 RPI5 weewxd[1036]: INFO weewx.imagegenerator: Generated 15 images for report SeasonsReport in 0.21 seconds
May 28 17:20:16 RPI5 weewxd[1036]: INFO weewx.reportengine: Copied 0 files to /home/bg/weewx-data/public_html

Tom Keffer

unread,
May 28, 2024, 6:50:44 PM5/28/24
to weewx...@googlegroups.com
The daemon will run as the user that ran the script "setup-daemon.sh". In your case, that's probably "bg".

When you say that you are "unable to display [index.html]", what do you mean? You get an error? It displays incorrectly? You can't read the file?

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/a9248288-cbd5-45bc-a835-1fa4e81c721bn%40googlegroups.com.

vince

unread,
May 28, 2024, 6:51:06 PM5/28/24
to weewx-user
If you are doing a pip install, it will install and configure itself as the user 'pip' is run as.

For your other issue it is likely you neglected to add the webserver of your choice.  Just do "sudo systemctl add nginx" for one that works.

vince

unread,
May 28, 2024, 6:53:24 PM5/28/24
to weewx-user
sigh - that is "sudo apt-get install -y nginx" in my previous reply.  Sorry about the brain cramp.

bgra...@umw.edu

unread,
May 29, 2024, 4:30:58 PM5/29/24
to weewx-user
Thanks Vince and Tom. I’m still curious. Is group « weewx » necessary to be present? It wasn’t created with the pip install.
Also, I already have Apache2 installed. Can I simlink to that or is it better to have nginx? Thanks and much appreciated for all the work you have put into weewx!
Cheers,
Bob


vince

unread,
May 29, 2024, 4:50:10 PM5/29/24
to weewx-user
As I said, V5 pip runs as whatever unprivileged user you ran pip as, so no there is no required username. I installed as ‘pi’ so it runs as ‘pi’.

Any webserver works as long as the unprivileged user weewx runs as can write to the output directory you configured things to write to…and as long as the other unprivileged user yout webserver runs as can read those files.  There are many past threads and wiki and faq discussions of the many ways to set that up

Message has been deleted

michael.k...@gmx.at

unread,
May 30, 2024, 2:31:31 AM5/30/24
to weewx-user
With apache2 you can symlink /var/www/html/weewx -> /home/bg/weewx-data/public_html/ and browse your site on http://ip-of-the-pi/weewx, but you most likely have to change permissions to the home of the user "bg" first with sudo chmod a+rx /home/bg

bgra...@umw.edu

unread,
May 30, 2024, 10:38:55 AM5/30/24
to weewx-user
Thanks, Michael, that did it.
BG

Reply all
Reply to author
Forward
0 new messages