mataha
9d23087ca4
Introduce 'dumb' mode for terminals without fallback glyphs
...
Windows' native terminal, `conhost.exe`, lacks font fallback support.
This causes some of the characters used in `wttr.in`'s terminal output
to not be displayed at all - placeholders are supplied in their place.
This PR provides a mode that, when enabled, translates missing glyphs
to ones available on every platform without (*I believe*) making any
compromises regarding their meaning; see translation table below.
| Character | C-UCP | Replacements | R-UCPs |
| :--------------- | :----: | :------------------------------------ | :----: |
| NORTH WEST ARROW | U+2196 | BOX DRAWINGS LIGHT ARC DOWN AND LEFT | U+256E |
| NORTH EAST ARROW | U+2197 | BOX DRAWINGS LIGHT ARC DOWN AND RIGHT | U+256D |
| SOUTH EAST ARROW | U+2198 | BOX DRAWINGS LIGHT ARC UP AND RIGHT | U+2570 |
| SOUTH WEST ARROW | U+2199 | BOX DRAWINGS LIGHT ARC UP AND LEFT | U+256F |
| HIGH VOLTAGE SIGN | U+26A1 | BOX DRAWINGS LIGHT DOWN AND RIGHT + UP AND LEFT | U+250C + U+2518 |
1 year ago
Igor Chubin
cf70167529
Switch geolocation client to the internal service
1 year ago
Ken MacInnis
12c1f1639e
Nice update to preconfig formats
2 years ago
Igor Chubin
e7e532b24d
Merge pull request #730 from Skillkiller/location-not-found
...
Add not found header after postprocessing
2 years ago
Igor Chubin
3cbf7a9349
Add UV Index support (one-line format)
2 years ago
Sebastian Espei
856a67a474
Add not found header after postprocessing
...
The postprocessing method assumes that the sout data is always delivered in the same format. If the location is not found, the passed format deviates and this then leads to an incorrect behavior => incorrect return value.
Close #729
Close #728
3 years ago
Nathaniel Evan
556559a151
Make v2d use WEATHER_SYMBOL_WI_DAY
3 years ago
Nathaniel Evan
2f18e8ac02
Enables Nerd Font for "Weather:" line with v2d or v2n
3 years ago
blakadder
9dcc90c666
remove hourly from weather for JSON j2 format
...
#661 related
Pardon my Python, I'm still a novice.
This is basically what I was thinking, strip out the hourly data completely and leave the rest.
3 years ago
Igor Chubin
50670c677d
Add USCS support for v2 ( #376 )
3 years ago
Igor Chubin
4f7b182e4c
Add j2 view ( #661 )
3 years ago
Igor Chubin
ed3a322f77
Add minor fix for plain-text weather symbols ( #583 )
4 years ago
Joseph
edd1e1e3dd
Add new function: render_condition_plain
4 years ago
Joseph
747740997e
Add optional argument 'plain' to render_condition
4 years ago
Igor Chubin
10392a878f
Add support for T and Z ( #566 )
4 years ago
Igor Chubin
49daae6f40
Use real temperature instead of feel-like in v2 ( #562 )
4 years ago
Igor Chubin
d551735021
Handle 404 properly ( #500 , #459 , #372 )
4 years ago
Igor Chubin
74283de5f5
Bind v3
4 years ago
Igor Chubin
79eea95904
moonphase depends on the hemishphere ( #247 )
4 years ago
Igor Chubin
05f04fc272
single line: now newline for %-notation by default ( #496 )
4 years ago
Igor Chubin
5b9ccb31d5
format=j1: output in utf8
4 years ago
Igor Chubin
ac62bb7387
prometheus: removed help lines duplicates ( #446 )
4 years ago
Igor Chubin
dabfc55c8b
prometheus format code clean up ( #446 )
4 years ago
Manuel Rüger
cc46d78442
prometheus: Add timestamp, astronomy fields
4 years ago
Manuel Rüger
5156b9e589
prometheus: Proper help format
4 years ago
Igor Chubin
d0023d7940
yet another typo fixed ( #446 , #469 )
4 years ago
Igor Chubin
6c7cd5a367
typo fixed ( #446 , #469 )
4 years ago
Manuel Rüger
5b7e10f7c6
prometheus: Add help descriptions, improve metric names
4 years ago
Manuel Rüger
1857581cce
Fix prometheus output
4 years ago
Igor Chubin
a573ae27eb
initial naïve Prometheus implementation ( #446 )
4 years ago
Igor Chubin
b0a9d27a20
v2: fixed alignment problems for nerdphonts ( #363 )
4 years ago
Igor Chubin
949f601263
Merge pull request #463 from spywhere/feel-like
...
lib/view/line.py: add feel like temperature
4 years ago
Igor Chubin
228b93aad5
nerd fonts: initial support of v2d/v2n view ( #363 )
4 years ago
Sirisak Lueangsaksri
f312641f1a
lib/view/line.py: add feel like temperature
4 years ago
Igor Chubin
f488160294
even preciser wind direction visualization ( #455 )
5 years ago
Igor Chubin
bac771051a
v2?T: remve ansi codes ( #202 )
5 years ago
Igor Chubin
ce93b59a9e
minor fix
5 years ago
Igor Chubin
d7afd94c31
v2: fixed bug with location behind polar circle
5 years ago
Igor Chubin
270d77dd5f
line mode: astro funcs fixed
5 years ago
Igor Chubin
ddc08d6fba
%c: added spaces after weather confidition when needed ( #440 )
5 years ago
Igor Chubin
12d3ea2035
view/wttr.py clean up
5 years ago
Igor Chubin
6c7600c309
removed space before km/h ( #433 )
5 years ago
Igor Chubin
413f23bec3
/Moon language fixed
5 years ago
Igor Chubin
acb761be0d
v2 html: minor fix
5 years ago
Igor Chubin
0d5f6c298c
v2+png: new experimental query encoding
5 years ago
Igor Chubin
e041280f27
do not pass query to view functions
5 years ago
Igor Chubin
2ef8435b36
line.py: use new astral lib
5 years ago
Igor Chubin
40ad45ad03
minor fixes
5 years ago
Igor Chubin
71b3a70e02
view=format
5 years ago
Igor Chubin
9f5edb963e
v2 html
5 years ago