chubin / wttr.in

:partly_sunny: The right way to check the weather
https://wttr.in
Apache License 2.0
24.45k stars 1.1k forks source link

Add an option to use more compact ascii-icons #380

Open jose1711 opened 4 years ago

jose1711 commented 4 years ago

It would be nice to have an option to use small LCD 20x4 (or even 16x4) to show weather icons.

Here's the basic idea:

1........0.........0
   --\
   --/    Unknown
   \ .

   \ /    Prague
  = O =   Sunny 35 C
   / \    0mm

  _/`` /  Paris
(__)  o - Partly Cloudy
     / \  20 C, 0mm

  _/``\   Moscow
(__)__.)  Cloudy 19 C
          0mm

  _/``\   London
(__)__.)  Light Showers
, ‘ , ‘   18 C, 8mm

  _/``\   Dublin
(__)__.)  Heavy Showers
,‘,‘,‘,‘  16 C, 22mm

  _/``\   New York
(__)__.)  Light Snow Showers
* * * *   3 C, 3mm

  _/``\   Ottawa
(__)__.)  Heavy Snow Showers
**_**_**  2 C, 13mm

  _/``\   Bratislava
(__)__.)  Light Rain 11 C
  / / /   5mm

  _/``\   Tegucigalpa
(__)__.)  Heavy Rain 9 C
//_//_//  60mm

  _/``\   ...
(__)__.)  Light Sleet
* / * /

-_-_-_-   ...
- - - -   Fog
chubin commented 4 years ago

@jose1711 Jose, hi

Very cool icons! Thank you. We will integrate them. Do you want to have them only for the 0-days forecast first?

jose1711 commented 4 years ago

@chubin Thank you, Igor. Truth be told after discovering that my LCD display does not support the whole ASCII characters (see http://www.electronic-engineering.ch/microchip/datasheets/lcd/charset.gif for reference) I changed the approach and made 8 custom characters - each depicting one weather condition. It was quite a challenge to do in a 5x8 grid but the result is somewhat usable. Examples for consideration: obrázok obrázok obrázok

This may be a bit of a specific case but I can share those two - maybe for a contrib/ directory.

chubin commented 4 years ago

@jose1711 Jose, thank for the icons. Maybe you could give a short technical description of your project, for them who want to recreate it on their own? And than we could add it (together with the icons) the contrib/ or doc/ directory and add a link to README.md? Would it be possible?