Commit graph

42 commits

Author SHA1 Message Date
Igor Chubin
89abf1a55a
Merge pull request #906 from mataha/feat/fallback-glyphs
Introduce 'dumb' mode for terminals without fallback glyphs
2023-11-02 18:08:31 +01:00
Bruce Weirdan
1d2352e0f2
Add nushell agent 2023-10-29 12:41:30 +01:00
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 |
2023-08-09 19:02:39 +02:00
Igor Chubin
8f433de15a Split proxy access and errors logs 2022-10-26 08:41:20 +02:00
Igor Chubin
4e861802c0 Add PROXY_LOG_FILE to globals 2022-10-25 19:20:19 +02:00
Igor Chubin
c9974d2a4c Add httpx to plain-text agents (#707) 2022-03-26 19:32:19 +01:00
Igor Chubin
c40859505a Add xh to plain-text agents (#695) 2022-03-26 19:24:23 +01:00
Igor Chubin
5782f4f53e Add minor fixes 2021-10-30 17:47:43 +02:00
Igor Chubin
6927116794 Store missing translations in separate logs (#324) 2021-04-26 20:56:16 +02:00
Igor Chubin
896dc263a1 Add missing translations (#324) (#535) 2021-04-21 20:03:17 +02:00
Igor Chubin
e0cc061a64 Add fetch and aiohttp to PLAIN_TEXT_AGENTS (#586) 2021-03-15 15:02:53 +01:00
Emil Lerch
17e6e6c218
initial metno implementation 2020-10-08 16:24:19 -07:00
Igor Chubin
4a980be2f3 se pyphoon from PATH 2020-09-20 09:59:23 +02:00
Emil Lerch
3c16ac7993
support for ipinfo and ip to location ordering 2020-07-27 17:25:44 -07:00
Igor Chubin
64322d7b61 use WTTR_IP2LOCATION_KEY_FILE ot override ip2location key location 2020-05-24 19:19:36 +02:00
Igor Chubin
fbf4aad445 use WTTR_WWO_KEY_FILE to override WWO keyfile location (#238) 2020-05-24 19:09:24 +02:00
Igor Chubin
e1bd1bf4b4 lib/globals.py clean up 2020-05-07 23:38:45 +02:00
Igor Chubin
5e2ae43c96 updated from master 2020-05-01 18:48:14 +02:00
Igor Chubin
26a5fa533a useragents fixed 2020-04-27 19:03:27 +02:00
Igor Chubin
a3bf070bb3 added iterm2 demo page 2020-04-11 18:15:29 +02:00
Joel Bennett
7801bd0468
Add PowerShell user agent
PowerShell web and rest cmdlets use an agent like `Mozilla/5.0, (Windows NT 10.0; Microsoft Windows 10.0.18362; en-US), PowerShell/7.0.0`
2020-04-10 15:19:27 -04:00
Igor Chubin
e2cebf74f2 store big lru cache objects in files 2020-04-05 11:50:58 +02:00
Igor Chubin
826cedf1f0 moved wttr.py to lib/view/ 2020-04-04 18:04:27 +02:00
Igor Chubin
8f7d3140ca handle WTTR_* environment variables 2019-05-10 17:46:44 +02:00
Igor Chubin
8142e30e53 how to configure ip2location (#296) 2019-05-09 17:40:22 +02:00
Igor Chubin
e41d6e629e
Merge pull request #236 from Aversiste/patch-1
Add OpenBSD ftp(1) to the PLAIN_TEXT list
2018-12-09 19:52:37 +01:00
cclauss
7c47cd7d0c Modernize Python 2 code to get ready for Python 3 2018-12-02 09:41:29 +01:00
Tristan Le Guern
0f27ec700e
Add OpenBSD ftp(1) to the PLAIN_TEXT list
The [ftp](http://man.openbsd.org/ftp)(1) command is the default tool to fetch files over HTTP on OpenBSD. It could be nice to add it to the PLAIN_TEXT_AGENTS list so installing curl or wget is not necessary.

Its user-agent is, as described in the man page, “OpenBSD ftp”.
2018-11-06 13:05:12 +00:00
Igor Chubin
eed7c3597d added new function: debug_log() 2018-11-02 18:11:49 +01:00
Igor Chubin
95e1f61a40 moved limits to globals.py (fixes #233) 2018-11-01 18:23:32 +01:00
Igor Chubin
39ca1cd325 wwo key is in ~/.wwo.key 2018-10-27 23:54:37 +02:00
Igor Chubin
4dfa7f5ecc moved log and cache directory 2018-10-27 00:17:16 +02:00
Igor Chubin
1df8c57bc2 moved api-cache to cache 2018-10-26 19:46:42 +02:00
Igor Chubin
0c67b15e8a ip2location fixes 2018-10-26 19:35:13 +02:00
Igor Chubin
10f5aa579c bin/proxy.py clean up 2018-10-23 20:04:42 +02:00
Igor Chubin
bd10befae4 pyphoon moved out of wttr.in/ 2018-10-23 18:53:34 +02:00
Igor Chubin
a61746534d separated location related function 2018-10-07 12:11:59 +02:00
Igor Chubin
eb8b1cc92d globals.py clean up 2018-10-05 20:37:16 +02:00
Igor Chubin
fcc7b79272 new global variables 2018-10-05 20:19:27 +02:00
Igor Chubin
0c96e97dd3 added LISTEN_HOST and LISTEN_PORT 2018-10-03 22:46:23 +02:00
Igor Chubin
489aec0a4b help translation support 2018-10-03 18:59:17 +02:00
Igor Chubin
303b2465c7 added lib/globals.py 2017-03-31 20:38:35 +02:00