Images are missing.

98 views
Skip to first unread message

O S

unread,
Jan 31, 2026, 10:46:06 AM (3 days ago) Jan 31
to weewx-user
Hello all,

I got in a mess with the Belchertown skin settings so have completely removed it and reinstalled (a couple of times now)

Each time I reinstall, the images are missing form "Sun & Moon", as per below:

Screenshot from 2026-01-31 15-39-08.png
If I right click on one of the placeholders for the image and select "open image in new tab"

I get this in the address bar:

... and a 404 not found message.

I have: HTML_ROOT = /var/www/html/weewx/belchertown set in weewx.conf

I can find the images in: etc/weewx/skins/Belchertown/images, like:

etc/weewx/skins/Belchertown/images/sunrise.png
etc/weewx/skins/Belchertown/images/sunset.png

Does the uppercase "B" have something to do with this? All other page elements look okay.

Like I say, I have uninstalled/reinstalled the skin several times with no change.

Thanks,
Nick.

salinois

unread,
Jan 31, 2026, 11:03:25 AM (3 days ago) Jan 31
to weewx...@googlegroups.com

hello,

that, it is the conf inside the skin : weewx/skins/Belchertown/images/

but on the web site , it is public_html/belchertown/images/

Patrick

--
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 visit https://groups.google.com/d/msgid/weewx-user/a03549d6-67ce-4299-b2f7-5bc068b0a484n%40googlegroups.com.

O S

unread,
Jan 31, 2026, 11:12:19 AM (3 days ago) Jan 31
to weewx-user
Hello Patrick,

Yes, if I ssh in to the server, I can see the images at the following paths:

etc/weewx/skins/Belchertown/images/sunrise.png
etc/weewx/skins/Belchertown/images/sunset.png

But the web browser appears to be looking here:


I also found this, which doesn't seem right:

nick@weewx-pi:/var/www/html $ cd weewx/
nick@weewx-pi:/var/www/html/weewx $ ls -l
ls: cannot open directory '.': Permission denied

Not sure if that is related but could there also be permission issues?

Thanks,
Nick.

Vince Skahan

unread,
Jan 31, 2026, 11:53:47 AM (3 days ago) Jan 31
to weewx-user
ssh into the weewx pi and run 'id' and you will likely see that your account 'nick' is not in a unix group that has permissions to read /var/www/html/weewx/belchertown

Assuming it is group 'weewx', you would need to run "sudo usermod -aG weewx nick" and log out/in again.   For a dpkg installation you'd want to add yourself to group 'weewx' anyway so you can edit things in /etc/weewx without needing to use sudo.

O S

unread,
Jan 31, 2026, 12:25:00 PM (3 days ago) Jan 31
to weewx-user
Hello Vince,

Thank you and id gives me:

uid=1000(nick) gid=1000(nick) groups=1000(nick),4(adm),20(dialout),24(cdrom),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),102(input),105(render),110(netdev),111(weewx),993(gpio),994(i2c),995(spi)

I'm not sure what a dpkg installation is, I used the sudo apt install weewx method to install.

So, can I run the sudo usermod -aG weewx nick command?

Thanks,
Nick

Vince Skahan

unread,
Jan 31, 2026, 12:28:44 PM (3 days ago) Jan 31
to weewx-user
apt is the tool used to install debian packages, dpkg is the other older tool. Sorry I use the two terms sometimes.

Yes try running that command.

O S

unread,
Jan 31, 2026, 12:44:38 PM (3 days ago) Jan 31
to weewx-user
Yes, apt was the way I installed.

I ran that command, restarted, but still no images for sunrise / sunset.

Thank you.
Nick

Vince Skahan

unread,
Jan 31, 2026, 1:57:54 PM (3 days ago) Jan 31
to weewx-user
I can't even guess what you did or how you got to wherever you are now on the system.

If you use 'weectl extension' to uninstall then reinstall the skin, it will do the right thing after weewx is restarted when the reports run.

If you fiddle with things manually and don't use weectl, your mileage might vary.

O S

unread,
Jan 31, 2026, 3:01:26 PM (3 days ago) Jan 31
to weewx-user
Thanks, Vince,

Yes, not sure how I got to where i did. I have already used weectl, but I'll give it one more go - if that doesn't work, I'll likely reinstall the whole thing, I'm guessing that's:

Reinstall WeeWX
Reinstall the driver
Overwrite weewx.sdb?

I'll let you know if the reinstall works.

O S

unread,
Jan 31, 2026, 3:10:58 PM (3 days ago) Jan 31
to weewx-user
OK, I did this:

nick@weewx-pi:/var/www/html/weewx $ sudo systemctl restart weewx
nick@weewx-pi:/var/www/html/weewx $ sudo weectl extension install ~/downloaded-extensions/weewx-belchertown-new-1.7beta1-new-belchertown.tar.gz
Using configuration file /etc/weewx/weewx.conf
Install extension '/home/nick/downloaded-extensions/weewx-belchertown-new-1.7beta1-new-belchertown.tar.gz' (y/n)? y
Extracting from tar archive /home/nick/downloaded-extensions/weewx-belchertown-new-1.7beta1-new-belchertown.tar.gz
Saving installer file to /etc/weewx/bin/user/installer/Belchertown
Saved copy of configuration as /etc/weewx/weewx.conf.20260131200641
Finished installing extension Belchertown from /home/nick/downloaded-extensions/weewx-belchertown-new-1.7beta1-new-belchertown.tar.gz
nick@weewx-pi:/var/www/html/weewx $ sudo systemctl restart weewx
nick@weewx-pi:/var/www/html/weewx $ sudo weectl report run Belchertown
Using configuration file /etc/weewx/weewx.conf
The following reports will be run: Belchertown
Generating as of last timestamp in the database.
Done.

Still no images so I think I'll reinstall on another SD card.

O S

unread,
Jan 31, 2026, 3:40:14 PM (3 days ago) Jan 31
to weewx-user
OK, another update.

I installed WeeWX on another R-Pi, using another SD card, installed the skin, visited the page and there are still no images. What is this?? :O

Vince Skahan

unread,
Jan 31, 2026, 5:19:44 PM (3 days ago) Jan 31
to weewx-user
The problem is a bug in the hacked non-Belchertown Belchertown you are using.

If you look at skin.conf you'll see:
     copy_once = favicon.ico, images  /*, json/index.html, js/index.html, js/responsive-menu.js, robots.txt
                                    ^^
                                    ||
                                    ||

See the two extra spaces ?  It should be images/* with no spaces for that item.

O S

unread,
Jan 31, 2026, 6:38:55 PM (3 days ago) Jan 31
to weewx-user
Vince, Wow that is seriously impressive! How on earth did you find that??

Screenshot from 2026-01-31 23-37-40.png
Thank you very much indeed :)
Nick.

Vince Skahan

unread,
Jan 31, 2026, 6:57:23 PM (3 days ago) Jan 31
to weewx-user
I looked in skin.conf for the copy once line.

O S

unread,
Jan 31, 2026, 7:10:08 PM (3 days ago) Jan 31
to weewx-user
I wouldn't have known where to start, thanks again.

Do I need to tell the skin author, or something?

Vince Skahan

unread,
Jan 31, 2026, 7:32:21 PM (3 days ago) Jan 31
to weewx-user
Open an issue on their github page where you downloaded the skin from.

O S

unread,
Feb 1, 2026, 7:03:25 AM (2 days ago) Feb 1
to weewx-user
Thanks and I will do that :)

salinois

unread,
Feb 1, 2026, 11:14:45 AM (2 days ago) Feb 1
to weewx...@googlegroups.com

hello Nick,

Here are the permissions on my end for these files.

Patrick

O S

unread,
Feb 1, 2026, 4:06:47 PM (2 days ago) Feb 1
to weewx-user
That's great, thank you, Patrick :)
Reply all
Reply to author
Forward
0 new messages