Open vMarkus opened 5 years ago
can be ignored - someone helped me transforming the output to Latin1 in my script.
Leaving it open, maybe this is useful for someone else. If not please close :-)
@vMarkus I think it is a pretty useful feature, and should be implemented. iconv
and other tools alike are not always installed on the computer, where you access wttr.in from, so it would be really great to have such feature
Hi,
[tldr] please add an option so the output is presented in ISO-8859-1 (Latin1) format. For example this could be added to ?format section or a new option ?compatibility or ?charset [/tldr]
Background: I try to control blinds and shutters regarding on weather and wind condition. Unfortunately the scripting engine is only compatible with the mentioned character set ISO-8859-1 (Latin1).
So
+20°C ↖13 km/h 46%
becomeswhich screws up the values, too (Screenshot as copy & paste screws it up even further).
So wind indication could be
↑ south ↗ south-west → west ↘ north-west ↓ north ↙ north-east ← east ↖ south-east
or a shortened form of it like S, SW, ...I guess this will have some drawback on condition %c with the nice weather symbols on the other hand, but only when in compatibility mode the symbols like sunny, cloudy etc are not printed to the output - one would simply get a string of the condition.