Mr.Red
October 12, 2025, 6:25pm
1
Because @malys brought to my attention that this is the official way to share/distribute libraries in SilverBullet.
Here is my collection of silverbullet-libraries-repo of useful widgets, functions & styles.
Awesome SilverBullet libraries
Currently there are only a few ones, but in the future I might upload more.
Available libraries
You will also find at the end of each library the URL to the corresponding discussions.
11 Likes
Mr.Red
October 14, 2025, 8:54pm
2
Added a Weather Widget for OpenWeatherMaps to my silverbullet-libraries
#meta
# Weather Widget for OpenWeatherMaps.org
## Configuration
Get your OpenWeatherMap API KEY from [OpenWeatherMap Website](https://home.openweathermap.org/api_keys). If you don’t have one, you can get one with the free plan.
Setup your **apiKey** (required⚠️) and the other optional keys in your configuration page using:
```
config.set( "owm", {
apiKey = "YOUR_API_KEY", --required ⚠️
refresh = 30, --optional (minutes)
defLocation = "Berlin" --optional (req. for def widget)
})
```
## Usage
You have three slash command options:
This file has been truncated. show original
You will need a free OWM API_KEY for it to work, but I found it more reliable than other free weather API’s.
I think I over engineered the functions a little with three different slash commands.
Feel free to try it and leave your opinions below.
2 Likes
Better add a space _ after ? or use ?
and %s %s → %s%s :
local owm_weather = string.format("🌡️%.1f°C 💧%d%% 🍃%s%.0f km/h %s%s ℹ️%s 🌎%s,%s", owm.temp, owm.hum, owm.wdir, owm.wind, owm.icon, owm.cond, os.date("%H:%M", owm.timestamp), owm.city, owm.country )
Mr.Red
October 22, 2025, 1:22pm
4
can you send a screenshot how it looks on your display?
because on mine without space and with the “,” look the better imho:
Current:
your proposal:
and regarding the globe emoji, i didn’t wanted to be exclusive (and let the other half of the planet unrepresented )
that’s why i chose the more general & neutral globe:
Oh, maybe that’s font-related?
About , it is indeed better to choose interms of eleminating the ambiguity.
before:
after:
Not a big problem, some personal tweaking is ok.
Mr.Red
October 22, 2025, 5:20pm
6
yeah that looks definitely font related.
about the tweaking: i try to make the libraries updatable, so you don’t have to change anything inside the library, but that gave me an idea to cook up something. Maybe i could add some config.set options for the format too, so you can chose what is visible. I have something like this in mind:
temp = true,
hum = false,
wind = true,
last_cache = true,
location = false,
custom_emojis = {“ ”,“ ”,“ ”,“ ”,“ ”}
because not everybody wants to know the windspeed, last_cache time or humidity. this could make it much more customizable, and aligned with personal preferences.
1 Like