chubin / wttr.in

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

boarder shifting problem #45

Open MoritzFago opened 8 years ago

MoritzFago commented 8 years ago
Weather for City: Kiel, Germany

     \   /     Sunny
      .-.      21 – 22 °C     
   ― (   ) ―   ↖ 11 km/h      
      `-’      10 km          
     /   \     0.0 mm         
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤ Thu 23. Jun ├───────────────────────┬──────────────────────────────┐
│           Morning            │             Noon      └──────┬──────┘    Evening            │            Night             │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│     \   /     Sunny          │  _`/"".-.     Patchy rain ne…│  _`/"".-.     Moderate or he…│  _`/"".-.     Moderate or he…│
│      .-.      21 – 22 °C     │   ,\_(   ).   28 – 30 °C     │   ,\_(   ).   27 – 28 °C     │   ,\_(   ).   24 – 25 °C     │
│   ― (   ) ―   ↖ 11 – 19 km/h │    /(___(__)  ↖ 24 – 25 km/h │    /(___(__)  ↑ 11 – 26 km/h │    /(___(__)  ↖ 14 – 31 km/h │
│      `-’      10 km          │      ‘ ‘ ‘ ‘  10 km          │    ‚‘‚‘‚‘‚‘   7 km           │    ‚‘‚‘‚‘‚‘   7 km           │
│     /   \     0.0 mm | 0%    │     ‘ ‘ ‘ ‘   0.1 mm | 83%   │    ‚’‚’‚’‚’   4.1 mm | 92%   │    ‚’‚’‚’‚’   2.8 mm | 91%   │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤ Fri 24. Jun ├───────────────────────┬──────────────────────────────┐
│           Morning            │             Noon      └──────┬──────┘    Evening            │            Night             │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│  _`/"".-.     Patchy light r…│      .-.      Moderate or he…│  _`/"".-.     Thundery outbr…│  _`/"".-.     Patchy rain ne…│
│   ,\_(   ).   23 – 24 °C     │     (   ).    26 – 27 °C     │   ,\_(   ).   23 – 24 °C     │   ,\_(   ).   21 °C          │
│    /(___(__)  ↑ 8 – 15 km/h  │    (___(__)   ↑ 14 – 17 km/h │    /(___(__)  ↖ 9 km/h       │    /(___(__)  → 12 – 23 km/h │
│     ⚡‘ ‘⚡‘ ‘  10 km          │   ‚‘⚡‘‚⚡‚‘    9 km           │     ⚡‘ ‘⚡‘ ‘  9 km           │      ‘ ‘ ‘ ‘  9 km           │
│     ‘ ‘ ‘ ‘   1.9 mm | 62%   │   ‚’‚’⚡’‚’    1.0 mm | 100%  │     ‘ ‘ ‘ ‘   0.1 mm | 63%   │     ‘ ‘ ‘ ‘   0.6 mm | 19%   │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
                                                       ┌─────────────┐                                                       
┌──────────────────────────────┬───────────────────────┤ Sat 25. Jun ├───────────────────────┬──────────────────────────────┐
│           Morning            │             Noon      └──────┬──────┘    Evening            │            Night             │
├──────────────────────────────┼──────────────────────────────┼──────────────────────────────┼──────────────────────────────┤
│  _`/"".-.     Patchy rain ne…│      .-.      Patchy light r…│      .-.      Light rain     │  _`/"".-.     Patchy rain ne…│
│   ,\_(   ).   20 °C          │     (   ).    18 – 19 °C     │     (   ).    18 – 19 °C     │   ,\_(   ).   12 °C          │
│    /(___(__)  ↘ 12 – 14 km/h │    (___(__)   ↘ 13 – 18 km/h │    (___(__)   ↘ 14 – 18 km/h │    /(___(__)  ↘ 13 – 25 km/h HERE THE BOARDER SHIFTS RIGHT│
│      ‘ ‘ ‘ ‘  10 km          │     ‘ ‘ ‘ ‘   10 km          │     ‘ ‘ ‘ ‘   10 km          │      ‘ ‘ ‘ ‘  10 km          │
│     ‘ ‘ ‘ ‘   0.1 mm | 78%   │    ‘ ‘ ‘ ‘    1.0 mm | 100%  │    ‘ ‘ ‘ ‘    1.0 mm | 100%  │     ‘ ‘ ‘ ‘   0.1 mm | 74%   │
└──────────────────────────────┴──────────────────────────────┴──────────────────────────────┴──────────────────────────────┘
romanesko commented 8 years ago

Same problem. Screenshot: http://take.ms/BNWqq

OSX 10.11.5 Google Chrome 51.0.2704.103 (64-bit) Default monotype font: Monaco

Dr-Turner commented 8 years ago

Mine's off too but in a different way: https://i.imgur.com/dg3RgCE.png

Windows 10 14393.82; Chrome 52.0.2743.116 m (64-bit)

pjvandehaar commented 7 years ago

pre{font-family: Menlo;} makes this work great on OSX using Firefox, Chrome, and Safari. Works great for me with greasemonkey/tampermonkey.

Could Menlo be added into the list at http://wttr.in/files/style.css? Adding Menlo last solves the alignment problem. Making Menlo first makes the boxes continuous. Here it is withpre{font-family: Menlo,Lucida Sans Typewriter,Lucida Console,monaco,Bitstream Vera Sans Mono,monospace;}:

screen shot 2016-12-11 at 4 06 30 am

(BTW, thanks for wttr.in! I'd PR, but the site is different from the repo for me)

chubin commented 7 years ago

@pjvandehaar Thank you for the suggestion. I added Menlo and "DejaVu Sans Mono" (thanks to @Artanicus in #22) and it is by far better now. But not everywhere. In Windows it is still bad: bad (Firefox), very bad (Opera), ugly (Chrome). There are some examples: https://twitter.com/Noooooovik/status/832190050297376768

@romanesko @Dr-Turner Please recheck if it is better now

@pjvandehaar The code in the repo on github is indeed not updated (see #71). I hope I can update it soon. There are also some patches/fixes for wego to integrate upstream (that's why I didn't close some issues here, though they are already fixed in the code running on wttr.in).

romanesko commented 7 years ago

Borders are fine now for Chrome, Safari and console in OSX. Thanks!)