Locale request for weather.
marfree
Status: New User - Welcome
Joined: 29 Jun 2015
Posts: 1
Reply Quote
As a feature request Would it be possible to take locale info consideration eg:

Where:
# locale | grep LC_IDENTIFICATION=
LC_IDENTIFICATION="en_CA.UTF-8"

Actual Result:
# inxi -wxxxW V0N1G0
Weather: Conditions: 79 F (26 C) - Partly Cloudy Wind: From the SSW at 8 MPH Humidity: 65%
Pressure: 29.94 in (1014 mb) Location: Bowen Island BC (CA) Altitude: -3048 ft
Time: June 29, 7:59 PM PDT Observation Time: June 29, 7:00 PM PDT

Expected Result:
# inxi -wxxxW V0N1G0
Weather: Conditions: 26 C - Partly Cloudy Wind: From the SSW at 7 KN Humidity: 65%
Pressure: 1014 mb Location: Bowen Island BC (CA) Altitude: -929 m
Time: June 29, 7:59 PM PDT Observation Time: June 29, 7:00 PM PDT

Thank you.
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4127
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
I get asked this now and then, but unfortunately the weather data source is US based and they don't offer alternate metric output formats, it's not dynamic in terms of formatting.

Trying to guess by parsing and replacing would be the road to madness since the data is actually just strings which can vary widely.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours