wttr.in icon indicating copy to clipboard operation
wttr.in copied to clipboard

Configurable background color

Open hymie0 opened this issue 6 years ago • 9 comments

TODO

  • [x] background for PNG images
  • [ ] background for HTML
  • [ ] background for ANSI

Background must be specified using parameter background=

Details

I just want to say that this is awesome.

However, the color scheme expects the terminal to be black, and I prefer a white screen. I can't see some of the pictures or the temperature because it draws bright-yellow characters on the white background.

Can you create an option to specify "white background, use other colors" ?

hymie0 avatar May 29 '18 19:05 hymie0

OK, so I just found the ?I option which works for the temperature and the weather image, but the wind speed is still printed in bright colors. Can that be adjusted?

hymie0 avatar May 29 '18 19:05 hymie0

It would be nice if there were an option to set a background color of your choice. Then you would be able to show a weather on a black background despite you have a white background terminal.

dmgr avatar Jun 10 '20 10:06 dmgr

It is a good idea, it is related to #425

chubin avatar Jun 11 '20 22:06 chubin

bump

midzer avatar Feb 10 '21 12:02 midzer

@midzer you want to have it for PNG or for the terminal?

chubin avatar Feb 14 '21 21:02 chubin

@chubin I think it might come handy for light websites using wttr-switcher, so PNG

midzer avatar Feb 14 '21 22:02 midzer

@midzer PNG Images background configuration parameter was added. You can configure it with background=, e.g.:

https://wttr.in/Munich_background=007777.png

chubin avatar Apr 05 '21 11:04 chubin

When I set white background, ie https://wttr.in/Munich_background=FFFFFF.png, the font is very light and almost not readable.

midzer avatar Apr 05 '21 11:04 midzer

Try to use inverted colors for foreground: https://wttr.in/Munich_I_background=FFFFFF.png

chubin avatar Apr 05 '21 11:04 chubin