How to add more image files to the Belcherown skin?

177 views
Skip to first unread message

Ben W.

unread,
Nov 24, 2024, 11:38:08 AM11/24/24
to weewx-user
Hello!
I am using the Belchertown skin, and noticed that some conditions do not render the forecast images correctly. As it turns out, it seems I am missing some of the images in this directory (e.g. drizzle.png.)

I cannot seem to figure out how to add the missing images to this location. Any suggestions? I am running WeeWx on a RPi 5.

/etc/weewx/skins/Belchertown/images $ ls
aeris-icon-list.json  index.html               partly-cloudy-night.png  station168.png  sunrise.png       windy.png
clear-day.png         mostly-clear-day.png     rain.png                 station192.png  sunset.png
clear-night.png       mostly-clear-night.png   sleet.png                station48.png   thunderstorm.png
cloudy.png            mostly-cloudy-day.png    snowflake-icon-15px.png  station72.png   tornado.png
fog.png               mostly-cloudy-night.png  snow.png                 station96.png   unknown.png
hail.png              partly-cloudy-day.png    station144.png           station.png     wind.png



Thanks!
Message has been deleted

Karen K

unread,
Nov 24, 2024, 1:11:17 PM11/24/24
to weewx-user
weathericons

To use one of those icons you have to update aeris-icon-list.json and to convert the files from SVG to PNG.

Ben W.

unread,
Nov 24, 2024, 5:48:11 PM11/24/24
to weewx-user
Hypothetically, if someone didn't know how to do that, where would they go to update that json file?

vince

unread,
Nov 24, 2024, 6:15:47 PM11/24/24
to weewx-user
Hypothetically, they would learn how to use the 'find' command from a shell and look in the Belchertown skin directory for that file.  If they didn't know where that directory was, they might try looking in the "where to find things" section of the weewx users guide for further guidance.

Karen K

unread,
Nov 25, 2024, 3:15:51 AM11/25/24
to weewx-user
Ben W. schrieb am Sonntag, 24. November 2024 um 23:48:11 UTC+1:
Hypothetically, if someone didn't know how to do that, where would they go to update that json file?


In the list of files you provided in your first post, this file was included. So I assumed you know where to find it. And if you could edit weewx.conf, I would assume you can edit aeris-icon-list.json, too, as this is a text file, too.
 

Ben W.

unread,
Nov 25, 2024, 9:11:07 AM11/25/24
to weewx-user
When I run the ls command, I do not see drizzle.png listed. I accessed the aeris-icon-list.json file via sudo nano, and there were ~115 rows in the stanza including the drizzle. Sample text from that json:


    "cold": "clear-day",
    "coldn": "clear-night",
    "drizzle": "drizzle",
    "drizzlen": "drizzle",
    "dust": "fog",
    "dustn": "fog",

Using the find command returns 'No such file or directory' for drizzle.png.

Thanks!

David Hathaway

unread,
Nov 25, 2024, 9:56:46 AM11/25/24
to weewx-user
Ben,

If you look here, there are a lot of images to download:

https://github.com/poblabs/weewx-belchertown/tree/master/skins/Belchertown/images

Dave

Ben W.

unread,
Nov 26, 2024, 8:42:50 AM11/26/24
to weewx-user
Thank you!
Reply all
Reply to author
Forward
0 new messages