Weather icon for fastfetch

I did a fastfetch rice and i need to add a weather icon


help

You could use a glyph an emoji or anything a font has to offer.

e.g :sun_behind_small_cloud:, :cloud:

and add it to your fastfetch jsonc

how do I copy it to the jsonc file

I cheated and used the fish config. Add it before the fastfetch line for it to be above fastfetch or below for it to be at the bottom.

set weather (curl -s 'wttr.in/denver?format=2')

set term_width (tput cols)

set text_length (string length $weather)
set padding (math (math $term_width - $text_length) / 2)

printf "%*s%s\n" $padding "" $weather

Using GitHub - chubin/wttr.in: ⛅ The right way to check the weather
Though this only really works with kitty

1 Like

it gives me this error

48.5: value not completely converted (can’t convert ‘.5’)
:partly_sunny: :thermometer:+8°C :wind_face:→4km/h

I had a error like that in alacritty cant really say why. As I said at the end I only got it to work in kitty. Though my configs might be why but its pretty messed up from a year of messing with it.
I didn’t mess with it at the time, but you can change the format parameter 1-3 or check the github there might be some other ways.

*Note since its fish you need ’ or " at the start and end.
image

1 Like

I use fish too , but I don’t use kitty , thanks for the suggestion though