3 ms·
% cat ~/.ansiweatherrc location:Pittsburgh,Pa units:metric jim@lilly /home/jim/projects/external/ansiweather (master)[0] {+00% 58C} Mon 2013-10-
by jimktrains2 13y ago
% cat ~/.ansiweatherrc
location:Pittsburgh,Pa
units:metric
jim@lilly /home/jim/projects/external/ansiweather (master)[0] {+00% 58C} Mon 2013-10-21 15:39:50 0
% ./ansiweather
Current weather in Pittsburgh => 17.68 °C ☀ - Humidity => 33 % - Pressure => 1014 hPa
jim@lilly /home/jim/projects/external/ansiweather (master)[0] {+00% 59C} Mon 2013-10-21 15:39:52 0
% cat ~/.ansiweatherrc
location:Pittsburgh,Pa
units:imperial
jim@lilly /home/jim/projects/external/ansiweather (master)[0] {+00% 58C} Mon 2013-10-21 15:40:00 0
% ./ansiweather
Current weather in Pittsburgh => 61.89 °F ☀ - Humidity => 47 % - Pressure => 985.97 hPa
Interesting that the humidity and pressure are different when using different units (err, the humity and pressure are in the same units regardless of the units setting, but the values are different).
- mappu 13y agoGiven that 17.68 C is only 63.83 F, i think you just hit two different data points.
- jimktrains2 13y agoThat's my point. When you switch which units are used 2 different data points are used. (Though, I didn't say it that clearly.) I didn't even think to convert the temp though, good call.