Yikes! My internet connection (and telephone) died for 24 hrs -- no broadband, no dial-up, no nothing. ISPs fault, not mine. Sorry!
It's up n' running again, so I've got some catching-up to do...
On a positive note: It gave me a chance to tweak the look n' feel of a dead connection. LoL!
Looked horrible, originally, but I played around with N/A seds (for a couple of hours, no kidding) until Conky output was tolerable.
Here are the results...
NO INTERNET CONNECTION
CONNECTION RESTORED
I know it isn't the most eloquent solution, but it looked like a bomb went off. And, hopefully, most of us don't lose our internet connections all that often.
Basically, I tried many different substitutions for N/A, before settling on "-". The problem was, almost every character is being used by some component in the weather script, and the unescaped forward slash "/" in N/A was creating havoc with the dingbats. An escaped "-" (with some appropriate spacing) caused the least amount of damage to the overall look n' feel, IMO. It's bad enough losing your connection, without having to look at "vomit" on your screen.
Here are the changes (I haven't changed the paths yet)...
/usr/share/conkywx/examples/wx-wu-vindsl-imperial-weather-seds.sh
Code:
##################################
## VinDSL | rev. 12-10-10 22:52 ##
##################################
## IMPERIAL WEATHER SEDs ##
##################################
sed -e 's/Calm mph'/'\$\{offset 8\}Calm/g' |
sed -e 's/New Moon'/'\$\{offset -13\}New Moon/g' |
sed -e 's/Waxing Crescent'/'\$\{offset -3\}Waxing/g' |
sed -e 's/First Quarter'/'\$\{offset -5\}First Qtr/g' |
sed -e 's/Waxing Gibbous'/'\$\{offset -3\}Waxing/g' |
sed -e 's/Full'/'\$\{offset 6\}Full/g' |
sed -e 's/Waning Gibbous'/'\$\{offset -4\}Waning/g' |
sed -e 's/Last Quarter'/'\$\{offset -5\}Last Qtr/g' |
sed -e 's/Waning Crescent'/'\$\{offset -3\}Waning/g' |
sed -e 's/N\/A'/'\$\{offset 3\}\-\$\{offset 3\}/g'
/usr/share/conkywx/examples/wx-wu-vindsl-metric-weather-seds.sh
Code:
##################################
## VinDSL | rev. 12-10-10 22:55 ##
##################################
## METRIC WEATHER SEDs ##
##################################
sed -e 's/Calm km\/h'/'\$\{offset 8\}Calm/g' |
sed -e 's/New Moon'/'\$\{offset -13\}New Moon/g' |
sed -e 's/Waxing Crescent'/'\$\{offset -3\}Waxing/g' |
sed -e 's/First Quarter'/'\$\{offset -5\}First Qtr/g' |
sed -e 's/Waxing Gibbous'/'\$\{offset -3\}Waxing/g' |
sed -e 's/Full'/'\$\{offset 6\}Full/g' |
sed -e 's/Waning Gibbous'/'\$\{offset -4\}Waning/g' |
sed -e 's/Last Quarter'/'\$\{offset -5\}Last Qtr/g' |
sed -e 's/Waning Crescent'/'\$\{offset -3\}Waning/g' |
sed -e 's/N\/A'/'\$\{offset 3\}\-\$\{offset 3\}/g'
And, all these extra characters necessitated bumping-up the text buffer, in .conkyrc...
/home/vindsl/.conkyrc
Code:
<SNIP>
####
## This buffer is used for single lines, text, output from $exec, and other variables.
## Increasing the 'text_buffer_size' (too high) will drastically reduce Conky's performance.
## Decreasing the buffer size (too low) will truncate content and cause strange display output.
## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
## Tips n' Tricks from dk75:"You don't need to create a 12KiB buffer for every Conky config line."
#
text_buffer_size 3328
####
## Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)
## Tips n' Tricks from: sparker256 (Thanks, Bill!)
#
max_specials 600
<SNIP>
Bookmarks