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

Feature request: Temperature range on custom output #970

Open edlime opened 7 months ago

edlime commented 7 months ago

I love the custom output for its simple implementation.

c    Weather condition,
C    Weather condition textual name,
x    Weather condition, plain-text symbol,
h    Humidity,
t    Temperature (Actual),
f    Temperature (Feels Like),
w    Wind,
l    Location,
m    Moon phase šŸŒ‘šŸŒ’šŸŒ“šŸŒ”šŸŒ•šŸŒ–šŸŒ—šŸŒ˜,
M    Moon day,
p    Precipitation (mm/3 hours),
P    Pressure (hPa),
u    UV index (1-12),

D    Dawn*,
S    Sunrise*,
z    Zenith*,
s    Sunset*,
d    Dusk*,
T    Current time*,
Z    Local timezone.

JSON output is richer but I don't need most of the parameters and it doesn't support emojis (AFAIK).

I'm looking to display temperature ranges throughout the day like:

Hong Kong: ā›…ļø Partly cloudy +13Ā°C feels like +12Ā°C TempRange: 8Ā°C - 13Ā°C Sunrise: 06:55:11 Sunset: 18:26:11 Moon: šŸŒ• Wind: ā†˜22km/h Rainfall: 0.0mm Humidity: 77%

On another topic, I like v2 for the graphical representation of the temperature. It'll be great if it can be supported beyond the terminal with granular parameters, for example, configured to display one day or half day.