mzsade wrote:You have always been my inspiration when it comes to all things Conky, this tilt towards minimalism is something i've acquired from @HOAS of Crunchbang forums fame, and even though i have none of his grasp of Linux i've had a fair amount of success in aping him.
A sed related site i recently exploited for my conky;
http://www.folkstalk.com/2013/03/sed-re ... mples.html
Thank you for the kind words. Do yourself a favour
and at least check out Teo's scripts; No matter how much info they grab with one wget call --- you can pick and choose what information you want to show. ie: a little - a lot and by a lot when it come to the Wunderground script - a lot is a LOT.
I agree about HoaS - wish I had half the knowledge he has. He's at BunsenLabs now, the continuation of #!
Minimum huh ... check out "inxi"
-w for "local" weather - your ISP
-W for weather in another location
Code: Select all
06 Feb 16 @ 15:04:16 ~
$ inxi -w
Weather: Conditions: 84 F (29 C) - Partly Cloudy Time: February 6, 3:25 PM ART
06 Feb 16 @ 15:25:13 ~
$ inxi -W Mumbai,India
Weather: Conditions: 75 F (24 C) - haze Time: February 6, 11:55 PM IST
06 Feb 16 @ 15:25:36 ~
$
And then there is the -x options (only showing how it applies to weather here):
Code: Select all
-w Local weather data/time. To check an alternate location, see: -W <location>. For extra weather data
options see -x, -xx, and -xxx.
-W <location> Supported options for <location>: postal code; city, state/country; latitude/longitude. Only
use if you want the weather somewhere other than the machine running inxi. Use only ascii characters,
replace spaces in city/state/country names with '+'. Example: inxi -W new+york,ny
-x Adds the following extra data (only works with verbose or line output, not short form):
-w -W Wind speed and time zone (-w only).
-xx Show extra, extra data (only works with verbose or line output, not short form):
-w -W Humidity, barometric pressure.
-xxx Show extra, extra, extra data (only works with verbose or line output, not short form):
-w -W Location (uses -z/irc filter), weather observation time, wind chill, heat index, dew point (shows
extra lines for data where relevant).
as in:
Code: Select all
06 Feb 16 @ 15:29:36 ~
$ inxi -xxxw
Weather: Conditions: 84 F (29 C) - Partly Cloudy Wind: From the SE at 17 MPH Humidity: 66%
Pressure: 29.98 in (1015 mb) Heat Index: 90 F (32 C)
Location: Buenos Aires 07 (ARG) Altitude: 6 ft
Time: February 6, 3:29 PM ART (America/Argentina/Buenos_Aires) Observation Time: February 6, 3:00 PM ART
06 Feb 16 @ 15:29:44 ~
$ inxi -xxxW Mumbai,India
Weather: Conditions: 75 F (24 C) - haze Wind: From the WNW at 5 MPH Humidity: 61%
Pressure: 29.95 in (1014 mb) Location: Mumbai (IN) Altitude: 14 ft
Time: February 7, 12:00 AM IST Observation Time: February 6, 11:30 PM IST
06 Feb 16 @ 15:30:04 ~
$
But in conky you say ... now this I picked up here in LinuxMint I think - either way,
not my idea, I'm just trying to tweak it so it will always work:
Code: Select all
TEXT
${alignc}INXI Current Weather
${color5}Buenos Aires, Argentina${color}${execi 600 inxi -xxxw | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}'}
${color5}Mumbai, India${color}${execi 600 inxi -xxxW Mumbai,India | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}' | awk '{gsub(/Time:/,"\n&");print}' | awk '{gsub(/Observation/,"\n&");print}'}
---- 2x
${color5}Buenos Aires, Argentina${color}${execi 600 inxi -xxw | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}'}
---- 1x
${color5}Buenos Aires, Argentina${color}${execi 600 inxi -xw | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}'}
---- no x
${color5}Buenos Aires, Argentina${color}${execi 600 inxi -w | sed -n 1,2p | cut -c12- | awk '{gsub(/Conditions:/,"\n&");print}' | awk '{gsub(/ - /,"\n&");print}' | awk '{gsub(/Humidity:/,"\n&");print}' | awk '{gsub(/Wind:/,"\n&");print}' | awk '{gsub(/Gusting/,"\n&");print}' | awk '{gsub(/Wind Chill:/,"\n&");print}'| awk '{gsub(/Heat Index:/,"\n&");print}' | awk '{gsub(/Location:/,"\n&");print}' | awk '{gsub(/Altitude:/,"\n&");print}'}
I think that sed related site you just gave me will help in my inxi quest
Thank you